Skip to content

Commit

Permalink
fix: updated examples with curl
Browse files Browse the repository at this point in the history
  • Loading branch information
florianv committed May 15, 2021
1 parent 2ca5176 commit bfa1d57
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion doc/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
Expand Down

0 comments on commit bfa1d57

Please sign in to comment.