Category : httprequest

I’m making a coding challange website, where user can send in his code, then it is compiled and tested with given test cases. For code compiling i’m using Judge0 API (https://ce.judge0.com/) This is how I get/post to the API: public function testCode($languageId, $code, $stdin = null) { $response = Http::withHeaders([ ‘x-rapidapi-key’ => $this->token, ‘x-rapidapi-host’ => ..

Read more

I want to send a JSON request to an endpoint but the results that I get don’t match the parameters requested. This is the array $datas = [ “institutionCode” => $institutionCode, “brivaNo” => $brivaNo, “custCode” => $custCode ]; This is the response using Guzzle HTTP try { $response = $client->request($verb, $endpoint, [ “headers” => [ ..

Read more