1.0.3 • Published 5 years ago

widgetsapilib v1.0.3

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

widgetsapilib

WigetAPI Library

NPM JavaScript Style Guide

Install

npm install --save widgetsapilib

Usage

Three Class are exported

  • AuthApi : For login, logout, refresh_token
  • UsersApi : For Signup, ResetPassword, CheckEmail and Profile Updates
  • WidgetsApi : For all Widgets CRUD, and visible widget
/**
 * Optional: BASE_URL and API_VERSION is embeded to use deployed api
 */
new Class(BASE_URL, API_VERSION).method(params); //will return a promise

Refer to /test for all methods which can be called using above syantax

License

MIT © niteshpurohit