Fixing API keys loading.
This commit is contained in:
parent
310cfe9dfc
commit
3e79d80267
@ -1,4 +1,4 @@
|
||||
accessing
|
||||
loadKeys
|
||||
keys := STONJSON fromString: self apiKeysFile contents.
|
||||
^ self
|
||||
^ keys
|
@ -1,3 +1,3 @@
|
||||
accessing
|
||||
bearerToken
|
||||
^ self keys at: 'Bearer Token'
|
||||
^ self class keys at: 'Bearer Token'
|
@ -1,3 +1,3 @@
|
||||
accessing
|
||||
keys
|
||||
^ keys ifNil: [ keys := Dictionary new]
|
||||
^ keys ifNil: [ keys := self class loadKeys]
|
@ -1,4 +1,4 @@
|
||||
accessing
|
||||
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"
|
||||
],
|
||||
"instvars" : [
|
||||
"storage"
|
||||
"storage",
|
||||
"options",
|
||||
"keys"
|
||||
],
|
||||
"name" : "TwitterAPI",
|
||||
"type" : "normal"
|
||||
|
Loading…
Reference in New Issue
Block a user