the curl code xboxapi uses is thus:
Code: Select all
$ curl -s -H "X-AUTH: <api key>" https://xboxapi.com/v2/<accountxuid>
https://xboxapi.com/v2/<accountxuid>/presence
when access is granted it outputs something like this:
Code: Select all
{"xuid":<accountxuid>,"state":"Online","devices":[{"type":"XboxOne","titles":[{"id":714681658,"name":"Home","placement":"Background","state":"Active","lastModified":"2017-08-23T07:03:06.44878Z"}]}]}
Code: Select all
{"success":false,"error_code":401,"error_message":"No API Key provided or invalid API Key"}
thanks for your assistance