- Loading...
- No images or files uploaded yet.
|
|
ApiFunction_get_friendsget_friends
Description
This method is used to retrieve a list of the user's friends.
Input parameters:
Output parameters:
The returned 'friends' object in the output will contain the following properties:
REST
Request
Response
<?xml version='1.0' encoding='UTF-8' ?> <response> <status>s_get_friends</status> <friends> <friends> <friend> <name>email2@example.com</name> <email>email2@example.com</email> <accepted>1</accepted> <avatar_url>http://box.net/index.php?rm=box_user_avatar&user_id=398396&width=40&height=40&type=large</avatar_url> <boxes> <box> <id>15</id> <url>http://box.net/p/email2</url> <status/> </box> </boxes> </friend> </friends> </friends> </response>
SOAP
Request
<?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns4="urn:boxnet" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <SOAP-ENV:Body> <ns4:get_friends> <api_key xsi:type="xsd:string">rrc1d3n4b53tt6b2vh1il6tdtrsxov3v</api_key> <sid xsi:type="xsd:string">6tsncrgnlmbk06o8sfqnuydhqvm604rl</sid> <params xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="xsd:string[1]" SOAP-ENC:offset="[0]"> <item xsi:type="xsd:string">nozip</item></params> </ns4:get_friends> </SOAP-ENV:Body> </SOAP-ENV:Envelope> Response
<?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns4="urn:boxnet" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <SOAP-ENV:Body> <ns4:get_friendsResponse> <status xsi:type="xsd:string">s_get_friends</status> <friends xsi:type="xsd:base64Binary"> PGZyaWVuZHM+PGZyaWVuZD48bmFtZT5lbWFpbDJAZXhhbXBsZS5jb208L25hbWU+PGVtYWlsPmVt YWlsMkBleGFtcGxlLmNvbTwvZW1haWw+PGFjY2VwdGVkPjE8L2FjY2VwdGVkPjxhdmF0YXJfdXJs Pmh0dHA6Ly9ib3gubmV0L2luZGV4LnBocD9ybT1ib3hfdXNlcl9hdmF0YXImdXNlcl9pZD0zOTgz OTYmd2lkdGg9NDAmaGVpZ2h0PTQwJnR5cGU9bGFyZ2U8L2F2YXRhcl91cmw+PGJveGVzPjxib3g+ PGlkPjE1PC9pZD48dXJsPmh0dHA6Ly9ib3gubmV0L3AvZW1haWwyPC91cmw+PHN0YXR1cy8+PC9i b3g+PC9ib3hlcz48L2ZyaWVuZD48L2ZyaWVuZHM+PC9mcmllbmRzPg== </ns4:get_friendsResponse> </SOAP-ENV:Body> </SOAP-ENV:Envelope>
XML
Request
<?xml version='1.0' encoding='UTF-8' ?> <request> <action>get_friends</action> <api_key>rrc1d3n4b53tt6b2vh1il6tdtrsxov3v</api_key> <auth_token>79r205ihgupsbucfani0iu483oa1iupn</auth_token> <params> <item>nozip</item> </params> </request> Response
<?xml version='1.0' encoding='UTF-8' ?> <response> <status>s_get_friends</status> <friends> <friends> <friend> <name>email2@example.com</name> <email>email2@example.com</email> <accepted>1</accepted> <avatar_url>http://box.net/index.php?rm=box_user_avatar&user_id=398396&width=40&height=40&type=large</avatar_url> <boxes> <box> <id>15</id> <url>http://box.net/p/email2</url> <status/> </box> </boxes> </friend> </friends> </friends> </response>
Need additional assistance? Please feel free to Contact us
|