aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnsem <[email protected]>2017-04-20 14:32:40 +0000
committerAnsem <[email protected]>2017-04-20 14:32:40 +0000
commit61f014f3227a7e47a04e27dfe088ca69ea4e2152 (patch)
tree20bca550d1de95d7474868ca0df8692865a73e80 /mastodon
parent2dfa8d3a37e88f76a4e53a1117e71382389a1e64 (diff)
downloadmastodon.py-61f014f3227a7e47a04e27dfe088ca69ea4e2152.tar.gz
Add scope param to log_in(), resolves issue #35
Diffstat (limited to 'mastodon')
-rw-r--r--mastodon/Mastodon.py1
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)
Powered by cgit v1.2.3 (git 2.41.0)