Difference between revisions of "CanWatchMedia"

From Gvp-public
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
{{Api_Method_Spec|
 
{{Api_Method_Spec|
Description=
+
Description=Checks if a user can watch the media
TODO
 
  
 
|Parameters=
 
|Parameters=
Line 12: Line 11:
 
}}
 
}}
 
{{Api_Parameter|
 
{{Api_Parameter|
ParamName=movieId
+
ParamName=assetId
|ParamType=
+
|ParamType=int
|ParamRequired=
+
|ParamRequired=optional
 
|ParamDescription=
 
|ParamDescription=
 
}}
 
}}
 
{{Api_Parameter|
 
{{Api_Parameter|
ParamName=mediaId
+
ParamName=drmKeyId
|ParamType=
+
|ParamType=String
|ParamRequired=
+
|ParamRequired=optional
|ParamDescription=
+
|ParamDescription=Media DRM key Id
}}
 
{{Api_Parameter|
 
ParamName=pin
 
|ParamType=
 
|ParamRequired=
 
|ParamDescription=
 
 
}}
 
}}
 +
  
 
|Returns=
 
|Returns=
Returns a JSON object containing a XXX.
+
Returns a JSON object containing a number Id of media.
  
 
'''Example:'''
 
'''Example:'''
Line 39: Line 33:
 
:    <span style="color: #a11;">"Severity"</span>: <span style="color: #164;">1</span>,
 
:    <span style="color: #a11;">"Severity"</span>: <span style="color: #164;">1</span>,
 
:    <span style="color: #a11;">"StatusMessage"</span>: <span style="color: #164;">"OK"</span>,
 
:    <span style="color: #a11;">"StatusMessage"</span>: <span style="color: #164;">"OK"</span>,
:    <span style="color: #a11;">"Content"</span>: <span style="color: #219;">XXX</span>
+
:    <span style="color: #a11;">"Content"</span>: <span style="color: #219;">1</span>
 
}
 
}
  

Latest revision as of 14:58, 31 July 2014

Description

Checks if a user can watch the media

Parameters

  • token (String, required)
A valid token for identifying the API session context. The token can be anonymous or logged.
  • assetId (int, optional)
  • drmKeyId (String, optional)
Media DRM key Id


Returns

Returns a JSON object containing a number Id of media.

Example:

{

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

}


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