| 
  • If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

View
 

Partigi API: reviews show

Page history last edited by Álvaro Bautista 14 years, 8 months ago

Go back to Partigi API Documentation

 

reviews/show

Returns the information of a given review, obtained from its id.

 

URL:

http://www.partigi.com/api/v1/reviews/show.format

 

Formats:

atom, json (more about JSON responses)

 

HTTP Methods:

GET 

 

Authentication Mode:

read-only

 

Parameters:

Required:

  • id: The ID of the review.

 

Optional: 

  • locale: Locale in which return the additional review's information (see available locales page), notice that this locale has nothing to do with the language in which the review was written, specified on ptReview:language attribute.

 

Example requests:

 

http://www.partigi.com/api/v1/reviews/show.atom?id=123&locale=en

 

Example responses:

 

  <?xml version="1.0" encoding="UTF-8"?>
  <feed xmlns="http://www.w3.org/2005/Atom">
    <title>Review 123 &#187; Partigi</title>
    <id>http://www.partigi.com/api/v1/reviews/show.atom?id=123</id>
    <updated>2009-07-08T06:54:17Z</updated>
    <link type="application/atom+xml" href="http://www.partigi.com/api/v1/reviews/show.atom?id=1" rel="self"/>
    <author>
      <name>Partigi</name>
    </author>
    <entry xmlns:ptUser="http://schemas.partigi.com/v1.0/ptUser" xmlns:hReview="http://schemas.partigi.com/v1.0/hReview" xmlns:ptReview="http://schemas.partigi.com/v1.0/ptReview" xmlns:ptItem="http://schemas.partigi.com/v1.0/ptItem">
      <category scheme="http://schemas.partigi.com/v1.0#kind" term="http://schemas.partigi.com/v1.0#review"/>
      <id>http://www.partigi.com/api/v1/reviews/show.atom?id=123</id>
      <title>Review 123</title>
      <updated>2009-07-08T06:54:17Z</updated>
      <published>2009-05-06T11:46:26Z</published>
      <link type="application/atom+xml" rel="self" href="http://www.partigi.com/api/v1/reviews/show.atom?id=1"/>
      <author>
        <name>A. User</name>
      </author>
      <summary type="text">This is the best film I've ever watched</summary>
      <content type="text">This is the best film I've ever watched</content>
      <ptReview:id>123</ptReview:id>
      <ptItem:id>1</ptItem:id>
      <ptUser:id>4</ptUser:id>
      <ptReview:status>1</ptReview:status>
      <ptReview:language>en</ptReview:language>
      <ptReview:emotions 
type="collection">
        <ptReview:emotion locale="en" name="excited"/>
        <ptReview:emotion locale="en" name="euphoric"/>
      </ptReview:emotions>
      <hReview:review>
        <hReview:item>
          <hReview:fn>Star Wars</hReview:fn>
          <hReview:url>http://www.partigi.com/films/star-wars</hReview:url>
        </hReview:item>
        <hReview:rating>5</hReview:rating>
      </hReview:review>
    </entry>
  </feed>

 

Go back to Partigi API Documentation

Comments (0)

You don't have permission to comment on this page.