Interface AppService
Apps are created and configured through the Sinch Dashboard, are tied to the API user and come with a set of channel credentials for each underlying connected channel.
The app has a list of conversations between itself and different contacts which share the same project.
Webhooks, which the app is attached to, defines the destination for various events coming from the Conversation API. An app has the following configurable properties:
- Since:
- 1.3
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(AppCreateRequest parameters) Create a Conversation applicationvoid
Delete an appGet an applist()
List all appsupdate
(String appId, AppUpdateRequest parameters) Update a Conversation application
-
Method Details
-
list
Collection<AppResponse> list()List all appsGet a list of all apps in the specified project
- Returns:
- List of apps related to configured region (from
Configuration.Builder.setConversationRegion(ConversationRegion)
) - Since:
- 1.3
-
get
Get an appReturns a particular app as specified by the App ID.
- Parameters:
appId
- The application identifier- Returns:
- App information details
- Since:
- 1.3
-
delete
Delete an appDeletes the app specified by the App ID
Note that this operation will not delete contacts (which are stored at the project level) nor any channel-specific resources (for example, WhatsApp Sender Identities will not be deleted).
- Parameters:
appId
- The application identifier- Since:
- 1.3
-
create
Create a Conversation applicationYou can create a new Conversation API app using the API.
You can create an app for one or more channels at once.
- Parameters:
parameters
- Creation parameters- Returns:
- Created application
- Since:
- 1.3
-
update
Update a Conversation applicationUpdates a particular app as specified by the App ID.
Any specified field values will replace existing values.
Therefore, if you'd like to add additional configurations to an existing Conversation API app, ensure that you include existing values AND new values in the call.
For example, if you'd like to add newchannel_credentials
, you can get your existing Conversation API app, extract the existingchannel_credentials
list, append your new configuration to that list, and include the updatedchannel_credentials
list in this update call.- Parameters:
appId
- The unique ID of the app to be updatedparameters
- Fields to be updated. Only fields filled within the parameters will be updated- Returns:
- Updated application
- Since:
- 1.3
-