Return the members matching a sub-query.
Please cache results & check when the response is complete
- This method call must be authenticated and signed.
- "read" permission is necessary to access to network details.
URL
http://www.ipernity.com/api/network.autocomplete
Parameters
api_key
|
∗ |
Your api_key.
|
query
|
∗ |
Return the member usernames matching this query. The search is case insensitive.
|
relation
|
|
Only return the members matching this relation : - 0: everyone
- 1: just family
- 2: just friends
- 3: friends & family
- 4: contacts
|
∗ : this parameter is required.
The network autocompleter only returns the first 500 results. Results must me cached. When the complete flag is set it means there wont be new results for queries starting by the given query.
Response
<network query="a" network="0" count="122" complete="1">
<user user_id="1234" username="Armin" isfriend="1" isfamily="0"
icon="http://u1.ipernity.dev/p/12/34/1234/userphoto.jpg"/>
<user user_id="1586" username="John Avalon" isfriend="0" isfamily="0"
icon="http://u1.ipernity.dev/p/15/86/1586/userphoto.jpg"/>
<user user_id="5623" username="Aimé Jacquet" isfriend="1" isfamily="0"
icon="http://u1.ipernity.dev/p/56/23/5623/userphoto.jpg"/>
<user user_id="5856" username="Jean-Paul A." isfriend="1" isfamily="0"
icon="http://u1.ipernity.dev/p/58/56/5856/userphoto.jpg"/>
(...)
</network>
network.autocomplete is specificly designed for a formular autocomplete list. This is why this method only returns the minimum data.
Error codes
| 1 |
Query empty or invalid |
|
| 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 |
| 500 |
Service error |
| 501 |
Maintenance mode |
| 503 |
Service unavailable |
Changelog
- 2008-12-01: Method created.
See also