Class LanguagesApi

java.lang.Object
com.mypurecloud.sdk.v2.api.LanguagesApi

public class LanguagesApi extends Object
  • Constructor Details

    • LanguagesApi

      public LanguagesApi()
    • LanguagesApi

      public LanguagesApi(ApiClient apiClient)
  • Method Details

    • deleteLanguage

      public void deleteLanguage(String languageId) throws IOException, ApiException
      Deprecated.
      Delete Language (Deprecated) This endpoint is deprecated. Please see the Routing API (DELETE /api/v2/routing/languages/{languageId})
      Parameters:
      languageId - Language ID (required)
      Throws:
      ApiException - if the request fails on the server
      IOException - if the request fails to be processed
    • deleteLanguageWithHttpInfo

      public ApiResponse<Void> deleteLanguageWithHttpInfo(String languageId) throws IOException
      Deprecated.
      Delete Language (Deprecated) This endpoint is deprecated. Please see the Routing API (DELETE /api/v2/routing/languages/{languageId})
      Parameters:
      languageId - Language ID (required)
      Throws:
      IOException - if the request fails to be processed
    • deleteLanguage

      public void deleteLanguage(DeleteLanguageRequest request) throws IOException, ApiException
      Deprecated.
      Delete Language (Deprecated) This endpoint is deprecated. Please see the Routing API (DELETE /api/v2/routing/languages/{languageId})
      Parameters:
      request - The request object
      Throws:
      ApiException - if the request fails on the server
      IOException - if the request fails to be processed
    • deleteLanguage

      public ApiResponse<Void> deleteLanguage(ApiRequest<Void> request) throws IOException
      Deprecated.
      Delete Language (Deprecated) This endpoint is deprecated. Please see the Routing API (DELETE /api/v2/routing/languages/{languageId})
      Parameters:
      request - The request object
      Returns:
      the response
      Throws:
      IOException - if the request fails to be processed
    • getLanguage

      public Language getLanguage(String languageId) throws IOException, ApiException
      Deprecated.
      Get Language (Deprecated) This endpoint is deprecated. Please see the Routing API (GET /api/v2/routing/languages/{languageId})
      Parameters:
      languageId - Language ID (required)
      Returns:
      Language
      Throws:
      ApiException - if the request fails on the server
      IOException - if the request fails to be processed
    • getLanguageWithHttpInfo

      public ApiResponse<Language> getLanguageWithHttpInfo(String languageId) throws IOException
      Deprecated.
      Get Language (Deprecated) This endpoint is deprecated. Please see the Routing API (GET /api/v2/routing/languages/{languageId})
      Parameters:
      languageId - Language ID (required)
      Returns:
      Language
      Throws:
      IOException - if the request fails to be processed
    • getLanguage

      public Language getLanguage(GetLanguageRequest request) throws IOException, ApiException
      Deprecated.
      Get Language (Deprecated) This endpoint is deprecated. Please see the Routing API (GET /api/v2/routing/languages/{languageId})
      Parameters:
      request - The request object
      Returns:
      Language
      Throws:
      ApiException - if the request fails on the server
      IOException - if the request fails to be processed
    • getLanguage

      public ApiResponse<Language> getLanguage(ApiRequest<Void> request) throws IOException
      Deprecated.
      Get Language (Deprecated) This endpoint is deprecated. Please see the Routing API (GET /api/v2/routing/languages/{languageId})
      Parameters:
      request - The request object
      Returns:
      the response
      Throws:
      IOException - if the request fails to be processed
    • getLanguages

      public LanguageEntityListing getLanguages(Integer pageSize, Integer pageNumber, String sortOrder, String name) throws IOException, ApiException
      Deprecated.
      Get the list of supported languages. (Deprecated) This endpoint is deprecated. Please see the Routing API (GET /api/v2/routing/languages)
      Parameters:
      pageSize - Page size (optional, default to 25)
      pageNumber - Page number (optional, default to 1)
      sortOrder - Ascending or descending sort order (optional, default to ASC)
      name - Name (optional)
      Returns:
      LanguageEntityListing
      Throws:
      ApiException - if the request fails on the server
      IOException - if the request fails to be processed
    • getLanguagesWithHttpInfo

      public ApiResponse<LanguageEntityListing> getLanguagesWithHttpInfo(Integer pageSize, Integer pageNumber, String sortOrder, String name) throws IOException
      Deprecated.
      Get the list of supported languages. (Deprecated) This endpoint is deprecated. Please see the Routing API (GET /api/v2/routing/languages)
      Parameters:
      pageSize - Page size (optional, default to 25)
      pageNumber - Page number (optional, default to 1)
      sortOrder - Ascending or descending sort order (optional, default to ASC)
      name - Name (optional)
      Returns:
      LanguageEntityListing
      Throws:
      IOException - if the request fails to be processed
    • getLanguages

      public LanguageEntityListing getLanguages(GetLanguagesRequest request) throws IOException, ApiException
      Deprecated.
      Get the list of supported languages. (Deprecated) This endpoint is deprecated. Please see the Routing API (GET /api/v2/routing/languages)
      Parameters:
      request - The request object
      Returns:
      LanguageEntityListing
      Throws:
      ApiException - if the request fails on the server
      IOException - if the request fails to be processed
    • getLanguages

      public ApiResponse<LanguageEntityListing> getLanguages(ApiRequest<Void> request) throws IOException
      Deprecated.
      Get the list of supported languages. (Deprecated) This endpoint is deprecated. Please see the Routing API (GET /api/v2/routing/languages)
      Parameters:
      request - The request object
      Returns:
      the response
      Throws:
      IOException - if the request fails to be processed
    • getLanguagesTranslations

      public AvailableTranslations getLanguagesTranslations() throws IOException, ApiException
      Get all available languages for translation
      Returns:
      AvailableTranslations
      Throws:
      ApiException - if the request fails on the server
      IOException - if the request fails to be processed
    • getLanguagesTranslationsWithHttpInfo

      public ApiResponse<AvailableTranslations> getLanguagesTranslationsWithHttpInfo() throws IOException
      Get all available languages for translation
      Returns:
      AvailableTranslations
      Throws:
      IOException - if the request fails to be processed
    • getLanguagesTranslations

      public AvailableTranslations getLanguagesTranslations(GetLanguagesTranslationsRequest request) throws IOException, ApiException
      Get all available languages for translation
      Parameters:
      request - The request object
      Returns:
      AvailableTranslations
      Throws:
      ApiException - if the request fails on the server
      IOException - if the request fails to be processed
    • getLanguagesTranslations

      public ApiResponse<AvailableTranslations> getLanguagesTranslations(ApiRequest<Void> request) throws IOException
      Get all available languages for translation
      Parameters:
      request - The request object
      Returns:
      the response
      Throws:
      IOException - if the request fails to be processed
    • getLanguagesTranslationsBuiltin

      public Map<String,Object> getLanguagesTranslationsBuiltin(String language) throws IOException, ApiException
      Get the builtin translation for a language
      Parameters:
      language - The language of the builtin translation to retrieve (required)
      Returns:
      Map<String, Object>
      Throws:
      ApiException - if the request fails on the server
      IOException - if the request fails to be processed
    • getLanguagesTranslationsBuiltinWithHttpInfo

      public ApiResponse<Map<String,Object>> getLanguagesTranslationsBuiltinWithHttpInfo(String language) throws IOException
      Get the builtin translation for a language
      Parameters:
      language - The language of the builtin translation to retrieve (required)
      Returns:
      Map<String, Object>
      Throws:
      IOException - if the request fails to be processed
    • getLanguagesTranslationsBuiltin

      public Map<String,Object> getLanguagesTranslationsBuiltin(GetLanguagesTranslationsBuiltinRequest request) throws IOException, ApiException
      Get the builtin translation for a language
      Parameters:
      request - The request object
      Returns:
      Map<String, Object>
      Throws:
      ApiException - if the request fails on the server
      IOException - if the request fails to be processed
    • getLanguagesTranslationsBuiltin

      public ApiResponse<Map<String,Object>> getLanguagesTranslationsBuiltin(ApiRequest<Void> request) throws IOException
      Get the builtin translation for a language
      Parameters:
      request - The request object
      Returns:
      the response
      Throws:
      IOException - if the request fails to be processed
    • getLanguagesTranslationsOrganization

      public Map<String,Object> getLanguagesTranslationsOrganization(String language) throws IOException, ApiException
      Get effective translation for an organization by language
      Parameters:
      language - The language of the translation to retrieve for the organization (required)
      Returns:
      Map<String, Object>
      Throws:
      ApiException - if the request fails on the server
      IOException - if the request fails to be processed
    • getLanguagesTranslationsOrganizationWithHttpInfo

      public ApiResponse<Map<String,Object>> getLanguagesTranslationsOrganizationWithHttpInfo(String language) throws IOException
      Get effective translation for an organization by language
      Parameters:
      language - The language of the translation to retrieve for the organization (required)
      Returns:
      Map<String, Object>
      Throws:
      IOException - if the request fails to be processed
    • getLanguagesTranslationsOrganization

      public Map<String,Object> getLanguagesTranslationsOrganization(GetLanguagesTranslationsOrganizationRequest request) throws IOException, ApiException
      Get effective translation for an organization by language
      Parameters:
      request - The request object
      Returns:
      Map<String, Object>
      Throws:
      ApiException - if the request fails on the server
      IOException - if the request fails to be processed
    • getLanguagesTranslationsOrganization

      public ApiResponse<Map<String,Object>> getLanguagesTranslationsOrganization(ApiRequest<Void> request) throws IOException
      Get effective translation for an organization by language
      Parameters:
      request - The request object
      Returns:
      the response
      Throws:
      IOException - if the request fails to be processed
    • getLanguagesTranslationsUser

      public Map<String,Object> getLanguagesTranslationsUser(String userId) throws IOException, ApiException
      Get effective language translation for a user
      Parameters:
      userId - The user id (required)
      Returns:
      Map<String, Object>
      Throws:
      ApiException - if the request fails on the server
      IOException - if the request fails to be processed
    • getLanguagesTranslationsUserWithHttpInfo

      public ApiResponse<Map<String,Object>> getLanguagesTranslationsUserWithHttpInfo(String userId) throws IOException
      Get effective language translation for a user
      Parameters:
      userId - The user id (required)
      Returns:
      Map<String, Object>
      Throws:
      IOException - if the request fails to be processed
    • getLanguagesTranslationsUser

      public Map<String,Object> getLanguagesTranslationsUser(GetLanguagesTranslationsUserRequest request) throws IOException, ApiException
      Get effective language translation for a user
      Parameters:
      request - The request object
      Returns:
      Map<String, Object>
      Throws:
      ApiException - if the request fails on the server
      IOException - if the request fails to be processed
    • getLanguagesTranslationsUser

      public ApiResponse<Map<String,Object>> getLanguagesTranslationsUser(ApiRequest<Void> request) throws IOException
      Get effective language translation for a user
      Parameters:
      request - The request object
      Returns:
      the response
      Throws:
      IOException - if the request fails to be processed
    • postLanguages

      public Language postLanguages(Language body) throws IOException, ApiException
      Deprecated.
      Create Language (Deprecated) This endpoint is deprecated. Please see the Routing API. (POST /api/v2/routing/languages
      Parameters:
      body - Language (required)
      Returns:
      Language
      Throws:
      ApiException - if the request fails on the server
      IOException - if the request fails to be processed
    • postLanguagesWithHttpInfo

      public ApiResponse<Language> postLanguagesWithHttpInfo(Language body) throws IOException
      Deprecated.
      Create Language (Deprecated) This endpoint is deprecated. Please see the Routing API. (POST /api/v2/routing/languages
      Parameters:
      body - Language (required)
      Returns:
      Language
      Throws:
      IOException - if the request fails to be processed
    • postLanguages

      public Language postLanguages(PostLanguagesRequest request) throws IOException, ApiException
      Deprecated.
      Create Language (Deprecated) This endpoint is deprecated. Please see the Routing API. (POST /api/v2/routing/languages
      Parameters:
      request - The request object
      Returns:
      Language
      Throws:
      ApiException - if the request fails on the server
      IOException - if the request fails to be processed
    • postLanguages

      public ApiResponse<Language> postLanguages(ApiRequest<Language> request) throws IOException
      Deprecated.
      Create Language (Deprecated) This endpoint is deprecated. Please see the Routing API. (POST /api/v2/routing/languages
      Parameters:
      request - The request object
      Returns:
      the response
      Throws:
      IOException - if the request fails to be processed