/Account/Info

Gets information about the currently logged in account.

JSON

Request
{
}
Response (if successful, i.e. token is valid)
{
	"userName": Required(Str(PUserName)),
	"created": Required(DateTime(PCreated)),
	"eMail": Required(Str(PEMail)),
	"phoneNr": Optional(Str(PPhoneNr))
}

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)))
			 eMail=(Required(Str(PEMail)))
			 phoneNr=(Optional(Str(PPhoneNr))) />

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.
PPhoneNr Validated phone number associated with account. Empty string if none.

Javascript Library

Use the following asynchronous method in the Javascript Library, to call this resource.

var Response = await AgentAPI.Account.Info();
Test

Request Payload:

   

Response Payload: