All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
contactGroupsCreate | POST /api/v1/ContactGroups/group | Creates contact group |
contactGroupsDelete | DELETE /api/v1/ContactGroups/{id} | Removes contact by id |
contactGroupsGet | GET /api/v1/ContactGroups/{id} | Returns contact group by id |
contactGroupsGetList | GET /api/v1/ContactGroups/subscription/{subscriptionId}/groups | Returns contact groups by subscriptionId |
contactGroupsUpdate | PUT /api/v1/ContactGroups/{id} | Updates contact group by id |
ContactGroupVM contactGroupsCreate(createContactGroupVM)
Creates contact group
// Import classes:
import cloud.fastreport.ApiClient;
import cloud.fastreport.ApiException;
import cloud.fastreport.Configuration;
import cloud.fastreport.auth.*;
import cloud.fastreport.models.*;
import cloud.fastreport.client.ContactGroupsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP basic authorization: ApiKey
HttpBasicAuth ApiKey = (HttpBasicAuth) defaultClient.getAuthentication("ApiKey");
ApiKey.setUsername("YOUR USERNAME");
ApiKey.setPassword("YOUR PASSWORD");
// Configure HTTP bearer authorization: JWT
HttpBearerAuth JWT = (HttpBearerAuth) defaultClient.getAuthentication("JWT");
JWT.setBearerToken("BEARER TOKEN");
ContactGroupsApi apiInstance = new ContactGroupsApi(defaultClient);
CreateContactGroupVM createContactGroupVM = new CreateContactGroupVM(); // CreateContactGroupVM |
try {
ContactGroupVM result = apiInstance.contactGroupsCreate(createContactGroupVM);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ContactGroupsApi#contactGroupsCreate");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
createContactGroupVM | CreateContactGroupVM | [optional] |
- Content-Type: application/json, text/json, application/*+json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Contact group was created | - |
400 | Bad VM provided | - |
402 | Subscription is outdated | - |
403 | Not enough permissions for the operation | - |
404 | Subscription was not found | - |
500 | Try again, if error still here - text our support | - |
contactGroupsDelete(id)
Removes contact by id
// Import classes:
import cloud.fastreport.ApiClient;
import cloud.fastreport.ApiException;
import cloud.fastreport.Configuration;
import cloud.fastreport.auth.*;
import cloud.fastreport.models.*;
import cloud.fastreport.client.ContactGroupsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP basic authorization: ApiKey
HttpBasicAuth ApiKey = (HttpBasicAuth) defaultClient.getAuthentication("ApiKey");
ApiKey.setUsername("YOUR USERNAME");
ApiKey.setPassword("YOUR PASSWORD");
// Configure HTTP bearer authorization: JWT
HttpBearerAuth JWT = (HttpBearerAuth) defaultClient.getAuthentication("JWT");
JWT.setBearerToken("BEARER TOKEN");
ContactGroupsApi apiInstance = new ContactGroupsApi(defaultClient);
String id = "id_example"; // String |
try {
apiInstance.contactGroupsDelete(id);
} catch (ApiException e) {
System.err.println("Exception when calling ContactGroupsApi#contactGroupsDelete");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | String |
null (empty response body)
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
204 | Contact group was deleted | - |
400 | Bad id provided | - |
402 | Subscription is outdated | - |
403 | Not enough permissions for the operation | - |
404 | Subscription or group was not found | - |
500 | Try again, if error still here - text our support | - |
ContactGroupVM contactGroupsGet(id)
Returns contact group by id
// Import classes:
import cloud.fastreport.ApiClient;
import cloud.fastreport.ApiException;
import cloud.fastreport.Configuration;
import cloud.fastreport.auth.*;
import cloud.fastreport.models.*;
import cloud.fastreport.client.ContactGroupsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP basic authorization: ApiKey
HttpBasicAuth ApiKey = (HttpBasicAuth) defaultClient.getAuthentication("ApiKey");
ApiKey.setUsername("YOUR USERNAME");
ApiKey.setPassword("YOUR PASSWORD");
// Configure HTTP bearer authorization: JWT
HttpBearerAuth JWT = (HttpBearerAuth) defaultClient.getAuthentication("JWT");
JWT.setBearerToken("BEARER TOKEN");
ContactGroupsApi apiInstance = new ContactGroupsApi(defaultClient);
String id = "id_example"; // String |
try {
ContactGroupVM result = apiInstance.contactGroupsGet(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ContactGroupsApi#contactGroupsGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | String |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Contact group was found | - |
400 | Bad id provided | - |
402 | Subscription is outdated | - |
403 | Not enough permissions for the operation | - |
404 | Subscription or group was not found | - |
500 | Try again, if error still here - text our support | - |
ContactGroupsVM contactGroupsGetList(subscriptionId, skip, take)
Returns contact groups by subscriptionId
// Import classes:
import cloud.fastreport.ApiClient;
import cloud.fastreport.ApiException;
import cloud.fastreport.Configuration;
import cloud.fastreport.auth.*;
import cloud.fastreport.models.*;
import cloud.fastreport.client.ContactGroupsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP basic authorization: ApiKey
HttpBasicAuth ApiKey = (HttpBasicAuth) defaultClient.getAuthentication("ApiKey");
ApiKey.setUsername("YOUR USERNAME");
ApiKey.setPassword("YOUR PASSWORD");
// Configure HTTP bearer authorization: JWT
HttpBearerAuth JWT = (HttpBearerAuth) defaultClient.getAuthentication("JWT");
JWT.setBearerToken("BEARER TOKEN");
ContactGroupsApi apiInstance = new ContactGroupsApi(defaultClient);
String subscriptionId = "subscriptionId_example"; // String |
Integer skip = 0; // Integer |
Integer take = 10; // Integer |
try {
ContactGroupsVM result = apiInstance.contactGroupsGetList(subscriptionId, skip, take);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ContactGroupsApi#contactGroupsGetList");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
subscriptionId | String | ||
skip | Integer | [optional] [default to 0] | |
take | Integer | [optional] [default to 10] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Contact groups were found | - |
403 | Not enough permissions for the operation | - |
404 | Subscription was not found | - |
402 | Subscription is outdated | - |
400 | Bad id provided | - |
500 | Try again, if error still here - text our support | - |
ContactGroupVM contactGroupsUpdate(id, updateContactGroupVM)
Updates contact group by id
// Import classes:
import cloud.fastreport.ApiClient;
import cloud.fastreport.ApiException;
import cloud.fastreport.Configuration;
import cloud.fastreport.auth.*;
import cloud.fastreport.models.*;
import cloud.fastreport.client.ContactGroupsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP basic authorization: ApiKey
HttpBasicAuth ApiKey = (HttpBasicAuth) defaultClient.getAuthentication("ApiKey");
ApiKey.setUsername("YOUR USERNAME");
ApiKey.setPassword("YOUR PASSWORD");
// Configure HTTP bearer authorization: JWT
HttpBearerAuth JWT = (HttpBearerAuth) defaultClient.getAuthentication("JWT");
JWT.setBearerToken("BEARER TOKEN");
ContactGroupsApi apiInstance = new ContactGroupsApi(defaultClient);
String id = "id_example"; // String |
UpdateContactGroupVM updateContactGroupVM = new UpdateContactGroupVM(); // UpdateContactGroupVM |
try {
ContactGroupVM result = apiInstance.contactGroupsUpdate(id, updateContactGroupVM);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ContactGroupsApi#contactGroupsUpdate");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | ||
updateContactGroupVM | UpdateContactGroupVM | [optional] |
- Content-Type: application/json, text/json, application/*+json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Contact group was updated | - |
400 | Bad VM or id provided | - |
402 | Subscription is outdated | - |
403 | Not enough permissions for the operation | - |
404 | Subscription or group was not found | - |
500 | Try again, if error still here - text our support | - |