https://github.com/paravibe/shutterstock
https://github.com/paravibe/shutterstock
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/paravibe/shutterstock
- Owner: paravibe
- License: mit
- Created: 2021-03-22T14:54:04.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-03-22T15:43:00.000Z (over 5 years ago)
- Last Synced: 2024-04-17T21:20:47.985Z (about 2 years ago)
- Language: PHP
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Shutterstock PHP wrapper
[](https://github.com/paravibe/shutterstock/releases)
[](https://travis-ci.org/paravibe/shutterstock)
[](https://packagist.org/packages/paravibe/shutterstock)
## Installation
`composer require paravibe/shutterstock`
## How to use
### Initialize client
`$client = new \Shutterstock\Main\Client($access_token);`
Where `$access_token` is a token retrived during authorization procedure
Use any method described here https://api-reference.shutterstock.com
by passing proper HTTP method and endpoint to `createRequest()` method.
### GET/DELETE methods
```php
$get = $client->createRequest('GET', "users")->execute();
$data = $get->getDecodedBody();
```