Class SwitchboardsApi


  • public class SwitchboardsApi
    extends java.lang.Object
    • Constructor Detail

      • SwitchboardsApi

        public SwitchboardsApi()
      • SwitchboardsApi

        public SwitchboardsApi​(ApiClient apiClient)
    • Method Detail

      • getApiClient

        public ApiClient getApiClient()
      • setApiClient

        public void setApiClient​(ApiClient apiClient)
      • createSwitchboard

        public SwitchboardResponse createSwitchboard​(java.lang.String appId)
                                              throws ApiException
        Create Switchboard Create a switchboard.
        Parameters:
        appId - Identifies the app. (required)
        Returns:
        a SwitchboardResponse
        Throws:
        ApiException - if fails to make API call
      • deleteSwitchboard

        public java.lang.Object deleteSwitchboard​(java.lang.String appId,
                                                  java.lang.String switchboardId)
                                           throws ApiException
        Delete Switchboard Deletes the switchboard and all its switchboard integrations. The integrations linked to these switchboard integrations are not deleted and will start receiving all conversation events.
        Parameters:
        appId - Identifies the app. (required)
        switchboardId - Identifies the switchboard. (required)
        Returns:
        a Object
        Throws:
        ApiException - if fails to make API call
      • listSwitchboards

        public SwitchboardListResponse listSwitchboards​(java.lang.String appId)
                                                 throws ApiException
        List Switchboards Lists all switchboards belonging to the app.
        Parameters:
        appId - Identifies the app. (required)
        Returns:
        a SwitchboardListResponse
        Throws:
        ApiException - if fails to make API call
      • updateSwitchboard

        public SwitchboardResponse updateSwitchboard​(SwitchboardUpdateBody switchboardUpdateBody,
                                                     java.lang.String appId,
                                                     java.lang.String switchboardId)
                                              throws ApiException
        Update Switchboard Updates a switchboard record.
        Parameters:
        switchboardUpdateBody - (required)
        appId - Identifies the app. (required)
        switchboardId - Identifies the switchboard. (required)
        Returns:
        a SwitchboardResponse
        Throws:
        ApiException - if fails to make API call
      • createSwitchboard

        public SwitchboardResponse createSwitchboard​(java.lang.String bearerToken,
                                                     java.lang.String appId)
                                              throws ApiException
        Create Switchboard Create a switchboard.
        Parameters:
        bearerToken - a token to be used for this request (required)
        appId - Identifies the app. (required)
        Returns:
        a SwitchboardResponse
        Throws:
        ApiException - if fails to make API call
      • deleteSwitchboard

        public java.lang.Object deleteSwitchboard​(java.lang.String bearerToken,
                                                  java.lang.String appId,
                                                  java.lang.String switchboardId)
                                           throws ApiException
        Delete Switchboard Deletes the switchboard and all its switchboard integrations. The integrations linked to these switchboard integrations are not deleted and will start receiving all conversation events.
        Parameters:
        bearerToken - a token to be used for this request (required)
        appId - Identifies the app. (required)
        switchboardId - Identifies the switchboard. (required)
        Returns:
        a Object
        Throws:
        ApiException - if fails to make API call
      • listSwitchboards

        public SwitchboardListResponse listSwitchboards​(java.lang.String bearerToken,
                                                        java.lang.String appId)
                                                 throws ApiException
        List Switchboards Lists all switchboards belonging to the app.
        Parameters:
        bearerToken - a token to be used for this request (required)
        appId - Identifies the app. (required)
        Returns:
        a SwitchboardListResponse
        Throws:
        ApiException - if fails to make API call
      • updateSwitchboard

        public SwitchboardResponse updateSwitchboard​(java.lang.String bearerToken,
                                                     SwitchboardUpdateBody switchboardUpdateBody,
                                                     java.lang.String appId,
                                                     java.lang.String switchboardId)
                                              throws ApiException
        Update Switchboard Updates a switchboard record.
        Parameters:
        bearerToken - a token to be used for this request (required)
        switchboardUpdateBody - (required)
        appId - Identifies the app. (required)
        switchboardId - Identifies the switchboard. (required)
        Returns:
        a SwitchboardResponse
        Throws:
        ApiException - if fails to make API call