paravibe / shutterstock
The Shutterstock API wrapper for PHP
dev-master
2021-03-22 15:42 UTC
Requires
- php: ^5.6 || ^7.0
- guzzlehttp/guzzle: ^6.2
Requires (Dev)
- phpunit/phpunit: ^5.5
This package is auto-updated.
Last update: 2024-11-22 22:55:01 UTC
README
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
$get = $client->createRequest('GET', "users")->execute(); $data = $get->getDecodedBody();