GetAccountInfo2 method
Get profile properties, credit and usage information of your account id.
GetAccountInfo2 is replacing the obsolete methods GetAccountInfo and GetAccountUsage.
Credit: no credit is charged when using this method.
Arguments
AccountID
your account id
Example Request
<?xml version="1.0"?>
<methodCall>
<methodName>GetAccountInfo2</methodName>
<params>
<param>
<value><string>account id</string></value>
</param>
</params>
</methodCall>
Example Response
The method returns a AccountInfo2 struct.
AccountInfo2 struct
UserName
account id.
Password
password.
Roles
guest, customer, evaluation.
Usage
how much credit was used.
DateAdd
date account was created.
Status
account status. enabled disabled.
Credit
how much credit is in the account.
<?xml version="1.0"?>
&<methodResponse>
<params>
<param>
<value>
<struct>
<member>
<name>AccountInfo2.UserName</name>
<value><string>username</string></value>
</member>
<member>
<name>AccountInfo2.Password</name>
<value><string>password</string></value>
</member>
<member>
<name>AccountInfo2.Roles</name>
<value><string>customer</string></value>
</member>
<member>
<name>AccountInfo2.Usage</name>
<value><long>25</string>
</value>
</member>
<member>
<name>AccountInfo2.DateAdd</name>
<value><string>1/4/2010</string>
</value>
</member>
<member>
<name>AccountInfo2.Status</name>
<value><int>1</string>
</value>
</member>
<member>
<name>AccountInfo2.Credit</name>
<value><long>100</string>
</value>
</member>
</struct>
</value>
</param>
</params>
</methodResponse>