Skip to content

Commit

Permalink
Improve documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
webeweb committed Sep 22, 2021
1 parent 14638cb commit 8d9d664
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions doc/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,11 @@ $response = $provider->curatedPhotos($request);
Get a photo

```php
use WBW\Library\Pexels\Model\Photo;
use WBW\Library\Pexels\Model\Source;
use WBW\Library\Pexels\Provider\ApiProvider;
use WBW\Library\Pexels\Request\GetPhotoRequest;

// Create the API provider.
$provider = new ApiProvider("YOUR_API_KEY");

Expand Down

0 comments on commit 8d9d664

Please sign in to comment.