Class AccountManagerServices
Creates and manage SIP user accounts remotely, using the REST API of the Flexisip Account Manager.
Inherited Members
Namespace: Linphone
Assembly: cs.temp.dll.dll
Syntax
public class AccountManagerServices : LinphoneObject
Remarks
Properties
Language
Gets the configurer preferred language, if set.
Declaration
public string Language { get; set; }
Property Value
Type | Description |
---|---|
System.String | the language previously set, if any (otherwise null). |
Methods
CreateDeleteDeviceRequest(Address, AccountDevice)
Requests to delete a device from the list of currently known devices.
Declaration
public AccountManagerServicesRequest CreateDeleteDeviceRequest(Address sipIdentity, AccountDevice device)
Parameters
Type | Name | Description |
---|---|---|
Address | sipIdentity | the SIP identity URI that identifies your account for which you want the devices list. |
AccountDevice | device | the Linphone.AccountDevice to delete. |
Returns
Type | Description |
---|---|
AccountManagerServicesRequest | the Linphone.AccountManagerServicesRequest request object. |
CreateGetAccountCreationRequestTokenRequest()
Requests a an account creation request token that once validated using the URL
returned by this method upon success, will allow you to call
Once the account creation token is obtained, you can call
Declaration
public AccountManagerServicesRequest CreateGetAccountCreationRequestTokenRequest()
Returns
Type | Description |
---|---|
AccountManagerServicesRequest | the Linphone.AccountManagerServicesRequest request object. |
CreateGetAccountCreationTokenFromRequestTokenRequest(String)
Converts an account creation request token obtained by linphone_account_manager_services_request_account_creation_request_token to an account creation token.
The obtained token can be used to call
Declaration
public AccountManagerServicesRequest CreateGetAccountCreationTokenFromRequestTokenRequest(string requestToken)
Parameters
Type | Name | Description |
---|---|---|
System.String | requestToken | the token obtained previously and validated using your web browser. |
Returns
Type | Description |
---|---|
AccountManagerServicesRequest | the Linphone.AccountManagerServicesRequest request object. |
CreateGetDevicesListRequest(Address)
Requests the list of devices currently known.
Declaration
public AccountManagerServicesRequest CreateGetDevicesListRequest(Address sipIdentity)
Parameters
Type | Name | Description |
---|---|---|
Address | sipIdentity | the SIP identity URI that identifies your account for which you want the devices list. |
Returns
Type | Description |
---|---|
AccountManagerServicesRequest | the Linphone.AccountManagerServicesRequest request object. |
CreateLinkEmailToAccountUsingCodeRequest(Address, String)
Validates the link between an email address and an account using a code
received by email after calling
Declaration
public AccountManagerServicesRequest CreateLinkEmailToAccountUsingCodeRequest(Address sipIdentity, string code)
Parameters
Type | Name | Description |
---|---|---|
Address | sipIdentity | the SIP identity URI that identifies the account to which you want to link the email address to. |
System.String | code | the code received by email. |
Returns
Type | Description |
---|---|
AccountManagerServicesRequest | the Linphone.AccountManagerServicesRequest request object. |
CreateLinkPhoneNumberToAccountUsingCodeRequest(Address, String)
Validates the link between a phone number and an account using a code received
by SMS after calling
Declaration
public AccountManagerServicesRequest CreateLinkPhoneNumberToAccountUsingCodeRequest(Address sipIdentity, string code)
Parameters
Type | Name | Description |
---|---|---|
Address | sipIdentity | the SIP identity URI that identifies the account to which you want to link the phone number to. |
System.String | code | the code received by SMS. |
Returns
Type | Description |
---|---|
AccountManagerServicesRequest | the Linphone.AccountManagerServicesRequest request object. |
CreateNewAccountUsingTokenRequest(String, String, String, String)
Creates an account using an account creation token, for example obtained using
Declaration
public AccountManagerServicesRequest CreateNewAccountUsingTokenRequest(string username, string password, string algorithm, string token)
Parameters
Type | Name | Description |
---|---|---|
System.String | username | the username of the newly created account. |
System.String | password | the password to use for the newly created account. |
System.String | algorithm | the algorithm to use to hash the password (must be either MD5 or SHA-256). |
System.String | token | the account creation token obtained previously. |
Returns
Type | Description |
---|---|
AccountManagerServicesRequest | the Linphone.AccountManagerServicesRequest request object. |
CreateSendAccountCreationTokenByPushRequest(String, String, String)
Requests a push notification to be sent to device, containing a valid account creation token.
Provider, param & prid can be obtained from
Linphone.Core.PushNotificationConfig, but on iOS may need some
modifications (depending on debug mode for example). Once the token is
obtained, you can call
Declaration
public AccountManagerServicesRequest CreateSendAccountCreationTokenByPushRequest(string pnProvider, string pnParam, string pnPrid)
Parameters
Type | Name | Description |
---|---|---|
System.String | pnProvider | The provider, for example "apns.dev". |
System.String | pnParam | The parameters, for example "ABCD1234.org.linphone.phone.remote". |
System.String | pnPrid | The prid, also known as push token. |
Returns
Type | Description |
---|---|
AccountManagerServicesRequest | the Linphone.AccountManagerServicesRequest request object. |
CreateSendEmailLinkingCodeByEmailRequest(Address, String)
Requests a code to be sent to a given email address, that can be used later to
associate said email to an account using
Declaration
public AccountManagerServicesRequest CreateSendEmailLinkingCodeByEmailRequest(Address sipIdentity, string emailAddress)
Parameters
Type | Name | Description |
---|---|---|
Address | sipIdentity | the SIP identity URI that identifies the account to which you want to link the email address to. |
System.String | emailAddress | the email address to which to send the code to. |
Returns
Type | Description |
---|---|
AccountManagerServicesRequest | the Linphone.AccountManagerServicesRequest request object. |
CreateSendPhoneNumberLinkingCodeBySmsRequest(Address, String)
Requests a code to be sent to a given phone number, that can be used later to
associate said phone number to an account using
Declaration
public AccountManagerServicesRequest CreateSendPhoneNumberLinkingCodeBySmsRequest(Address sipIdentity, string phoneNumber)
Parameters
Type | Name | Description |
---|---|---|
Address | sipIdentity | the SIP identity URI that identifies the account to which you want to link the phone number to. |
System.String | phoneNumber | the phone number to which to send the code by SMS. |
Returns
Type | Description |
---|---|
AccountManagerServicesRequest | the Linphone.AccountManagerServicesRequest request object. |