All URIs are relative to https://api.messente.com/v1
| Method | HTTP request | Description |
|---|---|---|
| createGroup | POST /phonebook/groups | Creates a new group with the provided name |
| deleteGroup | DELETE /phonebook/groups/{groupId} | Deletes a group |
| fetchGroup | GET /phonebook/groups/{groupId} | Lists a group |
| fetchGroups | GET /phonebook/groups | Returns all groups |
| updateGroup | PUT /phonebook/groups/{groupId} | Updates a group with the provided name |
GroupEnvelope createGroup(group_name)
Creates a new group with the provided name
var MessenteApi = require('messente_api');
var defaultClient = MessenteApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME';
basicAuth.password = 'YOUR PASSWORD';
var apiInstance = new MessenteApi.GroupsApi();
var group_name = {"name":"Any group name"}; // GroupName |
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.createGroup(group_name, callback);| Name | Type | Description | Notes |
|---|---|---|---|
| group_name | GroupName |
- Content-Type: application/json
- Accept: application/json
deleteGroup(group_id)
Deletes a group
var MessenteApi = require('messente_api');
var defaultClient = MessenteApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME';
basicAuth.password = 'YOUR PASSWORD';
var apiInstance = new MessenteApi.GroupsApi();
var group_id = 5792a02a-e5c2-422b-a0a0-0ae65d814663; // String | String in UUID format
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
apiInstance.deleteGroup(group_id, callback);| Name | Type | Description | Notes |
|---|---|---|---|
| group_id | String | String in UUID format |
null (empty response body)
- Content-Type: Not defined
- Accept: application/json
GroupEnvelope fetchGroup(group_id)
Lists a group
var MessenteApi = require('messente_api');
var defaultClient = MessenteApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME';
basicAuth.password = 'YOUR PASSWORD';
var apiInstance = new MessenteApi.GroupsApi();
var group_id = 5792a02a-e5c2-422b-a0a0-0ae65d814663; // String | String in UUID format
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.fetchGroup(group_id, callback);| Name | Type | Description | Notes |
|---|---|---|---|
| group_id | String | String in UUID format |
- Content-Type: Not defined
- Accept: application/json
GroupListEnvelope fetchGroups()
Returns all groups
var MessenteApi = require('messente_api');
var defaultClient = MessenteApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME';
basicAuth.password = 'YOUR PASSWORD';
var apiInstance = new MessenteApi.GroupsApi();
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.fetchGroups(callback);This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
GroupEnvelope updateGroup(group_id, group_name)
Updates a group with the provided name
var MessenteApi = require('messente_api');
var defaultClient = MessenteApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME';
basicAuth.password = 'YOUR PASSWORD';
var apiInstance = new MessenteApi.GroupsApi();
var group_id = 5792a02a-e5c2-422b-a0a0-0ae65d814663; // String | String in UUID format
var group_name = {"name":"Any group name"}; // GroupName |
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.updateGroup(group_id, group_name, callback);| Name | Type | Description | Notes |
|---|---|---|---|
| group_id | String | String in UUID format | |
| group_name | GroupName |
- Content-Type: application/json
- Accept: application/json