API
API endpoints
Get real-time logs
1 min
this streams the output that the game server writes unlike /query/log , this opens up a stream that we'll keep open until the underlying container stops you can use it to debug server issues there are two content types available text (plain) this can be helpful for regular purposes, like debugging the containerized application application (json) good for advanced cases where you need to distinguish between different stream types { "tab" "examples", "url" "https //api gameye io/logs", "name" "get real time logs", "method" "get", "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[], "bodydataparameters" \[ { "kind" "required", "name" "matchkey", "type" "string", "description" "the unique id of the session you want logs from \n\nthis parameter is now old and we've replaced it with a new one with more consistent naming " } ], "formdataparameters" \[] }, "results" { "languages" \[ { "id" "9gbvpnmsznig4hee3 lis", "code" "// a stream of logs has been opened that will continue to stream any\nlogs from the underlying container until the container has been \nterminated \n \n{\n \\"streamtype\\" 1,\n \\"line\\" \\"2022/03/29 13 37 26 \[notice] 1#1 start worker process 30\\"\n}", "language" "200", "customlabel" "" }, { "id" "yl5ku rqn dyacbp6iiby", "code" "// you are not authorized please make sure that the included bearer token is correct \n ", "language" "401", "customlabel" "" }, { "id" "0sxz5wqkda pv1pf9zdtc", "code" "// could not find the associated session ", "language" "404", "customlabel" "" } ], "selectedlanguageid" "0sxz5wqkda pv1pf9zdtc" }, "examples" { "languages" \[ { "id" "aj0k3hto7ti4idnvwsbdz", "code" "curl location request get 'https //api gameye io/logs?matchkey=string' \\\\\n header 'accept application/json'", "language" "curl", "customlabel" "" }, { "id" "4v1 fj glljhtcvwixkz8", "code" "var myheaders = new headers();\nmyheaders append(\\"accept\\", \\"application/json\\");\n\nvar requestoptions = {\n method 'get',\n headers myheaders,\n redirect 'follow'\n};\n\nfetch(\\"https //api gameye io/logs?matchkey=string\\", requestoptions)\n then(response => response text())\n then(result => console log(result))\n catch(error => console log('error', error));", "language" "javascript", "customlabel" "" }, { "id" "8ujplotp8p76a59r7wp0p", "code" "import requests\n\nurl = \\"https //api gameye io/logs?matchkey=string\\"\n\npayload={}\nheaders = {\n 'accept' 'application/json'\n}\n\nresponse = requests request(\\"get\\", url, headers=headers, data=payload)\n\nprint(response text)\n", "language" "python", "customlabel" "" }, { "id" "jv6absp1tb k y4d8lubu", "code" "require \\"uri\\"\nrequire \\"net/http\"\n\nurl = uri(\\"https //api gameye io/logs?matchkey=string\\")\n\nhttps = net http new(url host, url port)\nhttps use ssl = true\n\nrequest = net http get new(url)\nrequest\[\\"accept\\"] = \\"application/json\\"\n\nresponse = https request(request)\nputs response read body\n", "language" "ruby", "customlabel" "" } ], "selectedlanguageid" "jv6absp1tb k y4d8lubu" }, "description" "", "currentnewparameter" { "label" "body parameter", "value" "bodydataparameters" } }