get https://api.nodecraft.studio/v1/connection/
Get status of a connection. Useful for long-polling the status of a connection while the browser is authenticating. It's recommended to poll between 2-5 seconds.
Responses
Get status of a connection. Useful for long-polling the status of a connection while the browser is authenticating. It's recommended to poll between 2-5 seconds.
xxxxxxxxxx
GET /v1/connection/connection_id HTTP/1.1
Accept: application/json
Host: api.nodecraft.studio
​
​
xxxxxxxxxx
12{
"code": "player_connections.get.success",
"message": "Successfully retrieved player connection status.",
"success": true,
"data": {
"id": "00000000-0000-0000-0000-000000000000",
"url": "https://api.nodecraft.studio/connect/00000000-0000-0000-0000-000000000000",
"status": "pending",
"date_expires": "2024-01-01T00:00:00.000Z"
},
"error": false
}