Return members of someone's network.
- This method call does not require authentication.
- "read" permission is necessary to access to network details.
URL
http://api.ipernity.com/api/network.getList
Parameters
api_key
|
∗ |
Your api_key.
|
user_id
|
|
The user ID to get the network list for.
|
relation
|
|
Only return users matching this relation:
- 0: everyone
- 1: just family
- 2: just friends
- 3: friends & family
- 4: contacts
- 8: members you blocked
This parameter is only effective when calling this method as an authenticated user (user_id is ommited or equal to the calling user).
|
extra
|
|
A comma seprarated list of extra information. Extra parameters are: realname, count, location
|
per_page
|
|
The number of docs to return on each page. (Default is 20, maximum is 100)
|
page
|
|
The page of results to return.
|
∗ : this parameter is required.
Response
<network count="50" page="1" pages="1" total="122" per_page="50">
<user user_id="1234" username="John B."
icon="http://u1.ipernity.dev/p/12/34/1234/userphoto.jpg"
alias="john" >
<relation isfamily="0" isfriend="1" iscontact="0" revfriend="0"
revfamily="1" revcontact="0"/>
<count docs="256" posts="65" network="562"/>
</user>
<user user_id="1235" username="Jim"
icon="http://u1.ipernity.dev/p/12/34/1235/userphoto.jpg"
alias="jim2008" >
<relation isfamily="0" isfriend="1" iscontact="0" revfriend="0"
revfamily="1" revcontact="0"/>
<count docs="2656" posts="365" network="2562"/>
</user>
(...)
</network>
Error codes
| 1 |
User not found |
|
| 100 |
API Key is missing |
| 101 |
API Key is invalid |
| 102 |
Invalid format |
| 103 |
Method not found |
| 104 |
Signature missing |
| 105 |
Signature is invalid |
| 106 |
Token missing |
| 107 |
Token invalid |
| 108 |
Account closed |
| 109 |
Action blocked |
| 110 |
Insufficient permissions |
| 111 |
IP not allowed |
| 112 |
Application Quota Error |
| 113 |
Client IP Quota Error |
| 120 |
HTTP POST required |
| 121 |
Invalid SOAP envelope |
| 122 |
Invalid XML-RPC envelope |
| 130 |
OAuth protocol version unsupported |
| 131 |
OAuth parameters are missing |
| 132 |
OAuth Clock skew |
| 133 |
OAuth Nonce is invalid |
| 134 |
OAuth Timestamp is invalid |
| 135 |
OAuth Signature method unsupported |
| 500 |
Service error |
| 501 |
Maintenance mode |
| 503 |
Service unavailable |
Changelog
- 2008-12-01: Method created.
See also