rdio api added to config.
This commit is contained in:
parent
b6e9b175db
commit
f12066df0a
2 changed files with 6 additions and 4 deletions
|
@ -30,7 +30,9 @@
|
||||||
"twitter_access_token": "",
|
"twitter_access_token": "",
|
||||||
"twitter_access_secret": "",
|
"twitter_access_secret": "",
|
||||||
"wunderground": "",
|
"wunderground": "",
|
||||||
"googletranslate": ""
|
"googletranslate": "",
|
||||||
|
"rdio_key": "",
|
||||||
|
"rdio_secret": ""
|
||||||
},
|
},
|
||||||
"permissions": {
|
"permissions": {
|
||||||
"admins": {
|
"admins": {
|
||||||
|
|
|
@ -4,9 +4,9 @@ import re
|
||||||
from util import hook
|
from util import hook
|
||||||
import oauth2 as oauth
|
import oauth2 as oauth
|
||||||
|
|
||||||
|
bot.config.get("api_keys")
|
||||||
CONSUMER_KEY = "KEY"
|
CONSUMER_KEY = conn.conf['api_keys'].get("rdio_key", "KEY")
|
||||||
CONSUMER_SECRET = "SECRET"
|
CONSUMER_SECRET = conn.conf['api_keys'].get("rdio_secret", "SECRET")
|
||||||
|
|
||||||
|
|
||||||
def getdata(inp, types):
|
def getdata(inp, types):
|
||||||
|
|
Reference in a new issue