| 
  • 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: friendships index

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

Go back to Partigi API Documentation

 

friendships/index

Returns the list of people that the given user follows or is followed by.

 

URL:

http://www.partigi.com/api/v1/friendships/index.format

 

Formats:

atom, json (more about JSON responses)

 

HTTP Methods:

GET 

 

Authentication Mode:

read-only

 

Parameters:

Required:

  • user_id: The ID or login of the User you want to know friends

 

Optional

  • type: Indicates which kind of relationship show: Only two values can be used: follows and followed. By default the value is follows.
  • per_page: The number of results per page to retrieve, from 1 up to 100. By default retrieves 10 elements.
  • page: The page from which retrieve the results. By default is 1.

 

 

Request example:

 

http://www.partigi.com/api/v1/friendships/index.atom?type=follows

 

Response example:

 

  <?xml version="1.0" encoding="UTF-8"?>
  <feed xmlns="http://www.w3.org/2005/Atom">
    <title>user/2/friends &#187; Partigi</title>
    <id>http://www.partigi.com/api/v1/friendships/index.atom?user_id=2</id>
    <updated>2009-06-29T08:10:59Z</updated>
    <link type="application/atom+xml" href="http://www.partigi.com/api/v1/friendships/index.atom?user_id=2" rel="self"/>
    <link type="text/html" href="http://www.partigi.com/blat/friends/follows" rel="alternate"/>
    <author>
      <name>Partigi</name>
    </author>
    <entry xmlns:ptUser="http://schemas.partigi.com/v1.0/ptUser">
      <category scheme="http://schemas.partigi.com/v1.0#kind" term="http://schemas.partigi.com/v1.0#user"/>
      <id>http://www.partigi.com/wadus</id>
      <title>wadus</title>
      <updated>2009-06-26T08:56:22Z</updated>
      <published>2009-06-25T15:47:43Z</published>
      <link type="text/html" href="http://www.partigi.com/wadus" rel="alternate"/>
      <link type="application/atom+xml" href="http://www.partigi.com/api/v1/users/show.atom?id=wadus" rel="self"/>
      <ptUser:id>7</ptUser:id>
      <ptUser:login>wadus</ptUser:login>
      <ptUser:country>ES</ptUser:country>
    </entry>
    <entry xmlns:ptUser="http://schemas.partigi.com/v1.0/ptUser">
      <category scheme="http://schemas.partigi.com/v1.0#kind" term="http://schemas.partigi.com/v1.0#user"/>
      <id>http://www.partigi.com/jimmy</id>
      <title>jimmy</title>
      <updated>2009-05-20T09:13:05Z</updated>
      <published>2009-05-14T14:00:06Z</published>
      <link type="text/html" href="http://www.partigi.com/jimmy" rel="alternate"/>
      <link type="application/atom+xml" href="http://www.partigi.com/api/v1/users/show.atom?id=jimmy" rel="self"/>
      <ptUser:id>6</ptUser:id>
      <ptUser:login>jimmy</ptUser:login>
      <ptUser:country>ES</ptUser:country>
    </entry>
  </feed>

 

Go back to Partigi API Documentation

Comments (0)

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