Skip to content
A Nike+ API Java client
Java
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.settings
bin/tetujin/nikeapi
doc
lib
src/tetujin/nikeapi
.classpath
.project
README.md
doc.tar

README.md

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");

You can’t perform that action at this time.