- Notifications
You must be signed in to change notification settings - Fork142
Fitbit .NET API Client Library
License
aarondcoleman/Fitbit.NET
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
See more information about this. If you're starting a new projet, you should take a closer look at using the new, almost complete library:https://github.com/aarondcoleman/Fitbit.NET/wiki/PREPARING-FOR-BREAKING-CHANGES---v2-Fitbit.NET-API-Library-In-Development
- Makes structured calls to the Fitbit API from .NET projects
- Logs in users using the OAuth flow
- Easy data storage using POCO objects responses
- Mono compatibility
- Based on the popular RestSharp (http://restsharp.org/)
FitbitClientclient=newFitbitClient(ConsumerKey,ConsumerSecret,userProfile.FitbitAuthToken,userProfile.FitbitAuthSecret);ActivitydayActivity=client.GetDayActivity(newDateTime(2012,7,1));
- Fitbit - Client Library
- Fitbit.Tests - NUnit tests
- Fitbit.IntegrationTests - NUnit integration tests with the API
- SampleWebMVC - A quick simple site using the client library
- Download the Project
- Go to dev.fitbit.com and create an app account (ConsumerKey and ConsumerSecret). If you are debugging in Visual Studio, set the callback URL to localhost and your local debug port, something like localhost:12345/Fitbit/Callback
- Open Web.config and replace the settings with the ones you obtained from Fitbit
<add key="FitbitConsumerKey" value="YOUR_CONSUMER_KEY_HERE" /><add key="FitbitConsumerSecret" value="YOUR_CONSUMER_SECRET_HERE" />
- Run the sample web MVC project
- (optional) Setting up the Integration Tests (which connect to the live API)Open the Configuration.cs file and insert an app ConsumerKey and ConsumerSecret, then follow the 3 step process listed in that app. You're trying to end up with permanent oauth credentials, doing that once in NUnit and saving it locally.
Lots of ways to contribute
- Help fill in the rest of the API calls. Please use the existing calls as an example. Also, at least one unit test and integration test (NUnit) are required before I'll take a pull request.
- Documentation - If you'd like to write some getting started guides, or more indepth walkthroughs, you're a hero to me.
- Suggestions for code cleanup / shrinking - Please engage in some conversation here on Github.
- Adding example pages to the SampleWebMVC site showing what the API can do.
This is an open source project in progress. If you're interested in getting involved and want to chat about it, please email me ataaron@smallstepslabs.com or twitter @aaronc
Additional Thanks to:Gavin Draper - github.com/gavdraper - desktop authJonathan Walz - github.com/jonathanwalz - food and weight logsChris Fletcher - github.com/cfletcher - sleep data
About
Fitbit .NET API Client Library
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.