Questions tagged [guzzle]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
1answer
92 views

How to make an HTTP request from a plugin?

I'd like to be able to make HTTP requests from within my plugin to hit an endpoint and get a response. How can I do this?
2
votes
1answer
47 views

Create Matrix Block via Module

I'm having an issue creating a matrix block from a module. I'm currently doing the following: Calling an API using Guzzle Getting that request and iterating over a media block. Trying to create a new ...
1
vote
1answer
230 views

How to cache a Guzzle Http request?

In my module I have the following: $client = new Client(['base_uri' => myBaseUri]); $response = $client->request('GET', myQueryString, [ 'headers' => [ 'Accept' => ...
2
votes
1answer
599 views

Class 'GuzzleHttp\Client' not found

A plugin that is using a Guzzle request is now throwing an exception that the class cannot be found. I'm running Craft CMS 2.6.3000. Where is Guzzle being pulled from? I can see it within craft/app/...
3
votes
1answer
12k views

How do I use Guzzle to send a post request from my plugin?

I have a plugin that listens for new users to be created. I am then sending that user to system "B" via an API call. All is working fine the old fashion way, I am curious how to accomplish the same ...
2
votes
2answers
700 views

Using guzzle with a plugin and cache

I've been adapting the very useful geo plugin to fetch currency and exchange rates based on a visitors IP address. [ see: https://github.com/lukeholder/craft-geo ] The plugin uses Craft's vendor ...