1.0.0 • Published 2 years ago
milesplit-sdk v1.0.0
milesplit-sdk
SDK for the MileSplit API
Installation
export GITHUB_TOKEN=your token here
npm install @milesplit/milesplit-sdk
Deploy 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
1.0.0
2 years ago