.vidcheck
Use this method to submit a video to the moderation service. It will return an Video ID that is used to return the results of the moderation to a callback function.
Currently the following video file types are supported:
| mp4 | flv | webm | |
|---|---|---|---|
| Extension(s) | mp4, m4v, f4v, mov | flv | webm |
| Mimetype | video/mp4 | video/flv | video/webm |
You may also use the WP sandbox for testing and development: webpurify.sandbox.vidcheck
After your video has been moderated, a request will be made from our service to a callback url you provide. See our callback response
Arguments
api_key(Required)- Your API application key.
vidurl(Required)- Full url to the video you would like moderated.
format(Optional)- Response format: xml or json. Defaults to xml.
customvidid(Optional)- A custom ID you wish to associate with the video that will be carried through to the callback.
callback(Optional)- You may also submit a URL encoded callback on a per video basis: read more
Example Response
<?xml version="1.0" encoding="utf-8" ?> <rsp stat="ok"> <method>webpurify.live.vidcheck</method> <format>rest</format> <vidid>7de93bc200ff21a26da6ddb115506e82</vidid> <status>pending</status> <api_key>f3412a9614845dc17d97a5d51a6xxxxx</api_key> </rsp>
Error Codes
100: Invalid API Key- The API key passed was not valid.
101: API Key is inactive- The API key passed is inactive or has been revoked.
102: API Key was not included in request- This method requires an API Key.
103: Not a valid URL- The submitted URL is not valid.
106: Out of minutes- Out of moderation minutes, Please refill.