friends.get

Introduction

Gets the friends of specified site users.

Parameters

Name Type Description
uids string A comma-delimited list of user IDs to get the friends of
friendship_status string Either: all, friends, response_required or request_sent

friendship_status

Send all for any friendships the user has: all their friends, all friend requests to them, and all friend requests from them.

Send friends for only the people they are confirmed friends with.

Send response_required to load the users who have sent them friendship requests. (You can use friends.add to confirm the request and friends.remove to decline the request.)

Send request_sent to load the users who the current user has sent a friendship request to.

Using the PHP Library

<?php
$response
=$newhaze->api->friends_get(53,93,29);
?>

Sample responses

JSON

[{"id":"43", "first_name":"B**", "last_name":"G*****", "url":"http://www.minimangaming.com/user.php?id=43", "gender":"male", "date_of_birth":"*/**/****", "pic_square":"http://connect.newhaze.com/uploads/75682", "points":"157"}]


© 2012 NewHaze   Icons by Pixel Mixer   Help