Send a Contest Entry Link
From ePrize Developers Wiki
Summary
Send a link to a contest entry to a friend. The result will be an email sent to a friend. The content of the email and formatting must be configured with your API Key.
Resource
/v1/{apikey}/contest/entry/{entryId}/send_a_link
Valid Methods
POST
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
profile: Canonical Location of a user profile. See: Fetch Profile by Key
name: Friend's name
email: Friend's email address
Example: Successful response
Summary
Demonstrates successful response
Request
profile: http://test.url.eprize.com/v1/solution/contestv2v2/profile/1.5J4L55FNLN2CZZDV name: Friend email: friend@sample.com
Response
HTTP Status Code: 200 OK
<?xml version="1.0" encoding="UTF-8" ?> <result> <status>1</status> </result>
Example: Missing name
Request
profile: http://test.url.eprize.com/v1/solution/contestv2v2/profile/1.5J4L55FNLN2CZZDV email: friend@sample.com
Response
HTTP Status Code: 400 Bad Request
<?xml version="1.0" encoding="UTF-8" ?> <result> <input_error> <name>name</name> <error>1</error> <message></message> </input_error> </result>
Example: Bad email
Request
profile: http://test.url.eprize.com/v1/solution/contestv2v2/profile/1.5J4L55FNLN2CZZDV name: Friend email: slkdjfhsdkl
Response
HTTP Status Code: 400 Bad Request
<?xml version="1.0" encoding="UTF-8" ?> <result> <input_error> <name>email</name> <error>1</error> <message></message> </input_error> </result>