diff options
author | Ansem <[email protected]> | 2017-04-20 14:32:40 +0000 |
---|---|---|
committer | Ansem <[email protected]> | 2017-04-20 14:32:40 +0000 |
commit | 61f014f3227a7e47a04e27dfe088ca69ea4e2152 (patch) | |
tree | 20bca550d1de95d7474868ca0df8692865a73e80 | |
parent | 2dfa8d3a37e88f76a4e53a1117e71382389a1e64 (diff) | |
download | mastodon.py-61f014f3227a7e47a04e27dfe088ca69ea4e2152.tar.gz |
Add scope param to log_in(), resolves issue #35
-rw-r--r-- | mastodon/Mastodon.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py index 310dc68..a1416c5 100644 --- a/mastodon/Mastodon.py +++ b/mastodon/Mastodon.py | |||
@@ -211,6 +211,7 @@ class Mastodon: | |||
211 | 211 | ||
212 | params['client_id'] = self.client_id | 212 | params['client_id'] = self.client_id |
213 | params['client_secret'] = self.client_secret | 213 | params['client_secret'] = self.client_secret |
214 | params['scope'] = " ".join(scopes) | ||
214 | 215 | ||
215 | try: | 216 | try: |
216 | response = self.__api_request('POST', '/oauth/token', params, do_ratelimiting = False) | 217 | response = self.__api_request('POST', '/oauth/token', params, do_ratelimiting = False) |