Package com.sinch.sdk.domains.voice
Interface ApplicationsService
-
public interface ApplicationsServiceYou can use the API to manage features of applications in your project.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CallbackUrlsgetCallbackUrls(String applicationKey)Returns any callback URLs configured for the specified applicationAssignedNumbersgetNumbers()Get information about your numbers.NumberInformationqueryNumber(E164PhoneNumber number)voidunassignNumber(E164PhoneNumber phoneNumber, String applicationKey)Un-assign a number from an application.voidupdateCallbackUrls(String applicationKey, CallbackUrls parameters)voidupdateNumbers(ApplicationsUpdateNumbersRequestParameters parameters)Update or assign a list of numbers to an application.
-
-
-
Method Detail
-
getNumbers
AssignedNumbers getNumbers()
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
CallbackUrls getCallbackUrls(String applicationKey)
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
void updateCallbackUrls(String applicationKey, CallbackUrls parameters)
- Since:
- 1.0
-
queryNumber
NumberInformation queryNumber(E164PhoneNumber number)
-
updateNumbers
void updateNumbers(ApplicationsUpdateNumbersRequestParameters parameters)
Update or assign a list of numbers to an application.- Parameters:
parameters- Request parameters- Since:
- 1.0
-
unassignNumber
void unassignNumber(E164PhoneNumber phoneNumber, String applicationKey)
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
-
-