guzzle6 Questions
3
I'm using laradock and I can access the page in browser http://localhost:8088/api/getakicks/get without any problems.
But when I try to access it in controller I'm getting this error:
GuzzleHtt...
4
Solved
Need help using Guzzle 6 for downloading a file from a rest API. I don't want the file to be saved locally but downloaded from web browser. Code so far below, but believe I am missing something?
...
4
Solved
I've searched and searched, and read the documentation at http://docs.guzzlephp.org/en/stable/request-options.html and confirmed the error at https://curl.haxx.se/libcurl/c/libcurl-errors.html and ...
4
Solved
I'm trying to use guzzle 6 which works fine but I'm lost when it comes to how to log all the api calls. I would like to simply log timing, logged in user from session, url and any other usual perti...
4
Solved
I have a form where I can upload multiple files to my laravel backend and I wand to send all those files with Guzzle to external API
I'm having an issue where my script is running out of memory if ...
3
I've written some code in Laravel 5.2 to retrieve results from an unrelible API source. However, it needs to be able to automatically retry the request on failed attempts, as the API call results i...
Ordzhonikidze asked 8/2, 2016 at 22:33
5
Solved
I have the following two functions
public function myEndpoint(){
$this->logger->debug('Started');
$this->guzzle->requestAsync('post', 'http://myurl.com/doNotWait')->wait();
$this...
Undamped asked 12/3, 2016 at 10:31
3
Solved
Is there a way I can print out the full request as a string before or after it is sent?
$res = (new GuzzleHttp\Client())->request('POST', 'https://endpoint.nz/test', [ 'form_params' => [ 'p...
4
Solved
Migrating from 5 to 6, and I've run into a snag and can't find the relevant docs.
Guzzle docs here, http://guzzle.readthedocs.io/en/latest/quickstart.html#creating-a-client, site that we can add "...
2
Solved
I'm using Guzzle to login my API site, and in the moment Im login with the right credentials, I get back a cookie with a RefreshToken to send it in the next call, here is my simple (and working wel...
2
Solved
I'm trying to make a connection with infojobs-api, the documentation explian how to make it in this way:
GET /api/1/application HTTP/1.1
Host: api.infojobs.net
Authorization: Basic QWxhZGRpbjp...
3
Solved
I am able to upload a file to an API endpoint using Postman.
I am trying to translate that into uploading a file from a form, uploading it using Laravel and posting to the endpoint using Guzzle 6....
2
The Guzzle 6 documentation gives an easy way to mock HTTP calls so that each request returns a specific response : http://docs.guzzlephp.org/en/latest/testing.html#mock-handler
However, as it is s...
Schlenger asked 9/10, 2015 at 7:7
6
Solved
I want to perform a post with guzzle sending an xml file. I did not find an example.
What I 've done so far is :
$xml2=simplexml_load_string($xml) or die("Error: Cannot create object");
use Guzz...
2
Solved
I have a web-service that gets a file and returns it to the user (based on Symfony).
Ever since I used curl to do this.
I just found guzzlehttp and it seems great. However, I do not know how to ...
2
I try catch exception, but i still get "Fatal error: Uncaught exception 'GuzzleHttp\Exception\ClientException' with message 'Client error: 404' in C:\OS\OpenServer\domains\kinopoisk\parser\php\vend...
8
Solved
After a long day of debugging and try and error tries searching for a good method with Guzzle6 post with nested array and resource items.
I've found on Guzzle6 documentation that data need to be p...
2
Currently with Guzzle 6 it seems there's no out of the box way to get the duration of an API call. What's the best way to get this stat with any ordinary call using the code below.
I'm using the f...
3
Solved
I'm trying to write a wrapper around an api my company is developing. It's restful, and using Postman I can send a post request to an endpoint like http://subdomain.dev.myapi.com/api/v1/auth/ with ...
5
I'm searching to retrieve the request total time in Guzzle 6, just after a simple GET request :
$client = new GuzzleHttp\Client();
$response = client->get('http://www.google.com/');
But can't...
3
Solved
Recently I found myself working with Guzzle while making requests to another server to post and fetch some data, in some cases, tokens. But I was getting certificate invalid error and I even tried ...
Innards asked 8/7, 2020 at 16:48
2
I want to migrate from pure CURL to Guzzle, but the API calls are not being registered correctly.
Working CURL (Class from here: https://stackoverflow.com/a/7716768/8461611)
...
$Curl = new CURL(...
3
Solved
I've got an issue for laravel 5.4 when I trying to using guzzleHttp. here is my code.
use GuzzleHttp\Client;
$url = 'http://example.com';
$client = new Client();
$parameter = ['query' => ['nam...
Benefactor asked 7/6, 2017 at 4:30
4
Solved
I'm working on a Laravel application, using Guzzle 6. A lot of functionality relies on an API, of which I've created a wrapper for.
My wrapper's a single class, that creates the Guzzle client in t...
1
Solved
I need consume a API using JWT, for this, I'm build a API client from PHP with using Guzzle and Firebase PHP-JWT
The documentation of API say: Prepare and post a JWT for authorization.
Endpoint U...
1 Next >
© 2022 - 2024 — McMap. All rights reserved.