Skip to content

Latest commit

 

History

History
1352 lines (979 loc) · 43.4 KB

File metadata and controls

1352 lines (979 loc) · 43.4 KB

AccountSettingsApi

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

deleteInstagramIceBreakers

void deleteInstagramIceBreakers(accountId)

Delete IG ice breakers

Removes the ice breaker questions from an Instagram account's Messenger experience.

Example

// 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();
        }
    }
}

Parameters

Name Type Description Notes
accountId String

Return type

null (empty response body)

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Ice breakers deleted -
401 Unauthorized -

deleteInstagramIceBreakersWithHttpInfo

ApiResponse deleteInstagramIceBreakers deleteInstagramIceBreakersWithHttpInfo(accountId)

Delete IG ice breakers

Removes the ice breaker questions from an Instagram account's Messenger experience.

Example

// 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();
        }
    }
}

Parameters

Name Type Description Notes
accountId String

Return type

ApiResponse

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Ice breakers deleted -
401 Unauthorized -

deleteMessengerMenu

void deleteMessengerMenu(accountId)

Delete FB persistent menu

Removes the persistent menu from Facebook Messenger conversations for this account.

Example

// 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();
        }
    }
}

Parameters

Name Type Description Notes
accountId String

Return type

null (empty response body)

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Menu deleted -
401 Unauthorized -

deleteMessengerMenuWithHttpInfo

ApiResponse deleteMessengerMenu deleteMessengerMenuWithHttpInfo(accountId)

Delete FB persistent menu

Removes the persistent menu from Facebook Messenger conversations for this account.

Example

// 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();
        }
    }
}

Parameters

Name Type Description Notes
accountId String

Return type

ApiResponse

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Menu deleted -
401 Unauthorized -

deleteTelegramCommands

void deleteTelegramCommands(accountId)

Delete TG bot commands

Clears all bot commands configured for a Telegram bot account.

Example

// 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();
        }
    }
}

Parameters

Name Type Description Notes
accountId String

Return type

null (empty response body)

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Commands deleted -
401 Unauthorized -

deleteTelegramCommandsWithHttpInfo

ApiResponse deleteTelegramCommands deleteTelegramCommandsWithHttpInfo(accountId)

Delete TG bot commands

Clears all bot commands configured for a Telegram bot account.

Example

// 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();
        }
    }
}

Parameters

Name Type Description Notes
accountId String

Return type

ApiResponse

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Commands deleted -
401 Unauthorized -

getInstagramIceBreakers

GetMessengerMenu200Response getInstagramIceBreakers(accountId)

Get IG ice breakers

Get the ice breaker configuration for an Instagram account.

Example

// 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();
        }
    }
}

Parameters

Name Type Description Notes
accountId String

Return type

GetMessengerMenu200Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Ice breaker configuration -
400 Not an Instagram account -
401 Unauthorized -

getInstagramIceBreakersWithHttpInfo

ApiResponse getInstagramIceBreakers getInstagramIceBreakersWithHttpInfo(accountId)

Get IG ice breakers

Get the ice breaker configuration for an Instagram account.

Example

// 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();
        }
    }
}

Parameters

Name Type Description Notes
accountId String

Return type

ApiResponse<GetMessengerMenu200Response>

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Ice breaker configuration -
400 Not an Instagram account -
401 Unauthorized -

getMessengerMenu

GetMessengerMenu200Response getMessengerMenu(accountId)

Get FB persistent menu

Get the persistent menu configuration for a Facebook Messenger account.

Example

// 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();
        }
    }
}

Parameters

Name Type Description Notes
accountId String

Return type

GetMessengerMenu200Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Persistent menu configuration -
400 Not a Facebook account -
401 Unauthorized -

getMessengerMenuWithHttpInfo

ApiResponse getMessengerMenu getMessengerMenuWithHttpInfo(accountId)

Get FB persistent menu

Get the persistent menu configuration for a Facebook Messenger account.

Example

// 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();
        }
    }
}

Parameters

Name Type Description Notes
accountId String

Return type

ApiResponse<GetMessengerMenu200Response>

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Persistent menu configuration -
400 Not a Facebook account -
401 Unauthorized -

getTelegramCommands

GetTelegramCommands200Response getTelegramCommands(accountId)

Get TG bot commands

Get the bot commands configuration for a Telegram account.

Example

// 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();
        }
    }
}

Parameters

Name Type Description Notes
accountId String

Return type

GetTelegramCommands200Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Bot commands list -
400 Not a Telegram account -
401 Unauthorized -

getTelegramCommandsWithHttpInfo

ApiResponse getTelegramCommands getTelegramCommandsWithHttpInfo(accountId)

Get TG bot commands

Get the bot commands configuration for a Telegram account.

Example

// 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();
        }
    }
}

Parameters

Name Type Description Notes
accountId String

Return type

ApiResponse<GetTelegramCommands200Response>

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Bot commands list -
400 Not a Telegram account -
401 Unauthorized -

setInstagramIceBreakers

void setInstagramIceBreakers(accountId, setInstagramIceBreakersRequest)

Set IG ice breakers

Set ice breakers for an Instagram account. Max 4 ice breakers, question max 80 chars.

Example

// 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();
        }
    }
}

Parameters

Name Type Description Notes
accountId String
setInstagramIceBreakersRequest SetInstagramIceBreakersRequest

Return type

null (empty response body)

Authorization

bearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Ice breakers set successfully -
400 Invalid request -
401 Unauthorized -

setInstagramIceBreakersWithHttpInfo

ApiResponse setInstagramIceBreakers setInstagramIceBreakersWithHttpInfo(accountId, setInstagramIceBreakersRequest)

Set IG ice breakers

Set ice breakers for an Instagram account. Max 4 ice breakers, question max 80 chars.

Example

// 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();
        }
    }
}

Parameters

Name Type Description Notes
accountId String
setInstagramIceBreakersRequest SetInstagramIceBreakersRequest

Return type

ApiResponse

Authorization

bearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Ice breakers set successfully -
400 Invalid request -
401 Unauthorized -

setMessengerMenu

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.

Example

// 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();
        }
    }
}

Parameters

Name Type Description Notes
accountId String
setMessengerMenuRequest SetMessengerMenuRequest

Return type

null (empty response body)

Authorization

bearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Menu set successfully -
400 Invalid request -
401 Unauthorized -

setMessengerMenuWithHttpInfo

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.

Example

// 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();
        }
    }
}

Parameters

Name Type Description Notes
accountId String
setMessengerMenuRequest SetMessengerMenuRequest

Return type

ApiResponse

Authorization

bearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Menu set successfully -
400 Invalid request -
401 Unauthorized -

setTelegramCommands

void setTelegramCommands(accountId, setTelegramCommandsRequest)

Set TG bot commands

Set bot commands for a Telegram account.

Example

// 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();
        }
    }
}

Parameters

Name Type Description Notes
accountId String
setTelegramCommandsRequest SetTelegramCommandsRequest

Return type

null (empty response body)

Authorization

bearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Commands set successfully -
400 Invalid request -
401 Unauthorized -

setTelegramCommandsWithHttpInfo

ApiResponse setTelegramCommands setTelegramCommandsWithHttpInfo(accountId, setTelegramCommandsRequest)

Set TG bot commands

Set bot commands for a Telegram account.

Example

// 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();
        }
    }
}

Parameters

Name Type Description Notes
accountId String
setTelegramCommandsRequest SetTelegramCommandsRequest

Return type

ApiResponse

Authorization

bearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Commands set successfully -
400 Invalid request -
401 Unauthorized -