widgetsapilib

WigetAPI Library

Usage no npm install needed!

<script type="module">
  import widgetsapilib from 'https://cdn.skypack.dev/widgetsapilib';
</script>

README

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