Add scope param to log_in(), resolves issue #35
This commit is contained in:
pare
2dfa8d3a37
commit
61f014f322
S'han modificat 1 arxius amb 1 adicions i 0 eliminacions
|
@ -211,6 +211,7 @@ class Mastodon:
|
||||||
|
|
||||||
params['client_id'] = self.client_id
|
params['client_id'] = self.client_id
|
||||||
params['client_secret'] = self.client_secret
|
params['client_secret'] = self.client_secret
|
||||||
|
params['scope'] = " ".join(scopes)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
response = self.__api_request('POST', '/oauth/token', params, do_ratelimiting = False)
|
response = self.__api_request('POST', '/oauth/token', params, do_ratelimiting = False)
|
||||||
|
|
Loading…
Referencia en una nova incidència