API V2
API Reference
/session/player/leave
1 min
code examples curl location request delete 'https //api sandbox gameye gameye net/session/player/leave' \\ \ header 'accept application/json' \\ \ header 'content type application/json' \\ \ data '{ "players" \[] }'import requests import json url = "https //api sandbox gameye gameye net/session/player/leave" payload = json dumps({ "players" \[] }) headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("delete", 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/player/leave", method delete); request addheader("accept", "application/json"); request addheader("content type", "application/json"); var body = @"{" + "\n" + @" ""players"" \[]" + "\n" + @"}"; request addstringbody(body, dataformat json); restresponse response = await client executeasync(request); console writeline(response content);var request = require('request'); var options = { 'method' 'delete', 'url' 'https //api sandbox gameye gameye net/session/player/leave', 'headers' { 'accept' 'application/json', 'content type' 'application/json' }, body json stringify({ "players" \[] }) }; request(options, function (error, response) { if (error) throw new error(error); console log(response body); }); responses // one or more player ids have been removed from the session { "count" 0, "players" \[ "" ] }// you are not authorized to use this endpoint please make sure that the included bearer token is correct { "statuscode" 0, "code" "", "message" "", "details" "", "path" "", "timestamp" "", "identifier" "", "violations" \[ { "field" "", "description" "" } ] }// the provided session does not exist { "statuscode" 0, "code" "", "message" "", "details" "", "path" "", "timestamp" "", "identifier" "", "violations" \[ { "field" "", "description" "" } ] }// bad request this may imply that the given request has invalid syntax { "statuscode" 0, "code" "", "message" "", "details" "", "path" "", "timestamp" "", "identifier" "", "violations" \[ { "field" "", "description" "" } ] }
