Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

OAuth connection from Postman and Mendix

As per the documentation Client Credentials (fitbit.com) grant_type should be client_credentials but i am getting the error stating -

{
    "errors": [
        {
            "errorType""invalid_request",
            "message""Missing 'grant_type' parameter value. Visit https://dev.fitbit.com/docs/oauth2 for more information on the Fitbit Web API authorization process."
        }
    ],
    "success"false
}
 
can someone help mw to get this resolve.
Best Answer
0 Votes
3 REPLIES 3

Hi @nachiketlonkar 

Would you please explain the reason for using the client credentials grant flow?   At Fitbit it is used for very specific use cases, none of which are collecting user data.

Gordon

Gordon Crenshaw
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google
Best Answer
0 Votes

Hi Gordon ,

Thanks for the quick reply.

I want to use the FITBIT user's data from the server. so as per the manual documentation provided for developer i am following the steps and then i got that error.

 

Nachiket

Best Answer
0 Votes

The client credentials endpoint documentation states "This authorization flow is used with specific Fitbit API endpoints related to business operations. It is not supported by the public Web APIs to retrieve Fitbit user data."   Therefore, you will not be able to get the user's data with this authorization flow.   Instead, please try the authorization code grant flow.   Instructions are documented here: https://dev.fitbit.com/build/reference/web-api/developer-guide/authorization/

Gordon Crenshaw
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google
Best Answer
0 Votes