diff options
author | Lorenz Diener <[email protected]> | 2017-04-21 12:37:23 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2017-04-21 12:37:23 +0200 |
commit | 49872d849d5ff983a6d4b2c207dd480e621bc846 (patch) | |
tree | 20bca550d1de95d7474868ca0df8692865a73e80 | |
parent | 2dfa8d3a37e88f76a4e53a1117e71382389a1e64 (diff) | |
parent | 61f014f3227a7e47a04e27dfe088ca69ea4e2152 (diff) | |
download | mastodon.py-49872d849d5ff983a6d4b2c207dd480e621bc846.tar.gz |
Merge pull request #37 from azillion/azillion/fix-35
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) |