API V2
API Reference
Describes a single session.
1 min
code examples curl location globoff 'https //api sandbox gameye gameye net/session/{id}' \\ \ header 'accept application/json' \\ \ header 'content type application/json'import requests import json url = "https //api sandbox gameye gameye net/session/{id}" payload = {} headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("get", url, headers=headers, data=payload) print(response text) var options = new restclientoptions("https //api sandbox gameye gameye net") { maxtimeout = 1, }; var client = new restclient(options); var request = new restrequest("/session/{id}", method get); request addheader("accept", "application/json"); request addheader("content type", "application/json"); restresponse response = await client executeasync(request); console writeline(response content);var request = require('request'); var options = { 'method' 'get', 'url' 'https //api sandbox gameye gameye net/session/{id}', 'headers' { 'accept' 'application/json', 'content type' 'application/json' } }; request(options, function (error, response) { if (error) throw new error(error); console log(response body); }); responses // successfully looked up the specified session { "id" "f7965a22 e327 4541 a30e 8262890d3a29", "image" "nginx", "tag" "latest", "location" "europe", "host" "a b c d", "created" 1648472895000, "port" "{\\"port\\" {\\"80/tcp\\" 49160}}", "status" "", "labels" "{\\"labels\\" {\\"env\\" \\"{\\\\\\"gameye session id\\\\\\" \\\\\\"c595bc6f 8522 4a62 95cd 8742136643ea\\\\\\",\\\\\\"gameye host\\\\\\" \\\\\\"a b c d\\\\\\"}\\",\\"tags\\" \\"{\\\\\\"my example tag\\\\\\" \\\\\\"1\\\\\\",\\\\\\"another example tag\\\\\\" \\\\\\"3\\\\\\"}\\"}}", "players" { "joined" \[ "" ], "joinedcount" 0 } }// you are not authorized to describe sessions please make sure that the included bearer token is correct { "statuscode" 0, "code" "", "message" "", "details" "", "path" "", "timestamp" "", "identifier" "", "violations" \[ { "field" "", "description" "" } ] }// the specified session does not exist please provide a correct session id { "statuscode" 0, "code" "", "message" "", "details" "", "path" "", "timestamp" "", "identifier" "", "violations" \[ { "field" "", "description" "" } ] }
