Difference between revisions of "CanWatchMedia"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
{{Api_Method_Spec| | {{Api_Method_Spec| | ||
− | Description= | + | Description=Checks if a user can watch the media |
− | |||
|Parameters= | |Parameters= | ||
Line 31: | Line 30: | ||
|Returns= | |Returns= | ||
− | Returns a JSON object containing a | + | Returns a JSON object containing a number Id of media. |
'''Example:''' | '''Example:''' | ||
Line 39: | Line 38: | ||
: <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;"> | + | : <span style="color: #a11;">"Content"</span>: <span style="color: #219;">1</span> |
} | } | ||
Revision as of 14:57, 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.
- movieId (, )
- mediaId (, )
- pin (, )
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 |