milesplit-sdk
v1.0.0
Published
SDK for MileSplit APIv3
Readme
milesplit-sdk
SDK for the MileSplit API
Installation
export GITHUB_TOKEN=your token here
npm install @milesplit/milesplit-sdkDeploy new version
- Create a valid GitHub personal access token. Select all for "repo" and "write-packages"
- Edit Cloud Build trigger by updating _FLO_NPM_TOKEN the personal access token.
- Update version in package.json
- Merge changes to master branch
Making Requests to the MileSplit API
Login
const MileSplitAPI = require("@milesplit/milesplit-sdk");
await MileSplitAPI.auth()
.login('username', 'password')
.execute()// send the request