I feel like 343 might’ve blacklisted me or something lol
I’m using PHP, my code worked fine for the whole day…until like I started running my program in its full form, and then I start getting 400 messages
// This sample uses the Apache HTTP client from HTTP Components (http://hc.apache.org/httpcomponents-client-ga/)
require_once ‘HTTP/Request2.php’;
$request = new Http_Request2(‘https://www.haloapi.com/stats/h5/servicerecords/arena?players=Major Nelson’);
$request->setConfig(‘ssl_cafile’, dirname(FILE). ‘/cacert.pem’);
$url = $request->getUrl();
$headers = array(
// Request headers
‘Ocp-Apim-Subscription-Key’ => ‘-------’,
);
$request->setHeader($headers);
//$parameters = array(
// Request parameters
//);
//$url->setQueryVariables($parameters);
$request->setMethod(HTTP_Request2::METHOD_GET);
// Request body
//$request->setBody("{body}");
try
{
$response = $request->send();
echo $response->getBody();
}
catch (HttpException $ex)
{
echo $ex;
}
?>
On the developer page is still says I am active, I changed my subscription key incase one of the API ran out of calls? or something, basically last resort trying out everything,
Still getting
HTTP Error 400. The request is badly formed.
UPDATE 1*
Querying the Campaign works, so basically it’s grabbing the Arena service records is the problem…
ANy ideas?