Package com.sinch.sdk.domains.voice
Interface ApplicationsService
public interface ApplicationsService
You can use the API to manage features of applications in your project.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Update or assign a list of numbers to an application.getCallbackUrls
(String applicationKey) Returns any callback URLs configured for the specified applicationGet information about your numbers.queryNumber
(E164PhoneNumber number) void
unassignNumber
(E164PhoneNumber phoneNumber, String applicationKey) Un-assign a number from an application.void
updateCallbackUrls
(String applicationKey, CallbackUrls parameters)
-
Method Details
-
listNumbers
AssignedNumbers listNumbers()Get information about your numbers.It returns a list of numbers that you own, as well as their capability (voice or SMS). For the ones that are assigned to an app, it returns the application key of the app.
- Returns:
- Your numbers
- Since:
- 1.0
-
getCallbackUrls
Returns any callback URLs configured for the specified application- Parameters:
applicationKey
- The unique identifying key of the application- Returns:
- Assigned callback to application
- Since:
- 1.0
-
updateCallbackUrls
- Since:
- 1.0
-
queryNumber
-
assignNumbers
Update or assign a list of numbers to an application.- Parameters:
parameters
- Request parameters- Since:
- 1.0
-
unassignNumber
Un-assign a number from an application.- Parameters:
phoneNumber
- The phone numberapplicationKey
- Indicates the application where the number was assigned.If empty, the application key that is used to authenticate
- Since:
- 1.0
-