Questions tagged as 'guzzle'

1
answer

How can I find the chats ID for the Telegram API?

I'm setting up the Telegram BOT API via Guzzle. I'm trying to understand what the chat_id parameter would be described in the sendMessage method documentation . I have the following code: $cli = new \GuzzleHttp\Client([ '...
asked by 14.09.2018 / 18:35
1
answer

Pass parameters using the guzzle client

I need to consume an api, passing the parameters are done this way:    link 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.typ...
asked by 28.09.2016 / 14:52
1
answer

Guzzle and asynchronous requests in PHP

I was taking a look at the GuzzleHttp documentation and saw that there is an explanation there how to use it to make asynchronous requests. $promise = $client->requestAsync('GET', 'http://httpbin.org/get'); $promise->then(functi...
asked by 16.12.2015 / 17:40
2
answers

Php and guzzle, how to do a get to an address and get what to return?

I need to send data by get and get what to return to know if it worked or not, however, with cURL and file_get_contents is not giving (seems to be something of the server that receives the request), hence I'm trying to use Guzzle, I did a test h...
asked by 01.09.2015 / 16:10
0
answers

Search in google maps api returns different values with curl or guzzle

I do the search in google maps api with curl or guzzle using php and it returns me a different value than using postman or the browser ex: $client = new Client(); $res = $client->request('GET', $url,[ 'query' => [...
asked by 19.12.2018 / 20:21
0
answers

PHP Result of GuzzleHttp Request for html table [closed]

I need to export the result of a GuzzleHttp request to the html table. I'm having trouble turning the output "$ res" into the correct format. What function should I use to transform "$ res" into the correct output? Thanks in advance. Request:...
asked by 23.10.2017 / 15:46
0
answers

Postback getting base data with PHP

I have a database in MYSQL where one of the fields tells the status of a particular transaction. For example: status = waiting or status = full. I want to do a cron that every 10 minutes takes all the clients that have the status = complete a...
asked by 18.09.2017 / 19:41
1
answer

HTML treatment with Guzzle Laravel?

I have an application that needs to read external data, ie another URL , I'm necessarily doing it with Guzzle , but when I convert to json to mount the array with the data, it returns null. use GuzzleHttp\Client; use GuzzleH...
asked by 13.08.2018 / 01:55
1
answer

How to make requests with Guzzle \ Http pretending to be "AJAX"?

I use the Guzzle\Http library to be able to make requests to some urls with PHP. I'm doing webservice with our systems, where, if the request is recognized as Ajax , the returned result is Json . Otherwise, HTML is r...
asked by 22.04.2016 / 20:57
1
answer

Make request on a page with Guzzle

I'm having trouble placing a POST request on a site through the Guzzle component. The target site is: link He even enters the site but no results appear. I do not know if the problem is in HOW I make the request or if it is the PARAMET...
asked by 29.05.2015 / 20:05