We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Url looks like this https://api.test/starter/province?0%5Bid%5D=12 the code:
https://api.test/starter/province?0%5Bid%5D=12
public function request(string $path, array $param = [], $type = 'GET') { $response = Http::withHeaders(['key' => $this->apiKey]) ->get($this->url($path), [ $param ]); //return $response->body(); return $response; //debug } public function getProvince($idProvince) { return $this->request('province', ['id' => $idProvince]); }
and consume the function
var_dump($test->getProvince(12));
output
private $handlerStats => array(31) { 'url' => string(56) "https://api.test/starter/province?0%5Bid%5D=12" 'content_type' => string(16) "application/json" 'http_code' => int(200) 'header_size' => int(126) 'request_size' => int(164) ... }
so how can i send URL like this https://api.test/starter/province?id=12
https://api.test/starter/province?id=12
Thanks
The text was updated successfully, but these errors were encountered:
sorry, my code is wrong 🔨
Sorry, something went wrong.
No branches or pull requests
Url looks like this
https://api.test/starter/province?0%5Bid%5D=12
the code:
and consume the function
output
so how can i send URL like this
https://api.test/starter/province?id=12
Thanks
The text was updated successfully, but these errors were encountered: