clf_web_client_api
v1.1.2
Published
Object
Readme
clf_web_client_api
ClfWebClientApi - JavaScript client for clf_web_client_api
- API version: 1.0.0
- Package version: 1.0.0
- Build package: io.swagger.codegen.v3.generators.javascript.JavaScriptClientCodegen
Installation
For Node.js
npm
Then install it via:
npm install clf_web_client_api --save
## Getting Started
Please follow the [installation](#installation) instruction and execute the following JS code:
```javascript
import ClfWebClientApi = require('clf_web_client_api');
var api = new ClfWebClientApi.CustomerApi()
var opts = {
'body': new ClfWebClientApi.Customer() // {Customer}
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.addCustomer(opts, callback);Documentation for API Endpoints
All URIs are relative to /GluMeterServer
Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- ClfWebClientApi.CustomerApi | addCustomer | POST /customer | Sign up ClfWebClientApi.CustomerApi | deleteCustomer | DELETE /customer | Delete Customer ClfWebClientApi.CustomerApi | getCustomers | GET /customer | ClfWebClientApi.CustomerApi | login | POST /customer/login | Customer Login ClfWebClientApi.CustomerApi | updateCustomer | PUT /customer | Update Customer Information ClfWebClientApi.CustomerApi | validCustomerName | GET /customer/name | Verify whether user name valid ClfWebClientApi.DataApi | getMeasureCountList | POST /data/count | Get Measure Count List in a Device ClfWebClientApi.DataApi | getMeasureDataList | POST /data | Get Measure Count List in a Device ClfWebClientApi.DataApi | getUserList | POST /data/users | Get User List in a Device ClfWebClientApi.DeviceApi | appendDevice | POST /token | Request Device Token ClfWebClientApi.DeviceApi | deleteDeviceToken | PUT /token | Delete Device ClfWebClientApi.DeviceApi | getDeviceToken | GET /token |
Documentation for Models
- ClfWebClientApi.AccountName
- ClfWebClientApi.Count
- ClfWebClientApi.CountReq
- ClfWebClientApi.Customer
- ClfWebClientApi.Data
- ClfWebClientApi.DataReq
- ClfWebClientApi.DevReq
- ClfWebClientApi.Device
Documentation for Authorization
All endpoints do not require authorization.
