I need to consume an api, passing the parameters are done this way:
I'm using guzzle to make the request.
I am instantiating the client with the url base of this form:
$client = new Client(['base_url' => 'https://api.typeform.com/v1']);
I wanted to pass the parameters "/form"
, "[typeform_UID]?key=[your_API_key]"
, using $client->get()
. If I use get(query=>[])
of guzzle it does not form the url the way I would like it.
Does anyone know of any way to do this by using Client
with base_url
?