- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Plan
Premium
Country
Ireland
My Question or Issue
When following the authorisation flow, everything works as expected if I use just one scope. E.g.
{'access_token': 'BQCBQEcfGhdZEHZYQgZ1Ny8CAkzgqSwjTUIdbpnX8xSo1iOO8E4-aFPniPsjxtCwEgGQyUrxIAUyeSyobPYGaKwyRkM0j_GWzMBipPvX2EtpFdJYgXnNjzqxRjxGmC6QmdS_Mm4W22XWM_7p2AA', 'token_type': 'Bearer', 'expires_in': 3600, 'refresh_token': 'AQCm-7TngixLDTHLioOT44eu_mhpGdg0JhukvDLxtNvFC38y1FNJWZW7MQEbXp1DIZwBEx4n5XHaeEp4_Gb9jTUJBtFDFKqQPvB6Zq4NEapXxQ7frQrq9OvhqygjTBi0epw', 'scope': 'user-read-currently-playing'}
- Perfect, I then can hit the currently-playing endpoint and get the details of the song that is playing.
Now, I try to add extra permissions to my scope. For e.g. I follow the exact same steps but with the following:
scopes = 'user-read-currently-playing streaming'
I get this response to my callback
{'access_token': 'BQBFNzQRjh5moOwY_pQSO8n8CwT0x_eJg79QztZKTmVaItbHo-eQSnM7uhjKSWeQeOmjGRO5y_zb78md6SiIxRe-kkHUpSYosU-yIxrba5DD-K4yZrptk_7n5B0Bm7jkb-GZqmoSowNwtLW3n8_URCM', 'token_type': 'Bearer', 'expires_in': 3600, 'refresh_token': 'AQAfCeI1FkPskXTDLlYSEcXuELHXr7Zv30J_oO_9DvHagmSOg25__fwhGMsY45B6Iyc1LmYiF-WNpmHN22A_-12giF1rW-EAz_AIsdD0ZK5VKL4_KsDLRUetGASWq4ygKNA', 'scope': 'streaming user-read-currently-playing'}
Looks good to me? I have received permission to the scopes I requested.
I try to hit the currently-playing endpoint again with this access code. This is the response
{'error': {'status': 401, 'message': 'Invalid access token'}}
I have deleted apps, made new ones, tried different combinations of scopes. Nothing is working and I cannot figure it out. Any help is appreciated. Thanks
Solved! Go to Solution.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page