Quickstart Guide

The following steps are outlined to help in getting started with the Nike+ Android SDK.

Prerequisites

  • Android Studio is the preferred IDE for development. The Android SDK is required. The SDK is intended for use with Android 4.4.2 (API 19) and Android 4.3 (API 18). 
  • The Nike+ API is open only to Nike+ partners. For inqueries regarding partnerships, refer to the Contact page.

Obtain API Keys

Client credentials are required to connect applications to the Nike+ API using the OAuth 2.0 specification.

Client credentials must be associated to a callback URI, and they can be associated with any number of Callback URIs. For iOS applications, the URI must be in the format [application URI]://nike.com/login, where ://nike.com/login is the required method and cannot be changed. It is recommended that the application URI be in the format nike-[client_id], but it is not required.

An optional Callback URI for Notifications may also be designated. Only one Notification Callback URI is possible per key and is usually assigned to a web service that may serve multiple applications.

Installing the SDK

The Android SDK is available only to partners. Inquiries about becoming a partner can be made on the Contact page. Partners will be given the Android SDK .aar, a sample application and documentation.

Configuring an Android Project

1) Upload the Nike Plus SDK AAR to your local Maven, or use the directory based method to add the dependency to the project.

2) Create an object that conforms to the NikeConfig interface using Nike supplied information.

3) Setup an activity to handle the Intent fired by the browser during the login flow in the AndroidManifest.

See Android Configuration for more information.