Fixing API keys loading.
This commit is contained in:
parent
310cfe9dfc
commit
3e79d80267
@ -1,4 +1,4 @@
|
|||||||
accessing
|
accessing
|
||||||
loadKeys
|
loadKeys
|
||||||
keys := STONJSON fromString: self apiKeysFile contents.
|
keys := STONJSON fromString: self apiKeysFile contents.
|
||||||
^ self
|
^ keys
|
@ -1,3 +1,3 @@
|
|||||||
accessing
|
accessing
|
||||||
bearerToken
|
bearerToken
|
||||||
^ self keys at: 'Bearer Token'
|
^ self class keys at: 'Bearer Token'
|
@ -1,3 +1,3 @@
|
|||||||
accessing
|
accessing
|
||||||
keys
|
keys
|
||||||
^ keys ifNil: [ keys := Dictionary new]
|
^ keys ifNil: [ keys := self class loadKeys]
|
@ -1,4 +1,4 @@
|
|||||||
accessing
|
accessing
|
||||||
loadKeys
|
loadKeys
|
||||||
keys := self class loadKeys.
|
keys := self class loadKeys.
|
||||||
^ keys
|
^ self
|
@ -0,0 +1,3 @@
|
|||||||
|
accessing
|
||||||
|
options: aDictionary
|
||||||
|
options := aDictionary
|
@ -0,0 +1,9 @@
|
|||||||
|
accessing
|
||||||
|
options
|
||||||
|
"Return the configuration options or define a default if they are not given"
|
||||||
|
^ options ifNil: [
|
||||||
|
options := Dictionary new
|
||||||
|
at: 'caching' put: true;
|
||||||
|
at: 'pagesPerRequest' put: '1';
|
||||||
|
yourself
|
||||||
|
]
|
@ -9,7 +9,9 @@
|
|||||||
"keys"
|
"keys"
|
||||||
],
|
],
|
||||||
"instvars" : [
|
"instvars" : [
|
||||||
"storage"
|
"storage",
|
||||||
|
"options",
|
||||||
|
"keys"
|
||||||
],
|
],
|
||||||
"name" : "TwitterAPI",
|
"name" : "TwitterAPI",
|
||||||
"type" : "normal"
|
"type" : "normal"
|
||||||
|
Loading…
Reference in New Issue
Block a user