Go back to Partigi API Documentation
Relationship relates users with themselves, by a "follow relationship": it shows which user follows each other.
Schema
ptRelationship = element atom:entry {
atomCategory,
atomUpdated,
atomTitle,
ptRelationship:source,
ptRelationship:target
}
The table below details item schema:
Element |
Property |
Description |
entry |
atom:category |
Scheme: http://schemas.partigi.com/v1.0#kind
Term: http://schemas.partigi.com/v1.0#relationship |
|
atom:updated |
The last modification time of the item. Notice that an item is updated when a reviews of the item is created or removed. |
|
atom:title |
The title of the relationship. |
|
ptRelationship:source |
The relationship information of authenticated user regarding target user. |
|
ptRelationship:target |
The relationship information of target user regarding authenticated user. |
|
ptRelationship:following |
A boolean string (true or false ) indicating if the user is following the other user in the relationship. |
|
ptRelationship:followed_by |
A boolean string (true or false ) indicating if the user is being followed by the other user in the relationship. |
An example
<entry xmlns:ptRelationship="http://schemas.partigi.com/v1.0/ptRelationship">
<category scheme="http://schemas.partigi.com/v1.0#kind" term="http://schemas.partigi.com/v1.0#relationship"/>
<id>http://www.partigi.com/api/v1/friendships/show.atom?source_id=wadus&target_id=tradus</id>
<title>Friendship between wadus and tradus</title>
<link type="application/atom+xml" rel="self" href="http://www.partigi.com/api/v1/friendships/show.atom?source_id=wadus&target_id=tradus"/>
<updated>2009-07-08T06:54:17Z</updated>
<ptRelationship:source>
<ptUser:id>123</ptUser:id>
<ptRelationship:following>true</ptRelationship:following>
<ptRelationship:followed_by>false</ptRelationship:followed_by>
</ptRelationship:source>
<ptRelationship:target>
<ptUser:id>321</ptUser:id>
<ptRelationship:following>false</ptRelationship:following>
<ptRelationship:followed_by>true</ptRelationship:followed_by>
</ptRelationship:target>
</entry>
Go back to Partigi API Documentation
Comments (0)
You don't have permission to comment on this page.