From bfa1d576e60e20ebec78c5a9816fa1d1803e86b2 Mon Sep 17 00:00:00 2001 From: florianv Date: Sun, 16 May 2021 01:50:44 +0200 Subject: [PATCH] fix: updated examples with curl --- doc/readme.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/readme.md b/doc/readme.md index d31a913..9cbab0a 100644 --- a/doc/readme.md +++ b/doc/readme.md @@ -69,7 +69,10 @@ use Exchanger\Service\AbstractApi; use Exchanger\Exchanger; // Create your http client (we choose curl here) -$client = new CurlClient(); +$options = [ + CURLOPT_FOLLOWLOCATION => true, +]; +$client = new CurlClient(null, null, $options); // Use the Fixer.io service $service = new Fixer($client, null, ['access_key' => 'YOUR_KEY']);