Fetch Contest Leaderboard

From ePrize Developers Wiki

(Difference between revisions)
Jump to: navigation, search
(New page: $ curl -i -X GET -H "Accept: text/xml" \ "http://test.url.eprize.com/v1/solution/contestv2/contest/most-popular" HTTP 200 OK Date: Thu, 29 Jul 2010 21:13:30 GMT Server: Apache/2.2...)
Current revision (19:46, 19 April 2011) (edit) (undo)
 
Line 1: Line 1:
-
$ curl -i -X GET -H "Accept: text/xml" \
+
{{RESTfulAPI
-
"http://test.url.eprize.com/v1/solution/contestv2/contest/most-popular"
+
|crumbs=[[API Home Page]] :: [[Contest API|Contest]]
-
+
|summary=Retrieve the most popular entries in the contest.
-
HTTP 200 OK
+
|resource=/v1/{apikey}/contest/most-popular
-
Date: Thu, 29 Jul 2010 21:13:30 GMT
+
|methods=GET
-
Server: Apache/2.2.4 (Unix) mod_perl/2.0.3 Perl/v5.8.8
+
|resourceargs='''apikey''': Your [[API Key]].
-
cache-control: public
+
|paramsrequired=None.
-
expires: Thu, 29 Jul 2010 21:18:30 GMT
+
}}
-
content-length: 1189
+
{{RESTfulExample
-
Connection: close
+
|title=Successful response
-
Content-Type: text/xml; charset=utf-8
+
|summary=Demonstrates successful response
-
+
|responsecode=200 OK
-
<?xml version='1.0' standalone='yes'?>
+
|response=<?xml version='1.0' standalone='yes'?>
<result>
<result>
<entry>
<entry>
Line 53: Line 53:
<status>1</status>
<status>1</status>
</result>
</result>
 +
}}

Current revision

API Home Page :: Contest

Summary

Retrieve the most popular entries in the contest.

Resource

/v1/{apikey}/contest/most-popular

Valid Methods

GET

Resource Arguments

Note: resource arguments are always required.

apikey: Your API Key.

Parameters Required

None.



Example: Successful response

Summary

Demonstrates successful response


Response

HTTP Status Code: 200 OK


<?xml version='1.0' standalone='yes'?>
 <result>
   <entry>
     <id>5</id>
     <body>this is the body of my essay</body>
     <category_id>2</category_id>
     <created>2010-07-29 17:12:16</created>
     <description></description>
     <last_updated>2010-07-29 17:12:16</last_updated>
     <profile_id>4</profile_id>
     <random>65878</random>
     <rank>1</rank>
     <rating>6.000</rating>
     <rating_ave>3.000</rating_ave>
     <rating_count>2</rating_count>
     <state>approved</state>
     <title>a missive on soap</title>
     <type>ESSAY</type>
     <views>4</views>
     <votes>0</votes>
   </entry>
   <entry>
     <id>6</id>
     <body>this is the body of my essay</body>
     <category_id>2</category_id>
     <created>2010-07-29 16:25:56</created>
     <description></description>
     <last_updated>2010-07-29 17:07:32</last_updated>
     <profile_id>3</profile_id>
     <random>3743195157</random>
     <rank>2</rank>
     <rating>5.000</rating>
     <rating_ave>5.000</rating_ave>
     <rating_count>1</rating_count>
     <state>approved</state>
     <title>an ode to restful interfaces</title>
     <type>ESSAY</type>
     <views>6</views>
     <votes>0</votes>
   </entry>
   <status>1</status>
 </result>


Personal tools