Skip to content

Commit

Permalink
Updates usage examples to include summarizing from text or url.
Browse files Browse the repository at this point in the history
  • Loading branch information
dsposito committed Mar 10, 2017
1 parent 95e958e commit 4a92101
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ composer require dayrev/smmry-sdk-php
Alternatively, add `"dayrev/smmry-sdk-php": "^1.0"` to your composer.json file.

##Usage
```php
$sdk = new DayRev\Smmry\SDK(['api_key' => 'YOURKEYHERE', 'summary_length' => 5]);
$summary = $sdk->summarizeText($long_text_string_here);
```

**OR**

```php
$sdk = new DayRev\Smmry\SDK(['api_key' => 'YOURKEYHERE', 'summary_length' => 5]);
$summary = $sdk->summarizeUrl('http://collegefootball.ap.org/article/mayfield-leads-oklahoma-35-19-sugar-bowl-win-over-auburn');
Expand Down

0 comments on commit 4a92101

Please sign in to comment.