Skip to content

Commit

Permalink
Merge pull request #1 from ilCleme/master
Browse files Browse the repository at this point in the history
Fix documentation
  • Loading branch information
mattiaclementi authored Jan 2, 2019
2 parents 0fa1ebf + 9de2c9b commit b8ed3b2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/API_Coinmarketcap.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@ In this time this gateway permit to send request to coinmarketcap.
The send method of this gateway permits to pass three parameters:
- the endpoint;
- the method of HTTP request;
- an array of parameters;
- an array of parameters, all parameter to be send trough the query string need to be insert in 'query' index of array;

The parameter array need to be populate with the right value for every single endpoints.
Here there is an example

```php
$manager = $this->app['cryptocurrencies.manager'];
$coinmarketcapGateway = $manager->getGateway('coinmarketcap');
//set any type of endpoints, set the right parameter to it
$result = $coinmarketcapGateway->send('/v1/cryptocurrency/info', 'GET', ['query' => ['id' => '1,2']]);

return $result;
Expand Down

0 comments on commit b8ed3b2

Please sign in to comment.