Table of Contents
Fields
Field | Name | Description | Type | Required |
---|---|---|---|---|
requestor_id | Requester ID | The user ID of the user making the request | integer | |
requester_name | Requester Name | The display name of the user making the request | string | |
picture_url | Picture URL | The full URL of the profile picture of the requesting user | string | |
school_name | School Name | The school of the requesting user | string | |
school_id | School ID | The ID of the school of the requesting user | string | |
created | Date Created | The unix timestamp when the request was created | string |
Operations
list
View a list of pending requests. You can specify the key ‘created_offset’ in the query string to view only requests that were created after the specified time. The expected format of the ‘created_offset’ key value is anything that PHP’s strtotime function can interperet. For example:
/users/[user_id]/requests/friends?created_offset=2010-05-14+22:23:00
Path | |
Content | none |
Return | A collection of friend request objects, each one containing friend request fields JSON XML
|
update
Update a pending request. The request action field value must be a string( accept | deny ). Here’s an example text/xml formatted request body:
Path | |
Content | An object containing a request_action field JSON XML
|
Return | none |