Tattle on a Contest Entry
From ePrize Developers Wiki
(Difference between revisions)
Line 24: | Line 24: | ||
{{RESTfulExample | {{RESTfulExample | ||
|title=Tattle on an entry ID that does not exist | |title=Tattle on an entry ID that does not exist | ||
+ | |request=profile: http://test.url.eprize.com/v1/solution/contestv2v2/profile/1.5J4L55FNLN2CZZDV | ||
+ | reason: 'not work safe' | ||
|responsecode=404 Not Found | |responsecode=404 Not Found | ||
|response=<?xml version="1.0" encoding="UTF-8" ?> | |response=<?xml version="1.0" encoding="UTF-8" ?> | ||
Line 32: | Line 34: | ||
{{RESTfulExample | {{RESTfulExample | ||
|title=Missing reason | |title=Missing reason | ||
+ | |request=profile: http://test.url.eprize.com/v1/solution/contestv2v2/profile/1.5J4L55FNLN2CZZDV | ||
|responsecode=404 Not Found | |responsecode=404 Not Found | ||
|response=<?xml version="1.0" encoding="UTF-8" ?> | |response=<?xml version="1.0" encoding="UTF-8" ?> |
Revision as of 19:23, 19 April 2011
Summary
Send a notification about a specific entry to an administrator. The result will be an email to a predefined tattle recipient configured in the API Key
Resource
/v1/{apikey}/contest/entry/{entryid}
Valid Methods
GET
Resource Arguments
Note: resource arguments are always required.
apikey: Your API Key.
entryid: ID of the entry retrieved from entry creation or by viewing the gallery.
Parameters Required
reason: reason for flagging this entry.
profile: Canonical Location of a user profile. See: Fetch Profile by Key
Example: Successful tattle
Summary
Demonstrates successful response
Request
profile: http://test.url.eprize.com/v1/solution/contestv2v2/profile/1.5J4L55FNLN2CZZDV reason: 'not work safe'
Response
HTTP Status Code: 200 OK
<?xml version="1.0" encoding="UTF-8" ?> <result> <status>1</status> </result>
Example: Tattle on an entry ID that does not exist
Request
profile: http://test.url.eprize.com/v1/solution/contestv2v2/profile/1.5J4L55FNLN2CZZDV reason: 'not work safe'
Response
HTTP Status Code: 404 Not Found
<?xml version="1.0" encoding="UTF-8" ?> <result> <status>0</status> </result>
Example: Missing reason
Request
profile: http://test.url.eprize.com/v1/solution/contestv2v2/profile/1.5J4L55FNLN2CZZDV
Response
HTTP Status Code: 404 Not Found
<?xml version="1.0" encoding="UTF-8" ?> <result> <status>0</status> </result>