All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
contactsCreate | POST /api/v1/Contacts/contact | Creates new contact |
contactsDelete | DELETE /api/v1/Contacts/{id} | Removes contact by id |
contactsGet | GET /api/v1/Contacts/{id} | Returns contact group by id |
contactsGetByGroup | GET /api/v1/Contacts/group/{groupId}/contacts | Returns contacts by group id |
contactsGetList | GET /api/v1/Contacts/subscription/{subscriptionId}/contacts | Allows to search for contacts |
contactsUpdate | PUT /api/v1/Contacts/{id} | Updates contact by id |
ContactVM contactsCreate(opts)
Creates new contact
import FastreportCloudSdk from 'fastreport-cloud-sdk';
let defaultClient = FastreportCloudSdk.ApiClient.instance;
// Configure HTTP basic authorization: ApiKey
let ApiKey = defaultClient.authentications['ApiKey'];
ApiKey.username = 'YOUR USERNAME';
ApiKey.password = 'YOUR PASSWORD';
// Configure Bearer (JWT) access token for authorization: JWT
let JWT = defaultClient.authentications['JWT'];
JWT.accessToken = "YOUR ACCESS TOKEN"
let apiInstance = new FastreportCloudSdk.ContactsApi();
let opts = {
'createContactVM': new FastreportCloudSdk.CreateContactVM() // CreateContactVM |
};
apiInstance.contactsCreate(opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
createContactVM | CreateContactVM | [optional] |
- Content-Type: application/json, text/json, application/*+json
- Accept: application/json
contactsDelete(id)
Removes contact by id
import FastreportCloudSdk from 'fastreport-cloud-sdk';
let defaultClient = FastreportCloudSdk.ApiClient.instance;
// Configure HTTP basic authorization: ApiKey
let ApiKey = defaultClient.authentications['ApiKey'];
ApiKey.username = 'YOUR USERNAME';
ApiKey.password = 'YOUR PASSWORD';
// Configure Bearer (JWT) access token for authorization: JWT
let JWT = defaultClient.authentications['JWT'];
JWT.accessToken = "YOUR ACCESS TOKEN"
let apiInstance = new FastreportCloudSdk.ContactsApi();
let id = "id_example"; // String |
apiInstance.contactsDelete(id).then(() => {
console.log('API called successfully.');
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
id | String |
null (empty response body)
- Content-Type: Not defined
- Accept: application/json
ContactVM contactsGet(id)
Returns contact group by id
import FastreportCloudSdk from 'fastreport-cloud-sdk';
let defaultClient = FastreportCloudSdk.ApiClient.instance;
// Configure HTTP basic authorization: ApiKey
let ApiKey = defaultClient.authentications['ApiKey'];
ApiKey.username = 'YOUR USERNAME';
ApiKey.password = 'YOUR PASSWORD';
// Configure Bearer (JWT) access token for authorization: JWT
let JWT = defaultClient.authentications['JWT'];
JWT.accessToken = "YOUR ACCESS TOKEN"
let apiInstance = new FastreportCloudSdk.ContactsApi();
let id = "id_example"; // String |
apiInstance.contactsGet(id).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
id | String |
- Content-Type: Not defined
- Accept: application/json
ContactsVM contactsGetByGroup(groupId, opts)
Returns contacts by group id
import FastreportCloudSdk from 'fastreport-cloud-sdk';
let defaultClient = FastreportCloudSdk.ApiClient.instance;
// Configure HTTP basic authorization: ApiKey
let ApiKey = defaultClient.authentications['ApiKey'];
ApiKey.username = 'YOUR USERNAME';
ApiKey.password = 'YOUR PASSWORD';
// Configure Bearer (JWT) access token for authorization: JWT
let JWT = defaultClient.authentications['JWT'];
JWT.accessToken = "YOUR ACCESS TOKEN"
let apiInstance = new FastreportCloudSdk.ContactsApi();
let groupId = "groupId_example"; // String |
let opts = {
'skip': 0, // Number |
'take': 10 // Number |
};
apiInstance.contactsGetByGroup(groupId, opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
groupId | String | ||
skip | Number | [optional] [default to 0] | |
take | Number | [optional] [default to 10] |
- Content-Type: Not defined
- Accept: application/json
ContactsVM contactsGetList(subscriptionId, opts)
Allows to search for contacts
import FastreportCloudSdk from 'fastreport-cloud-sdk';
let defaultClient = FastreportCloudSdk.ApiClient.instance;
// Configure HTTP basic authorization: ApiKey
let ApiKey = defaultClient.authentications['ApiKey'];
ApiKey.username = 'YOUR USERNAME';
ApiKey.password = 'YOUR PASSWORD';
// Configure Bearer (JWT) access token for authorization: JWT
let JWT = defaultClient.authentications['JWT'];
JWT.accessToken = "YOUR ACCESS TOKEN"
let apiInstance = new FastreportCloudSdk.ContactsApi();
let subscriptionId = "subscriptionId_example"; // String |
let opts = {
'skip': 0, // Number |
'take': 10, // Number |
'searchPattern': "searchPattern_example" // String |
};
apiInstance.contactsGetList(subscriptionId, opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
subscriptionId | String | ||
skip | Number | [optional] [default to 0] | |
take | Number | [optional] [default to 10] | |
searchPattern | String | [optional] |
- Content-Type: Not defined
- Accept: application/json
ContactVM contactsUpdate(id, opts)
Updates contact by id
import FastreportCloudSdk from 'fastreport-cloud-sdk';
let defaultClient = FastreportCloudSdk.ApiClient.instance;
// Configure HTTP basic authorization: ApiKey
let ApiKey = defaultClient.authentications['ApiKey'];
ApiKey.username = 'YOUR USERNAME';
ApiKey.password = 'YOUR PASSWORD';
// Configure Bearer (JWT) access token for authorization: JWT
let JWT = defaultClient.authentications['JWT'];
JWT.accessToken = "YOUR ACCESS TOKEN"
let apiInstance = new FastreportCloudSdk.ContactsApi();
let id = "id_example"; // String |
let opts = {
'updateContactVM': new FastreportCloudSdk.UpdateContactVM() // UpdateContactVM |
};
apiInstance.contactsUpdate(id, opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
id | String | ||
updateContactVM | UpdateContactVM | [optional] |
- Content-Type: application/json, text/json, application/*+json
- Accept: application/json