node-nikerunclub
v1.1.1
Published
An API for Nike Run Club
Downloads
13
Readme
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)