{ "opencollection": "1.0.0", "info": { "name": "Unity Analytics Allocations Friend Requests API", "version": "v1.0.0" }, "request": { "auth": { "type": "apikey", "key": "x-api-key", "value": "{{x-api-key}}", "placement": "header" } }, "items": [ { "info": { "name": "Friend Requests", "type": "folder" }, "items": [ { "info": { "name": "List Incoming Friend Requests", "type": "http" }, "http": { "method": "GET", "url": "https://analytics.services.api.unity.com/v1/me/relationships/requests/incoming", "params": [ { "name": "limit", "value": "", "type": "query" }, { "name": "after", "value": "", "type": "query" } ] }, "docs": "Returns all pending incoming friend requests for the current player." }, { "info": { "name": "List Outgoing Friend Requests", "type": "http" }, "http": { "method": "GET", "url": "https://analytics.services.api.unity.com/v1/me/relationships/requests/outgoing" }, "docs": "Returns all pending outgoing friend requests sent by the current player." }, { "info": { "name": "Send Friend Request", "type": "http" }, "http": { "method": "POST", "url": "https://analytics.services.api.unity.com/v1/me/relationships/:memberId/request", "params": [ { "name": "memberId", "value": "", "type": "path", "description": "The Unity player ID to send a request to" } ] }, "docs": "Sends a friend request to another player." }, { "info": { "name": "Accept Friend Request", "type": "http" }, "http": { "method": "POST", "url": "https://analytics.services.api.unity.com/v1/me/relationships/:memberId/accept", "params": [ { "name": "memberId", "value": "", "type": "path" } ] }, "docs": "Accepts a pending incoming friend request." } ] } ], "bundled": true }