All URIs are relative to https://zernio.com/api
| Method | HTTP request | Description |
|---|---|---|
| deleteInstagramIceBreakers | DELETE /v1/accounts/{accountId}/instagram-ice-breakers | Delete IG ice breakers |
| deleteInstagramIceBreakersWithHttpInfo | DELETE /v1/accounts/{accountId}/instagram-ice-breakers | Delete IG ice breakers |
| deleteMessengerMenu | DELETE /v1/accounts/{accountId}/messenger-menu | Delete FB persistent menu |
| deleteMessengerMenuWithHttpInfo | DELETE /v1/accounts/{accountId}/messenger-menu | Delete FB persistent menu |
| deleteTelegramCommands | DELETE /v1/accounts/{accountId}/telegram-commands | Delete TG bot commands |
| deleteTelegramCommandsWithHttpInfo | DELETE /v1/accounts/{accountId}/telegram-commands | Delete TG bot commands |
| getInstagramIceBreakers | GET /v1/accounts/{accountId}/instagram-ice-breakers | Get IG ice breakers |
| getInstagramIceBreakersWithHttpInfo | GET /v1/accounts/{accountId}/instagram-ice-breakers | Get IG ice breakers |
| getMessengerMenu | GET /v1/accounts/{accountId}/messenger-menu | Get FB persistent menu |
| getMessengerMenuWithHttpInfo | GET /v1/accounts/{accountId}/messenger-menu | Get FB persistent menu |
| getTelegramCommands | GET /v1/accounts/{accountId}/telegram-commands | Get TG bot commands |
| getTelegramCommandsWithHttpInfo | GET /v1/accounts/{accountId}/telegram-commands | Get TG bot commands |
| setInstagramIceBreakers | PUT /v1/accounts/{accountId}/instagram-ice-breakers | Set IG ice breakers |
| setInstagramIceBreakersWithHttpInfo | PUT /v1/accounts/{accountId}/instagram-ice-breakers | Set IG ice breakers |
| setMessengerMenu | PUT /v1/accounts/{accountId}/messenger-menu | Set FB persistent menu |
| setMessengerMenuWithHttpInfo | PUT /v1/accounts/{accountId}/messenger-menu | Set FB persistent menu |
| setTelegramCommands | PUT /v1/accounts/{accountId}/telegram-commands | Set TG bot commands |
| setTelegramCommandsWithHttpInfo | PUT /v1/accounts/{accountId}/telegram-commands | Set TG bot commands |
void deleteInstagramIceBreakers(accountId)
Delete IG ice breakers
Removes the ice breaker questions from an Instagram account's Messenger experience.
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.AccountSettingsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
AccountSettingsApi apiInstance = new AccountSettingsApi(defaultClient);
String accountId = "accountId_example"; // String |
try {
apiInstance.deleteInstagramIceBreakers(accountId);
} catch (ApiException e) {
System.err.println("Exception when calling AccountSettingsApi#deleteInstagramIceBreakers");
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 |
|---|---|---|---|
| accountId | String |
null (empty response body)
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Ice breakers deleted | - |
| 401 | Unauthorized | - |
ApiResponse deleteInstagramIceBreakers deleteInstagramIceBreakersWithHttpInfo(accountId)
Delete IG ice breakers
Removes the ice breaker questions from an Instagram account's Messenger experience.
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.ApiResponse;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.AccountSettingsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
AccountSettingsApi apiInstance = new AccountSettingsApi(defaultClient);
String accountId = "accountId_example"; // String |
try {
ApiResponse<Void> response = apiInstance.deleteInstagramIceBreakersWithHttpInfo(accountId);
System.out.println("Status code: " + response.getStatusCode());
System.out.println("Response headers: " + response.getHeaders());
} catch (ApiException e) {
System.err.println("Exception when calling AccountSettingsApi#deleteInstagramIceBreakers");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
System.err.println("Reason: " + e.getResponseBody());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| accountId | String |
ApiResponse
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Ice breakers deleted | - |
| 401 | Unauthorized | - |
void deleteMessengerMenu(accountId)
Delete FB persistent menu
Removes the persistent menu from Facebook Messenger conversations for this account.
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.AccountSettingsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
AccountSettingsApi apiInstance = new AccountSettingsApi(defaultClient);
String accountId = "accountId_example"; // String |
try {
apiInstance.deleteMessengerMenu(accountId);
} catch (ApiException e) {
System.err.println("Exception when calling AccountSettingsApi#deleteMessengerMenu");
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 |
|---|---|---|---|
| accountId | String |
null (empty response body)
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Menu deleted | - |
| 401 | Unauthorized | - |
ApiResponse deleteMessengerMenu deleteMessengerMenuWithHttpInfo(accountId)
Delete FB persistent menu
Removes the persistent menu from Facebook Messenger conversations for this account.
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.ApiResponse;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.AccountSettingsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
AccountSettingsApi apiInstance = new AccountSettingsApi(defaultClient);
String accountId = "accountId_example"; // String |
try {
ApiResponse<Void> response = apiInstance.deleteMessengerMenuWithHttpInfo(accountId);
System.out.println("Status code: " + response.getStatusCode());
System.out.println("Response headers: " + response.getHeaders());
} catch (ApiException e) {
System.err.println("Exception when calling AccountSettingsApi#deleteMessengerMenu");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
System.err.println("Reason: " + e.getResponseBody());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| accountId | String |
ApiResponse
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Menu deleted | - |
| 401 | Unauthorized | - |
void deleteTelegramCommands(accountId)
Delete TG bot commands
Clears all bot commands configured for a Telegram bot account.
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.AccountSettingsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
AccountSettingsApi apiInstance = new AccountSettingsApi(defaultClient);
String accountId = "accountId_example"; // String |
try {
apiInstance.deleteTelegramCommands(accountId);
} catch (ApiException e) {
System.err.println("Exception when calling AccountSettingsApi#deleteTelegramCommands");
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 |
|---|---|---|---|
| accountId | String |
null (empty response body)
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Commands deleted | - |
| 401 | Unauthorized | - |
ApiResponse deleteTelegramCommands deleteTelegramCommandsWithHttpInfo(accountId)
Delete TG bot commands
Clears all bot commands configured for a Telegram bot account.
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.ApiResponse;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.AccountSettingsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
AccountSettingsApi apiInstance = new AccountSettingsApi(defaultClient);
String accountId = "accountId_example"; // String |
try {
ApiResponse<Void> response = apiInstance.deleteTelegramCommandsWithHttpInfo(accountId);
System.out.println("Status code: " + response.getStatusCode());
System.out.println("Response headers: " + response.getHeaders());
} catch (ApiException e) {
System.err.println("Exception when calling AccountSettingsApi#deleteTelegramCommands");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
System.err.println("Reason: " + e.getResponseBody());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| accountId | String |
ApiResponse
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Commands deleted | - |
| 401 | Unauthorized | - |
GetMessengerMenu200Response getInstagramIceBreakers(accountId)
Get IG ice breakers
Get the ice breaker configuration for an Instagram account.
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.AccountSettingsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
AccountSettingsApi apiInstance = new AccountSettingsApi(defaultClient);
String accountId = "accountId_example"; // String |
try {
GetMessengerMenu200Response result = apiInstance.getInstagramIceBreakers(accountId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AccountSettingsApi#getInstagramIceBreakers");
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 |
|---|---|---|---|
| accountId | String |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Ice breaker configuration | - |
| 400 | Not an Instagram account | - |
| 401 | Unauthorized | - |
ApiResponse getInstagramIceBreakers getInstagramIceBreakersWithHttpInfo(accountId)
Get IG ice breakers
Get the ice breaker configuration for an Instagram account.
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.ApiResponse;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.AccountSettingsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
AccountSettingsApi apiInstance = new AccountSettingsApi(defaultClient);
String accountId = "accountId_example"; // String |
try {
ApiResponse<GetMessengerMenu200Response> response = apiInstance.getInstagramIceBreakersWithHttpInfo(accountId);
System.out.println("Status code: " + response.getStatusCode());
System.out.println("Response headers: " + response.getHeaders());
System.out.println("Response body: " + response.getData());
} catch (ApiException e) {
System.err.println("Exception when calling AccountSettingsApi#getInstagramIceBreakers");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
System.err.println("Reason: " + e.getResponseBody());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| accountId | String |
ApiResponse<GetMessengerMenu200Response>
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Ice breaker configuration | - |
| 400 | Not an Instagram account | - |
| 401 | Unauthorized | - |
GetMessengerMenu200Response getMessengerMenu(accountId)
Get FB persistent menu
Get the persistent menu configuration for a Facebook Messenger account.
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.AccountSettingsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
AccountSettingsApi apiInstance = new AccountSettingsApi(defaultClient);
String accountId = "accountId_example"; // String |
try {
GetMessengerMenu200Response result = apiInstance.getMessengerMenu(accountId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AccountSettingsApi#getMessengerMenu");
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 |
|---|---|---|---|
| accountId | String |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Persistent menu configuration | - |
| 400 | Not a Facebook account | - |
| 401 | Unauthorized | - |
ApiResponse getMessengerMenu getMessengerMenuWithHttpInfo(accountId)
Get FB persistent menu
Get the persistent menu configuration for a Facebook Messenger account.
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.ApiResponse;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.AccountSettingsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
AccountSettingsApi apiInstance = new AccountSettingsApi(defaultClient);
String accountId = "accountId_example"; // String |
try {
ApiResponse<GetMessengerMenu200Response> response = apiInstance.getMessengerMenuWithHttpInfo(accountId);
System.out.println("Status code: " + response.getStatusCode());
System.out.println("Response headers: " + response.getHeaders());
System.out.println("Response body: " + response.getData());
} catch (ApiException e) {
System.err.println("Exception when calling AccountSettingsApi#getMessengerMenu");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
System.err.println("Reason: " + e.getResponseBody());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| accountId | String |
ApiResponse<GetMessengerMenu200Response>
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Persistent menu configuration | - |
| 400 | Not a Facebook account | - |
| 401 | Unauthorized | - |
GetTelegramCommands200Response getTelegramCommands(accountId)
Get TG bot commands
Get the bot commands configuration for a Telegram account.
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.AccountSettingsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
AccountSettingsApi apiInstance = new AccountSettingsApi(defaultClient);
String accountId = "accountId_example"; // String |
try {
GetTelegramCommands200Response result = apiInstance.getTelegramCommands(accountId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AccountSettingsApi#getTelegramCommands");
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 |
|---|---|---|---|
| accountId | String |
GetTelegramCommands200Response
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Bot commands list | - |
| 400 | Not a Telegram account | - |
| 401 | Unauthorized | - |
ApiResponse getTelegramCommands getTelegramCommandsWithHttpInfo(accountId)
Get TG bot commands
Get the bot commands configuration for a Telegram account.
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.ApiResponse;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.AccountSettingsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
AccountSettingsApi apiInstance = new AccountSettingsApi(defaultClient);
String accountId = "accountId_example"; // String |
try {
ApiResponse<GetTelegramCommands200Response> response = apiInstance.getTelegramCommandsWithHttpInfo(accountId);
System.out.println("Status code: " + response.getStatusCode());
System.out.println("Response headers: " + response.getHeaders());
System.out.println("Response body: " + response.getData());
} catch (ApiException e) {
System.err.println("Exception when calling AccountSettingsApi#getTelegramCommands");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
System.err.println("Reason: " + e.getResponseBody());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| accountId | String |
ApiResponse<GetTelegramCommands200Response>
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Bot commands list | - |
| 400 | Not a Telegram account | - |
| 401 | Unauthorized | - |
void setInstagramIceBreakers(accountId, setInstagramIceBreakersRequest)
Set IG ice breakers
Set ice breakers for an Instagram account. Max 4 ice breakers, question max 80 chars.
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.AccountSettingsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
AccountSettingsApi apiInstance = new AccountSettingsApi(defaultClient);
String accountId = "accountId_example"; // String |
SetInstagramIceBreakersRequest setInstagramIceBreakersRequest = new SetInstagramIceBreakersRequest(); // SetInstagramIceBreakersRequest |
try {
apiInstance.setInstagramIceBreakers(accountId, setInstagramIceBreakersRequest);
} catch (ApiException e) {
System.err.println("Exception when calling AccountSettingsApi#setInstagramIceBreakers");
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 |
|---|---|---|---|
| accountId | String | ||
| setInstagramIceBreakersRequest | SetInstagramIceBreakersRequest |
null (empty response body)
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Ice breakers set successfully | - |
| 400 | Invalid request | - |
| 401 | Unauthorized | - |
ApiResponse setInstagramIceBreakers setInstagramIceBreakersWithHttpInfo(accountId, setInstagramIceBreakersRequest)
Set IG ice breakers
Set ice breakers for an Instagram account. Max 4 ice breakers, question max 80 chars.
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.ApiResponse;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.AccountSettingsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
AccountSettingsApi apiInstance = new AccountSettingsApi(defaultClient);
String accountId = "accountId_example"; // String |
SetInstagramIceBreakersRequest setInstagramIceBreakersRequest = new SetInstagramIceBreakersRequest(); // SetInstagramIceBreakersRequest |
try {
ApiResponse<Void> response = apiInstance.setInstagramIceBreakersWithHttpInfo(accountId, setInstagramIceBreakersRequest);
System.out.println("Status code: " + response.getStatusCode());
System.out.println("Response headers: " + response.getHeaders());
} catch (ApiException e) {
System.err.println("Exception when calling AccountSettingsApi#setInstagramIceBreakers");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
System.err.println("Reason: " + e.getResponseBody());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| accountId | String | ||
| setInstagramIceBreakersRequest | SetInstagramIceBreakersRequest |
ApiResponse
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Ice breakers set successfully | - |
| 400 | Invalid request | - |
| 401 | Unauthorized | - |
void setMessengerMenu(accountId, setMessengerMenuRequest)
Set FB persistent menu
Set the persistent menu for a Facebook Messenger account. Max 3 top-level items, max 5 nested items.
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.AccountSettingsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
AccountSettingsApi apiInstance = new AccountSettingsApi(defaultClient);
String accountId = "accountId_example"; // String |
SetMessengerMenuRequest setMessengerMenuRequest = new SetMessengerMenuRequest(); // SetMessengerMenuRequest |
try {
apiInstance.setMessengerMenu(accountId, setMessengerMenuRequest);
} catch (ApiException e) {
System.err.println("Exception when calling AccountSettingsApi#setMessengerMenu");
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 |
|---|---|---|---|
| accountId | String | ||
| setMessengerMenuRequest | SetMessengerMenuRequest |
null (empty response body)
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Menu set successfully | - |
| 400 | Invalid request | - |
| 401 | Unauthorized | - |
ApiResponse setMessengerMenu setMessengerMenuWithHttpInfo(accountId, setMessengerMenuRequest)
Set FB persistent menu
Set the persistent menu for a Facebook Messenger account. Max 3 top-level items, max 5 nested items.
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.ApiResponse;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.AccountSettingsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
AccountSettingsApi apiInstance = new AccountSettingsApi(defaultClient);
String accountId = "accountId_example"; // String |
SetMessengerMenuRequest setMessengerMenuRequest = new SetMessengerMenuRequest(); // SetMessengerMenuRequest |
try {
ApiResponse<Void> response = apiInstance.setMessengerMenuWithHttpInfo(accountId, setMessengerMenuRequest);
System.out.println("Status code: " + response.getStatusCode());
System.out.println("Response headers: " + response.getHeaders());
} catch (ApiException e) {
System.err.println("Exception when calling AccountSettingsApi#setMessengerMenu");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
System.err.println("Reason: " + e.getResponseBody());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| accountId | String | ||
| setMessengerMenuRequest | SetMessengerMenuRequest |
ApiResponse
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Menu set successfully | - |
| 400 | Invalid request | - |
| 401 | Unauthorized | - |
void setTelegramCommands(accountId, setTelegramCommandsRequest)
Set TG bot commands
Set bot commands for a Telegram account.
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.AccountSettingsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
AccountSettingsApi apiInstance = new AccountSettingsApi(defaultClient);
String accountId = "accountId_example"; // String |
SetTelegramCommandsRequest setTelegramCommandsRequest = new SetTelegramCommandsRequest(); // SetTelegramCommandsRequest |
try {
apiInstance.setTelegramCommands(accountId, setTelegramCommandsRequest);
} catch (ApiException e) {
System.err.println("Exception when calling AccountSettingsApi#setTelegramCommands");
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 |
|---|---|---|---|
| accountId | String | ||
| setTelegramCommandsRequest | SetTelegramCommandsRequest |
null (empty response body)
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Commands set successfully | - |
| 400 | Invalid request | - |
| 401 | Unauthorized | - |
ApiResponse setTelegramCommands setTelegramCommandsWithHttpInfo(accountId, setTelegramCommandsRequest)
Set TG bot commands
Set bot commands for a Telegram account.
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.ApiResponse;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.AccountSettingsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
AccountSettingsApi apiInstance = new AccountSettingsApi(defaultClient);
String accountId = "accountId_example"; // String |
SetTelegramCommandsRequest setTelegramCommandsRequest = new SetTelegramCommandsRequest(); // SetTelegramCommandsRequest |
try {
ApiResponse<Void> response = apiInstance.setTelegramCommandsWithHttpInfo(accountId, setTelegramCommandsRequest);
System.out.println("Status code: " + response.getStatusCode());
System.out.println("Response headers: " + response.getHeaders());
} catch (ApiException e) {
System.err.println("Exception when calling AccountSettingsApi#setTelegramCommands");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
System.err.println("Reason: " + e.getResponseBody());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| accountId | String | ||
| setTelegramCommandsRequest | SetTelegramCommandsRequest |
ApiResponse
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Commands set successfully | - |
| 400 | Invalid request | - |
| 401 | Unauthorized | - |