GET /approvals
Description
Get the list of pending approvals to join teams/processes for the player
Resource URL
https://api.playlyfe.com/approvals
Method
GET
Scopes
player, game, debug
Parameters
Location | Parameter Name | Default Value | Description |
---|---|---|---|
Query | skip | 0 | Number of approvals to skip |
Query | limit | 10 | Maximum number of approvals to return |
Example
Request
GET https://api.playlyfe.com/approvals
Response
{ "data": [ { "event": "join:request", "timestamp": "2014-03-01T18:58:22.142Z", "team": { "id": "53122d80188101a72a668a63", "name": "Titans" }, "roles": { "God": true }, "state": "PENDING", "id": "75d485e0-a173-11e3-b581-1b9a3fec215b" }, { "event": "join:request", "timestamp": "2014-03-01T19:02:22.642Z", "process": { "id": "neo/53122e9a188101a72a668a64", "name": "Protected" }, "roles": { "~": "player" }, "state": "PENDING", "id": "052de920-a174-11e3-b581-1b9a3fec215b" } ], "total": 2 }