@cheapreats/sdk

1.11.2 • Public • Published

CheaprEats Node.js SDK

npm version Documentation

CheaprEats Node.js SDK

$ npm install @cheapreats/sdk

Using the Published SDK Version

const CE = require('@cheapreats/sdk');

Using the SDK Locally

Locally importing is used typically while testing new SDK method implementations.

const CE = require('./index');

Example Usage

const CE = require('./index');
// const CE = require("cheapreats-node-sdk")

CE.setAuthenticationToken('YOUR_TOKEN');

CE.Verification.sendSms(12508574718)
.then(verification_request_id => console.log("SMS Sent", verification_request_id))
.catch(e => console.log(e));

Auto-generating code for New Mutation

The npm run add:mutation <Object>.<methodName> command auto-generates code for the Object and methodName passed.

For example - npm run add:mutation Category.batchArchive

Publishing to NPM

Ensure that package version in feature branch is ahead of master branch, otherwise publish will fail

Automatic:

By default package is automatically published anytime a change is made on master

Manual:

If package is to be published manually, execute following commands:

  • npm run build
  • npm publish
  • npm run generate-docs (Publishes docs)

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.11.21latest

Version History

VersionDownloads (Last 7 Days)Published
1.11.21
1.11.11
1.11.01
1.10.81
1.10.71
1.10.61
1.10.51
1.10.41
1.10.31
1.10.21
1.10.11
1.10.01
1.9.211
1.9.201
1.9.191
1.9.180
1.9.170
1.9.160
1.9.150
1.9.140
1.9.130
1.9.120
1.9.110
1.9.90
1.9.80
1.9.70
1.9.60
1.9.50
1.9.40
1.9.30
1.9.20
1.9.10
1.9.00
1.8.00
1.7.110
1.7.100
1.7.90
1.7.80
1.7.70
1.7.60
1.7.50
1.7.40
1.7.30
1.7.20
1.7.10
1.7.00
1.6.90
1.6.80
1.6.72
1.6.60
1.6.50
1.6.40
1.6.30
1.6.20
1.6.10
1.6.00
1.5.00
1.4.00
1.3.00
1.2.00
1.1.200
1.1.190
1.1.180

Package Sidebar

Install

npm i @cheapreats/sdk

Weekly Downloads

17

Version

1.11.2

License

MIT

Unpacked Size

378 kB

Total Files

122

Last publish

Collaborators

  • junthehacker
  • ralph-dev
  • bholagabbar