I am trying to post some data using a Guzzle Client Http request in Laravel. But for some reason the server respons with the message that it can’t find the property Id in the JSON object, while the property Id is clearly in the request. The Guzzle documentation says that assigning the array to a ..
I am trying to load this using GuzzleHTTP file://localhost/. It shows libcurl ‘file://’ protocol not supported. How can I fix this, please let me know. Thanks in advance! Sourc..
I’m working on Firebase Admin SDK with PHP kreait/firebase-php and It’s going well on the realtime database. However, the authentication wherein I want to create users give me fatal error where it says: Fatal error: Uncaught GuzzleHttpExceptionClientException: Client error: POST https://www.googleapis.com/identitytoolkit/v3/relyingparty/signupNewUser resulted in a 400 Bad Request and I’m not experienced enough to know how ..
I have a Laravel 8.x application that does a php cURL request on a cronjob to pull in some data from the EA.com website for the FIFA 22 videogame – it has recently stopped working for some reason, when I try this using the same codebase on my local machine it all works fine. However ..
i’m trying to make auth2 authentication with bookingGo address like: https://auth.dispatchapi.taxi.booking.com/oauth2/token and retrieve a token. I have my client_id and secret_key for that, but when i’m making a request i have different errors. First of all i’ve tryed Laravel and GuzzleHttp like thst way: $response = $this->client->request("POST" , "/oauth2/token", [ ‘headers’ => [‘Content-Type’ => ‘application/x-www-form-urlencoded’], ..
I have a code in PHP which hits an URL using Guzzle. The code works fine but, as the size of the .wbk file that I’m trying to download is close to 7 GB, it downloads around 500 – 600 MB of data and throws me an error. This is the code that I’m using: ..
I am trying to post to an external API, that accepts a XML file. The content type is application/octet-stream. This is my code: return Http::withToken(config(‘sproom.auth_token’)) ->withHeaders([ ‘Content-Type’ => ‘application/octet-stream’ ]) ->attach(‘xml’, file_get_contents(‘myfile.xml’), ‘myfile’) ->post(‘https://example.org/api/documents’)->json(); When posting the above, I get an API error back: Cannot find format for document. No further documentation exists. I am ..
I used guzzle to scrap titles of products. I saved all of them in a text file in array form. Now i want to know how to merge all my files in one file and use it. Thanks for attention. Sourc..
I’m trying to solve a problem with my call to external API. With Postman everything is working fine. When I’m trying to use Guzzle, this error appears. I already tried using HTTP version 1.0, but it just cuts my response and I’m not receiving proper JSON. There is also no Content-Length header in response. Any ..
I need to use an api in my website frontend, but I don’t want to expose that api’s key to my frontend users, so I’ve decided to make a proxy. However, I don’t think I’ve necessarily done it in the most clean, straight-forward, Laravel-like or Guzzle-like way. I’ll show my work: In web.php I added ..