post_data
is the kwarg for POST data, not data
(spotify.py)
This commit is contained in:
parent
bb047ec1b7
commit
8acc01dd48
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ class Module(ModuleManager.BaseModule):
|
|||
|
||||
page = utils.http.request(URL_TOKEN, method="POST",
|
||||
headers={"Authorization": "Basic %s" % bearer},
|
||||
data={"grant_type": "client_credentials"},
|
||||
post_data={"grant_type": "client_credentials"},
|
||||
json=True)
|
||||
self._token_expire = time.time()+page.data["expires_in"]
|
||||
return page.data["access_token"]
|
||||
|
|
Loading…
Reference in a new issue