Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
doc
 
 
lib
 
 
 
 
 
 
 
 
 
 

JNikeAPI

A Java client for the Nike+ API.

Install

case of using this code in Eclipse:

  1. download this code
  2. start the Eclipse and import this code ("file"->"import"->select this folder)

case of using jar file:

  1. download jar files.
  1. setting class path

Preparation

You have to get Access_Token from Nike developer site

https://developer.nike.com/
  1. login to the site of nike+ developer
  2. go to "API CONSOLE"
  3. select "Get My Access Token"
  4. wirte nike+ account information (email & password) and push the "Go" button
  5. you can get your Access_Token.

How to use

javadoc

First step: The JNikeAPIClient needs instantiate with your access_token.

JNikeAPIClient nikeApi = new JNikeAPIClient("your access_token");

Scond step: You can use the Nike APIs. The Nike APIs has 4 kind of methods.

  1. Aggregate Sport Data
  2. List Activities
  3. Activity Detail
  4. GPS Data

If you use this APIs, you can receive data type of JSONObject.

  1. Aggregate Sport Data

    AggregateSportData values = nikeApi.getAggregateSportData();

  2. List Activities.

    ListActivities value = nikeApi.getListActivities();

  3. Activity Detail

    DetailActivity value = nikeApi.getDetailActivity("activityID");

  4. GPS Data

    GPSData value = nikeApi.getGPSData("activityID");

About

A Nike+ API Java client

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages