Fetch a Contest Entry

From ePrize Developers Wiki

(Difference between revisions)
Jump to: navigation, search

Todd-chapman (Talk | contribs)
(New page: ==== Fetch a Contest Entry ==== Fetch entry: $ curl -i -X GET -H "Accept: text/xml" \ http://test.url.eprize.com/v1/eprize/ews12/contestv2/contest/entry/1 HTTP 200 (OK) Cache-Con...)
Next diff →

Revision as of 18:55, 26 July 2010

Fetch a Contest Entry

Fetch entry:

$ curl -i -X GET -H "Accept: text/xml" \
  http://test.url.eprize.com/v1/eprize/ews12/contestv2/contest/entry/1

HTTP 200 (OK)
Cache-Control: public
Connection: close
Date: Fri, 23 Jul 2010 21:43:40 GMT
Server: POE HTTPD Component/0.09 (5.008008)
Content-Length: 533
Content-Type: text/xml; charset=utf-8
Expires: Fri, 23 Jul 2010 21:53:40 GMT

<?xml version="1.0" encoding="UTF-8" ?>
<result>
  <entry>
    <body>this is the body of my essay</body>
    <category>1</category>
    <city>PLEASANT RIDGE</city>
    <description></description>
    <entry_id>1</entry_id>
    <entry_state>approved</entry_state>
    <first_name>Todd</first_name>
    <last_name>C</last_name>
    <rating_ave>0.000</rating_ave>
    <rating_count>0</rating_count>
    <state>MI</state>
    <title>this is the title of my essay</title>
    <views>0</views>
    <votes>0</votes>
  </entry>
</result>
Personal tools