GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - alexthered/fitbitAPI20-scribe-java: Fitbit's OAuth2.0 basing on scribe-java library

BranchesTags
Open more actions menu

Latest commit

 

History

12 Commits
12 Commits

Folders and files

NameName
Last commit message
Last commit date
src
src
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
pom.xml
pom.xml
 
 

Repository files navigation

fitbitAPI20-scribe-java

Note: this work now is included in scribe-java's api library

Fitbit's OAuth2.0 basing on scribe-java library

Maven Central

Summary

This is my FitbitAPI20 client's implmentation basing on scribe-java library. To be able to use Fitbit's API 2.0, it's not very difficult, but at many points, they use some details which is not OAuth2.0 standard, thus, you might need to override the default implementation given in scribe-java library.

How to use

It's very to use. Just include two files FitbitApi20.java and Fitbit20ServiceImpl in your projects. Then you can easily setup the Fitbit client like this:

final OAuth20Service service = new ServiceBuilder(clientId)
                .apiSecret(clientSecret)
                .scope("activity profile") // replace with desired scope
                .callback("http://example.com")  //your callback URL to store and handle the authorization code sent by Fitbit
                .build(FitbitApi20.instance());

Of course, you need to include scribe-java as a library. It's very easy if you use Maven:

 <dependency>
          <groupId>com.github.scribejava</groupId>
          <artifactId>scribejava-core</artifactId>
          <version>5.3.0</version>
  </dependency>

Questions

Feel free to drop me an email or create an issue right here. Thanks.

About

Fitbit's OAuth2.0 basing on scribe-java library

Topics

fitbit-apijavaoauth2scribe-java

Resources

Readme
MIT license
Activity

Stars

5 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.