Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def CATEGORIES():
- account_linked = False
- user_api_key = my_addon.getSetting('api_key')
- # if user_api_key:
- # response = urllib2.urlopen(API_PATH + '/chats/?api_key=' + user_api_key + '&format=json')
- # data = simplejson.loads(response.read())
- # if data['status_code'] == 100:
- # # Revert to the default key
- # my_addon.setSetting('api_key', '')
- # else:
- global API_KEY
- API_KEY = user_api_key
- account_linked = True
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement