dev-master
9999999-dev https://github.com/shutterstock/shutterstock-php-clientPHP API client for api.shutterstock.com
MIT
The Requires
- php >=5.3.0
- shutterstock/presto 1.*
The Development Requires
by Tavis Aitken
PHP API client for api.shutterstock.com
See exmaple.php file for usage examples Be sure to run composer autoload, (*1)
composer.phar dump-autoload -o
Example, (*2)
//REST Client, (*3)
$presto = new Presto\Presto();
//Response processor, (*4)
$response = new Shutterstock\Response();
// Create API instance, pass in REST client and Response processor, (*5)
$api = new Shutterstock\Api('[api username]','[api key]', $presto, $response);
// Authenticate a user, will return a token for user on additional calls, (*6)
$api->authUser('[username]','[password]');
// Set username and token to use for API calls, (*7)
$api->setUser('['username]', '[auth token]');
PHP API client for api.shutterstock.com
MIT