Table of Contents
/Account/Info
Gets information about the currently logged in account. The account does not need to be enabled for this resource to return information about the account. The information will be somewhat restricted if the account is not enabled.
JSON
- Request
{ }- Response (if successful, i.e. token is valid)
{ "userName": Required(Str(PUserName)), "created": Required(DateTime(PCreated)), "updated": Optional(DateTime(PUpdated)), "eMail": Optional(Str(PEMail)), "eMailVerified": Optional(DateTime(PEMailVerified)), "phoneNr": Optional(Str(PPhoneNr)), "phoneNrVerified": Optional(DateTime(PPhoneNrVerified)) }
XML
- Request
<GetAccountInfo xmlns="https://waher.se/Schema/BrokerAgent.xsd" />- Response (if successful)
<AccountInfo xmlns="https://waher.se/Schema/BrokerAgent.xsd" userName=(Required(Str(PUserName))) created=(Required(DateTime(PCreated))) updated=(Optional(DateTime(PUpdated))) eMail=(Optional(Str(PEMail))) eMailVerified=(Optional(DateTime(PEMailVerified))) phoneNr=(Optional(Str(PPhoneNr))) phoneNrVerified=(Optional(DateTime(PPhoneNrVerified))) />
Input Parameters
No input parameters in this request.
Response Parameters
| Parameter | Description |
|---|---|
PUserName |
User name of currently logged in account. |
PCreated |
When account was created. |
PEMail |
Validated e-mail address associated with account. Empty string if none, or null if the account is not enabled. |
PEMailVerified |
When the e-mail address was verified. If the e-mail address has not been verified, this property will return null. |
PPhoneNr |
Validated phone number associated with account. Empty string if none, or null if the account is not enabled. |
PPhoneNrVerified |
When the phone number was verified. If the phone number has not been verified, this property will return null. |
Javascript Library
Use the following asynchronous method in the Javascript Library, to call this resource.
var Response = await AgentAPI.Account.Info();