All URIs are relative to https://api.waziup.io/api/v2
Method | HTTP request | Description |
---|---|---|
getUsers | GET /users/ | Get all users in a realm |
GetUser | GET /users/{userid} | Get a single user |
putUserSmsCredit | PUT /users/{user_id}/sms_credit | put sms credit |
[User] getUsers(opts)
User data
//Options for fetching the values. Use ('limit', 'offset').
var opts = {
username: "cdupont",
limit: "50", // String | In case of pagination, number of entris per page
offset: "0" // String | In case of pagination, offset for the starting entry
};
let users = await apiInstance.getUsers(opts);
//You can use the users here
Name | Type | Description | Notes |
---|---|---|---|
username | String | ||
limit | String | In case of pagination, number of entris per page | [optional] |
offset | String | In case of pagination, offset for the starting entry | [optional] |
- Content-Type: application/json
- Accept: application/json
User getUser(userId)
get user
var userID = "test";
let user = await apiInstance.getUser(userID);
//You can use the user here
Name | Type | Description | Notes |
---|---|---|---|
userId | String |
- Content-Type: application/json
- Accept: application/json
putUserSmsCredit(userId, body)
insert name
var userID = "test";
apiInstance.putUserSmsCredit(userID, {});
Name | Type | Description | Notes |
---|---|---|---|
userId | String | ||
body | String |
null (empty response body)
- Content-Type: text/plain
- Accept: application/json