Class SwitchboardActionsApi
- java.lang.Object
-
- com.zendesk.sunshine_conversations_client.api.SwitchboardActionsApi
-
public class SwitchboardActionsApi extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description SwitchboardActionsApi()SwitchboardActionsApi(ApiClient apiClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectacceptControl(AcceptControlBody acceptControlBody, java.lang.String appId, java.lang.String conversationId)Accept Control The acceptControl action transfers the control of the conversation to the pending switchboard integration.java.lang.ObjectacceptControl(java.lang.String bearerToken, AcceptControlBody acceptControlBody, java.lang.String appId, java.lang.String conversationId)Accept Control The acceptControl action transfers the control of the conversation to the pending switchboard integration.ApiClientgetApiClient()java.lang.ObjectofferControl(OfferControlBody offerControlBody, java.lang.String appId, java.lang.String conversationId)Offer Control The offerControl action will invite a switchboard integration to accept control of the conversation (changing its status to pending), and trigger a webhook signal to that integration indicating that they have been offered control of the conversation.java.lang.ObjectofferControl(java.lang.String bearerToken, OfferControlBody offerControlBody, java.lang.String appId, java.lang.String conversationId)Offer Control The offerControl action will invite a switchboard integration to accept control of the conversation (changing its status to pending), and trigger a webhook signal to that integration indicating that they have been offered control of the conversation.java.lang.ObjectpassControl(PassControlBody passControlBody, java.lang.String appId, java.lang.String conversationId)Pass Control Mark the named switchboard integration as active and transition all the other switchboard integrations to standby status.java.lang.ObjectpassControl(java.lang.String bearerToken, PassControlBody passControlBody, java.lang.String appId, java.lang.String conversationId)Pass Control Mark the named switchboard integration as active and transition all the other switchboard integrations to standby status.voidsetApiClient(ApiClient apiClient)
-
-
-
Constructor Detail
-
SwitchboardActionsApi
public SwitchboardActionsApi()
-
SwitchboardActionsApi
public SwitchboardActionsApi(ApiClient apiClient)
-
-
Method Detail
-
getApiClient
public ApiClient getApiClient()
-
setApiClient
public void setApiClient(ApiClient apiClient)
-
acceptControl
public java.lang.Object acceptControl(AcceptControlBody acceptControlBody, java.lang.String appId, java.lang.String conversationId) throws ApiException
Accept Control The acceptControl action transfers the control of the conversation to the pending switchboard integration. When using integration auth scope, a 403 is returned if the pending switchboard integration is not the authenticated integration.- Parameters:
acceptControlBody- (required)appId- Identifies the app. (required)conversationId- Identifies the conversation. (required)- Returns:
- a
Object - Throws:
ApiException- if fails to make API call
-
offerControl
public java.lang.Object offerControl(OfferControlBody offerControlBody, java.lang.String appId, java.lang.String conversationId) throws ApiException
Offer Control The offerControl action will invite a switchboard integration to accept control of the conversation (changing its status to pending), and trigger a webhook signal to that integration indicating that they have been offered control of the conversation. Invalidates previous offerControl actions.- Parameters:
offerControlBody- (required)appId- Identifies the app. (required)conversationId- Identifies the conversation. (required)- Returns:
- a
Object - Throws:
ApiException- if fails to make API call
-
passControl
public java.lang.Object passControl(PassControlBody passControlBody, java.lang.String appId, java.lang.String conversationId) throws ApiException
Pass Control Mark the named switchboard integration as active and transition all the other switchboard integrations to standby status.- Parameters:
passControlBody- (required)appId- Identifies the app. (required)conversationId- Identifies the conversation. (required)- Returns:
- a
Object - Throws:
ApiException- if fails to make API call
-
acceptControl
public java.lang.Object acceptControl(java.lang.String bearerToken, AcceptControlBody acceptControlBody, java.lang.String appId, java.lang.String conversationId) throws ApiExceptionAccept Control The acceptControl action transfers the control of the conversation to the pending switchboard integration. When using integration auth scope, a 403 is returned if the pending switchboard integration is not the authenticated integration.- Parameters:
bearerToken- a token to be used for this request (required)acceptControlBody- (required)appId- Identifies the app. (required)conversationId- Identifies the conversation. (required)- Returns:
- a
Object - Throws:
ApiException- if fails to make API call
-
offerControl
public java.lang.Object offerControl(java.lang.String bearerToken, OfferControlBody offerControlBody, java.lang.String appId, java.lang.String conversationId) throws ApiExceptionOffer Control The offerControl action will invite a switchboard integration to accept control of the conversation (changing its status to pending), and trigger a webhook signal to that integration indicating that they have been offered control of the conversation. Invalidates previous offerControl actions.- Parameters:
bearerToken- a token to be used for this request (required)offerControlBody- (required)appId- Identifies the app. (required)conversationId- Identifies the conversation. (required)- Returns:
- a
Object - Throws:
ApiException- if fails to make API call
-
passControl
public java.lang.Object passControl(java.lang.String bearerToken, PassControlBody passControlBody, java.lang.String appId, java.lang.String conversationId) throws ApiExceptionPass Control Mark the named switchboard integration as active and transition all the other switchboard integrations to standby status.- Parameters:
bearerToken- a token to be used for this request (required)passControlBody- (required)appId- Identifies the app. (required)conversationId- Identifies the conversation. (required)- Returns:
- a
Object - Throws:
ApiException- if fails to make API call
-
-