Flower Power API cloud Authentication


#1

I’m trying to authenticate to the flower power API through the sample python code:

http://developer.parrot.com/docs/FlowerPower/#authentication

I have an account and a developer API key. However I am getting the following error:

Server response:
{u’error’: u’invalid_grant’}
Traceback (most recent call last):
File “Auth.py”, line 23, in
access_token = response[‘access_token’]
KeyError: ‘access_token’

Which implies there is a problem witht the line:
data={‘grant_type’: ‘password’,

I’ve checked the time zone and the time on the client. Any ideas what is going on ?

Andy


#2

In facte https://github.com/Parrot-Developers/FlowerPower-Tools is giving me the same error