Class AppsApi
- java.lang.Object
-
- com.zendesk.sunshine_conversations_client.api.AppsApi
-
public class AppsApi extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AppResponsecreateApp(AppCreateBody appCreateBody)Create App Creates a new app.AppResponsecreateApp(java.lang.String bearerToken, AppCreateBody appCreateBody)Create App Creates a new app.java.lang.ObjectdeleteApp(java.lang.String appId)Delete App Removes the specified app, including all its enabled integrations.java.lang.ObjectdeleteApp(java.lang.String bearerToken, java.lang.String appId)Delete App Removes the specified app, including all its enabled integrations.ApiClientgetApiClient()AppResponsegetApp(java.lang.String appId)Get App Fetches an individual app.AppResponsegetApp(java.lang.String bearerToken, java.lang.String appId)Get App Fetches an individual app.AppListResponselistApps(Page page, AppListFilter filter)List Apps Lists all apps that a user is part of.AppListResponselistApps(java.lang.String bearerToken, Page page, AppListFilter filter)List Apps Lists all apps that a user is part of.voidsetApiClient(ApiClient apiClient)AppResponseupdateApp(AppUpdateBody appUpdateBody, java.lang.String appId)Update App Updates an app.AppResponseupdateApp(java.lang.String bearerToken, AppUpdateBody appUpdateBody, java.lang.String appId)Update App Updates an app.
-
-
-
Constructor Detail
-
AppsApi
public AppsApi()
-
AppsApi
public AppsApi(ApiClient apiClient)
-
-
Method Detail
-
getApiClient
public ApiClient getApiClient()
-
setApiClient
public void setApiClient(ApiClient apiClient)
-
createApp
public AppResponse createApp(AppCreateBody appCreateBody) throws ApiException
Create App Creates a new app. When using [service account](#service-accounts) credentials, the service account is automatically granted access to the app.- Parameters:
appCreateBody- (required)- Returns:
- a
AppResponse - Throws:
ApiException- if fails to make API call
-
deleteApp
public java.lang.Object deleteApp(java.lang.String appId) throws ApiExceptionDelete App Removes the specified app, including all its enabled integrations.- Parameters:
appId- Identifies the app. (required)- Returns:
- a
Object - Throws:
ApiException- if fails to make API call
-
getApp
public AppResponse getApp(java.lang.String appId) throws ApiException
Get App Fetches an individual app.- Parameters:
appId- Identifies the app. (required)- Returns:
- a
AppResponse - Throws:
ApiException- if fails to make API call
-
listApps
public AppListResponse listApps(Page page, AppListFilter filter) throws ApiException
List Apps Lists all apps that a user is part of. This API is paginated through [cursor pagination](#section/Introduction/API-pagination-and-records-limits). ```shell /v2/apps?page[after]=5e1606762556d93e9c176f69&page[size]=10 ```- Parameters:
page- Contains parameters for applying cursor pagination. (optional)filter- Contains parameters for filtering the results. (optional)- Returns:
- a
AppListResponse - Throws:
ApiException- if fails to make API call
-
updateApp
public AppResponse updateApp(AppUpdateBody appUpdateBody, java.lang.String appId) throws ApiException
Update App Updates an app.- Parameters:
appUpdateBody- (required)appId- Identifies the app. (required)- Returns:
- a
AppResponse - Throws:
ApiException- if fails to make API call
-
createApp
public AppResponse createApp(java.lang.String bearerToken, AppCreateBody appCreateBody) throws ApiException
Create App Creates a new app. When using [service account](#service-accounts) credentials, the service account is automatically granted access to the app.- Parameters:
bearerToken- a token to be used for this request (required)appCreateBody- (required)- Returns:
- a
AppResponse - Throws:
ApiException- if fails to make API call
-
deleteApp
public java.lang.Object deleteApp(java.lang.String bearerToken, java.lang.String appId) throws ApiExceptionDelete App Removes the specified app, including all its enabled integrations.- Parameters:
bearerToken- a token to be used for this request (required)appId- Identifies the app. (required)- Returns:
- a
Object - Throws:
ApiException- if fails to make API call
-
getApp
public AppResponse getApp(java.lang.String bearerToken, java.lang.String appId) throws ApiException
Get App Fetches an individual app.- Parameters:
bearerToken- a token to be used for this request (required)appId- Identifies the app. (required)- Returns:
- a
AppResponse - Throws:
ApiException- if fails to make API call
-
listApps
public AppListResponse listApps(java.lang.String bearerToken, Page page, AppListFilter filter) throws ApiException
List Apps Lists all apps that a user is part of. This API is paginated through [cursor pagination](#section/Introduction/API-pagination-and-records-limits). ```shell /v2/apps?page[after]=5e1606762556d93e9c176f69&page[size]=10 ```- Parameters:
bearerToken- a token to be used for this request (required)page- Contains parameters for applying cursor pagination. (optional)filter- Contains parameters for filtering the results. (optional)- Returns:
- a
AppListResponse - Throws:
ApiException- if fails to make API call
-
updateApp
public AppResponse updateApp(java.lang.String bearerToken, AppUpdateBody appUpdateBody, java.lang.String appId) throws ApiException
Update App Updates an app.- Parameters:
bearerToken- a token to be used for this request (required)appUpdateBody- (required)appId- Identifies the app. (required)- Returns:
- a
AppResponse - Throws:
ApiException- if fails to make API call
-
-