Difference between revisions of "GetTime"

From Gvp-public
Jump to navigation Jump to search
(Created page with "{{Api_Method_Spec| Description=Return the time information from server in Timestamp format. The timestamp were in UTC format. |Parameters= {{Api_Parameter| ParamName=token |...")
 
 
(One intermediate revision by the same user not shown)
Line 6: Line 6:
  
 
{{Api_Parameter|
 
{{Api_Parameter|
ParamName=token
+
ParamName=deviceType
|ParamType=String
+
|ParamType=[[deviceType]]
 
|ParamRequired=required
 
|ParamRequired=required
|ParamDescription=A valid token for identifying the API session context. The token can be anonymous or logged.
+
|ParamDescription=A valid deviceType.
 +
}}
 +
{{Api_Parameter|
 +
ParamName=oauth_consumer_key
 +
|ParamType=string
 +
|ParamRequired=required
 +
|ParamDescription=A valid oauth consumer key, matching the one linked in GVP for the specific deviceType.
 
}}
 
}}
  
  
 
|Returns=
 
|Returns=
Returns a JSON object containing an array of [[LiveChannel]].
+
Returns a JSON object containing current timestamp.
  
 
'''Example:'''
 
'''Example:'''

Latest revision as of 13:22, 6 March 2015

Description

Return the time information from server in Timestamp format. The timestamp were in UTC format.

Parameters

A valid deviceType.
  • oauth_consumer_key (string, required)
A valid oauth consumer key, matching the one linked in GVP for the specific deviceType.


Returns

Returns a JSON object containing current timestamp.

Example:

{

"StatusCode": 0,
"Severity": 1,
"StatusMessage": "OK",
"Content": 1406728241

}


Exceptions

  • None


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