Skip to content

Commit 6d6cb10

Browse files
committed
readme fixed
1 parent 0baa8a8 commit 6d6cb10

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

.idea/workspace.xml

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,21 +25,21 @@ The Naira Currency Exchange API does require API keys or authentication in order
2525
Fetch the latest exchange rates
2626
``` php
2727
$naira = new NairaExchangeRates
28-
$rates = $naira->->setType('cbn')->fetch();
28+
$rates = $naira->setType('cbn')->fetch();
2929
```
3030

3131
**Historical Data:**<br />
3232
Get historical rates for any day since 1999:
3333
``` php
3434
$naira = new NairaExchangeRates
35-
$rates = $naira->->setType('cbn')->addDateFrom('2019-11-26')->fetch();
35+
$rates = $naira->setType('cbn')->addDateFrom('2019-11-26')->fetch();
3636
```
3737

3838
**Fetch Specific Rate:**<br />
3939
If you do not want all current rates, it's possible to specify only the currencies you want
4040
``` php
4141
$naira = new NairaExchangeRates
42-
$rates = $naira->->setType('cbn')->setBaseCurrency('usd')->fetch();
42+
$rates = $naira->setType('cbn')->setBaseCurrency('usd')->fetch();
4343
```
4444

4545
### 4. API Reference:

src/Response.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class Response
1616
private $statusCode;
1717
private $timestamp;
1818

19-
public function __construct(\GuzzleHttp\Psr7\Response $response = null)
19+
public function __construct(\GuzzleHttp\Psr7\Response $response)
2020
{
2121
$this->response = $response;
2222
$this->headers = $response->getHeaders();

0 commit comments

Comments
 (0)