Skip to content
Advertisement

Guzzle query string prameters

I’m having problems writing my request. I need to provide query string parameters to GET method using request(). Since I’m writing tests I can’t edit the method.

Right now I have it written like this:

JavaScript

Method that gets paginator_data:

JavaScript

And thats how query looks if I check the request testing it from the front-end:

Source:

JavaScript

Parsed:

JavaScript

how do I format the query to make it look like the Source one? Because if I copy paste it inside my query it works.

Advertisement

Answer

I think you maybe need to json_encode your data:

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement