Friends
Pending
Returns all incoming friend requests that haven't been accepted yet.
POST
/api/vaneltonid/friend_pending.php
Requires
Authorization: AppID:AppKey + user tokenRequest body
| Field | Type | Required | Description |
|---|---|---|---|
| token | string | required | User's session token |
Test this endpoint
Headers
Body
Success response 200
{
"success": true,
"data": {
"pending_requests": [
{
"id": 5,
"userKey": "abc...",
"username": "sender123",
"name": "Sender Name",
"profileimg": "https://..."
}
],
"count": 1
}
}
For real-time incoming requests, use Poll Notifications. This endpoint is intended for loading the initial state on app startup.