11-20-2018 06:01
11-20-2018 06:01
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.
11-21-2018 14:02
11-21-2018 14:15
11-21-2018 14:15
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