OAuth Flow Documentation?

It looks like the IFTTT integration is done using an OAuth flow - I didn’t need to enter my Flower Power username/password into their website.
Is that documented somewhere?

Hello,
I think you only need those url :

oauth2({
 clientID: clientId,
 clientSecret: clientSecret,
 site: 'https://apiflowerpower.parrot.com',
 authorizationPath: '/oauth2/v1/authorize',
 tokenPath: '/user/v1/authenticate'
});

Let me know if it works for you !
Best,
Jerome

Hello @Jerome.
Is this supposed to work with the new API? With something looking like that:
oauth2({
clientID: clientId,
clientSecret: clientSecret,
site: ‘https://api-flower-power-pot.parrot.com’,
authorizationPath: ‘/oauth2/v1/authorize’,
tokenPath: ‘/user/v1/authenticate’
});

The url look like they exist, but the authorize endpoint gives me a
{"error_code":11001,"error_message":"There is no any clients with this id"}
… but I’m using a client_id that works when I’m calling directly the authenticate endpoint. :disappointed_relieved:

I tried to check IFTTT integration to see if it had the same issue… but apparently IFTTT integration is still pointing to the old API!

Hello,

OAuth2 feature is not an public feature, it’s only meant for business clients.
Concerning IFTTT, it has unfortunately not been maintained.

Best regards,
Céline