The LoginToken method allows you to generate temporary login tokens for your account and any viewable child accounts.
The following datatype will be JSONified and returned when /LoginToken is successfully called.
public | UInt64 | AccountId; | // The AccountId of the Account for this token. |
public | String | Token; | // The temporary token. |
public | DateTime | TokenExpiration; | // The server DateTime at which the Token will cease to function. |
public | String | Link; | // A link to the webapp which will automatically log into the requested Account. This link will function for at most two minutes. |
Please note that AccountId is not optional for this call. You must specify your AccountId, or the AccountId of the child account you wish to generate a token for.
Summary: Creates a new login token for the specified account, and returns it.
Returns: The newly-created login token. It will persist for no more than two minutes.
Parameters:
- id: The AccountId of the Account to create the token for. (FromUri)