Skip to content

Commit

Permalink
README.md file updated
Browse files Browse the repository at this point in the history
  • Loading branch information
sezaiozarslan committed Dec 3, 2019
1 parent c6d6093 commit be23a89
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ composer require boolxy/dataforseo
## Usage

```php
use BoolXY\DataForSEO\Client;
use BoolXY\DataForSEO\DataForSEO;
use BoolXY\DataForSEO\Apis;
use BoolXY\DataForSEO\Requests\KeywordsData\Requests\SearchVolumeForKeyword\LiveDataRequest;
use BoolXY\DataForSEO\Requests\KeywordsData\SearchVolumeForKeyword\LiveDataRequest;

$data = [
[
Expand All @@ -35,8 +35,9 @@ $data = [
],
];

$result = DataForSEO::create($base_uri, $user, $pass)
->setApi(Apis::KEYWORDS_DATA_API)
$client = new Client($base_uri, $user, $pass);

$result = DataForSEO::create($client)
->setRequest(LiveDataRequest::create($data))
->get();
```
Expand Down

0 comments on commit be23a89

Please sign in to comment.