Difference between revisions of "LoginRememberUser"

From Gvp-public
Jump to navigation Jump to search
(Created page with "{{Api_Method_Spec| Description= |Parameters= {{Api_Parameter| ParamName=deviceType |ParamType=int |ParamRequired=required |ParamDescription=The device type code (see #DeviceTyp...")
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
{{Api_Method_Spec|
 
{{Api_Method_Spec|
Description=
+
Description=Login Remember User do the login in the GVP using a valid token generated by the method [[RememberUser]] in the AuthenticationService. A new token will be generated and return in the [[login]] object.
  
 
|Parameters=
 
|Parameters=
Line 20: Line 20:
 
|ParamType=String
 
|ParamType=String
 
|ParamRequired=required
 
|ParamRequired=required
|ParamDescription=A valid token for identifying the API session context. The token can be anonymous or logged.
+
|ParamDescription=A valid token for identifying the API session context. This token is generated by the [[RememberUser]].
 
}}
 
}}
  
Line 29: Line 29:
  
 
{
 
{
:    [ <span style="color: #219;">[[Login]] object</span> ]
+
:    [[Login]] object
 
}
 
}
  
 
|Exceptions=
 
|Exceptions=
None
+
* [[InvalidUserException]]
 +
* [[InvalidTokenException]]
  
 
|Cache=
 
|Cache=

Latest revision as of 19:45, 4 June 2014

Description

Login Remember User do the login in the GVP using a valid token generated by the method RememberUser in the AuthenticationService. A new token will be generated and return in the login object.

Parameters

  • deviceType (int, required)
The device type code (see #DeviceTypeCodes enumeration to know the list of device types allowed)
  • instanceId (int, required)
The id of the instance (OB) for the current environment. This ID might vary depending on the environment.
  • tokenRememberUser (String, required)
A valid token for identifying the API session context. This token is generated by the RememberUser.


Returns

Returns a JSON containing the Login object.

Example:

{

Login object

}


Exceptions


Caching

This method is not cached.


Known issues

None


Version history

API Version Number Change description Changes author
1.0 Initial method design Harley Cabral


See also