Launch Week Day 2: Introducing Reports: An Extensible Reporting Framework for Socket Data.Learn More
Socket
Book a DemoSign in
Socket

nike-unofficial-api

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nike-unofficial-api

nike unofficial api access

latest
Source
npmnpm
Version
0.0.5
Version published
Weekly downloads
6
-25%
Maintainers
1
Weekly downloads
 
Created
Source

logomakr_3e4ole

Disclaimer: I did this unoficial api 5 years ago the API might or might not still published

unofficial nike api

This is a promise based unofficial nikeplus api.

installation

npm install nike-unofficial-api

Use

the API provides the next functionalities

Authentication

Get login information and tokens. The next snippet describes an example of the call:

var authenticate = require('nike-unofficial-api').authenticate

authenticate({email: <email>, password: <password>})
    .then((result) => console.log(result))
    .catch((result) => console.log(result))

the complete set of parameters get determined by:

{
    email: params.email,
    password: params.password
}

The result of the promise will be if failed the error that caused it and if success an result object similar to this:

{ 
  	access_token: <token>,
  	expires_in: <expiration time>,
  	profile_img_url: <profile image>,
  	token_type: <token type>
}

Workouts

Get a list of your workouts. The next snippet describes an example of the call:

var workouts = require('nike-unofficial-api').workouts

var token = 'access_token'

workouts({access_token: token})
    .then((result) => { console.log(result) })
    .catch((result) => console.log(result))

Speed graphic by Freepik from Flaticon is licensed under CC BY 3.0. Made with Logo Maker

Disclaimer, legalese and everything else.

This is not affiliated or endorset by Nike , or any other party. This software available on the site is provided "as is" and any expressed or implied warranties, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose are disclaimed. In no event shall the user under the pseudonym Kanekotic, or any of their contributors be liable for any direct, indirect, incidental, special, exemplary, or consequential damages (including, but not limited to, procurement of substitute goods or services; loss of use, data, or profits; or business interruption) however caused and on any theory of liability, whether in contract, strict liability, or tort (including negligence or otherwise) arising in any way out of the use of this software, even if advised of the possibility of such damage.

Keywords

nike

FAQs

Package last updated on 12 Jun 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts