Request a Demo

sandbox.imgcheck

When developing and/or testing your application you should use the Photo Moderation Sandbox methods.

Submit a photo to the moderation service, returns a photo ID that is used to return the results of the moderation to a callback function.

NOTE: Photos submitted via this method bypass our moderators and are moderated automatically. This method should be used to test that your integration is working properly NOT the accuracy of our moderators.

Arguments
api_key (Required)
Your API application key.
imgurl (Required)
Full url to the photo you would like moderated.
format (Optional)
Response format: xml or json. Defaults to xml.
customimgid (Optional)
A custom ID you wish to associate with the photo that will be carried through to the callback.
callback (Optional)
You may also submit a URL encoded callback on a per photo basis: read more
snstopic (Optional)
SNS Topic name. To use AWS SNS to receive results read more
Example Response
<?xml version="1.0" encoding="utf-8" ?> 
  <rsp stat="ok">
  <method>webpurify.sandbox.imgcheck</method>
  <format>rest</format>
  <imgid>7de93bc200ff21a26da6ddb115506e82</imgid>
  <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.