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

How to get access token in C# for subscription API

I am able to verify a subscriber and need to add subscription for that I need access token.

Need help to generate access token and add subscriber. I am using C#.

Any help would be greatly appreciated.

Best Answer
0 Votes
2 REPLIES 2

I assume you have seen this..

 

https://dev.fitbit.com/build/reference/web-api/oauth2/

Best Answer
0 Votes

Hi @Pradip_S,

 

We're hoping to offer more code samples in the future.   The only sample code Fitbit references is here.  We have one C# example available.  You might be able to find some other code through internet searches.

 

If you have verified a subscriber before creating the application, you might be getting a little ahead of yourself.  First, you'll need to have an application that uses OAuth 2 to allow Fitbit users the ability to grant access of their data to your application.  Through the OAuth process, you'll receive an access token.  You'll use this access token in the header to execute the various Web API endpoints that fetch data and add subscribers.  The subscribers will notify you that one of the users, who have authorized your application access to their data, has updated their data and is ready to be fetched.

 

Gordon

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