Skip to main content

Questions tagged [guzzle]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
29 views

Feed me config setup

I am trying to do an import of course data into craft but I am running into a problem with the feed me config (feed-me.php). He is the curl request I want to run and this works and outputs the data I ...
bhackett's user avatar
  • 127
0 votes
0 answers
75 views

Feed me and Guzzle: Use session cookies

I am using Feed me to import data from a Filemaker server via a self made Craft module. The import works well. I fail however to import the image files from the Filemaker server: Feed me gets their ...
Moritz's user avatar
  • 69
1 vote
1 answer
69 views

Feed Me Plugin - Prevent Feed from Being Triggered Multiple Times in Quick Succession

I’d like to prevent a feedme feed from running more than once when multiple requests are received within a few seconds of each other. My first guess is that I would want to target an event such as ‘’’...
Chris Drew's user avatar
0 votes
0 answers
375 views

Guzzle fatal error using Craft Guzzle client

Using the code below to get 3rd party API $uri = $baseUri . '/area/' . $areaId . '.geojson?api_key=' . $mapAPIkey; $client = Craft::createGuzzleClient(); $response= $client->request('...
joomkit's user avatar
  • 2,014
6 votes
1 answer
1k 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?
Jake Dohm's user avatar
  • 766
2 votes
1 answer
386 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 ...
JMKelley's user avatar
  • 1,396
3 votes
1 answer
1k 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' => ...
fxfuture's user avatar
  • 279
3 votes
2 answers
1k 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/...
James White's user avatar
  • 1,161
4 votes
1 answer
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 ...
Damon's user avatar
  • 4,706
2 votes
2 answers
908 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 ...
joomkit's user avatar
  • 2,014