node-nikerunclub

1.1.1 • Public • Published

Node-nikerunclub

An API for Nike Run Club

Usage

const Nike = require('node-nikerunclub');
const nike = new Nike({
  ux_id: '',
  client_id: ''
});

Log in

nike.signIn(email, password);
 
/* Since it relies on Puppeteer, you need a GUI environment for now and it might not be a reliable long-term solution */

Get access token from refresh token

nike.getAccessTokenFromRefreshToken(refreshToken);

Get user Info

nike.getProfile();

Get personal records

nike.getRecords();

Get achievements by sport type

nike.getAchievements((sportType = 'RUNNING'));

Get shoes infos

nike.getShoesInfos((includeDeleted = true));

Get history of all activities

nike.getActivities(time = new Date().valueOf(), limit = 25, includeDeleted = true)
See example.json for result

Get details of activity by id

nike.getActivity(activityId, metrics = 'ALL')

Get your aggregated data

nike.getAggregatedData();

Get your aggregated data by year

nike.getAggregatedDataByYear((year = '2018'));

Output an activity in GPX format

nike.convertToGPX(activityId)

Readme

Keywords

none

Package Sidebar

Install

npm i node-nikerunclub

Weekly Downloads

0

Version

1.1.1

License

ISC

Unpacked Size

566 kB

Total Files

7

Last publish

Collaborators

  • jzarca01