2017 © Pedro Peláez
 

library shutterstock-php-client

PHP API client for api.shutterstock.com

image

shutterstock/shutterstock-php-client

PHP API client for api.shutterstock.com

  • Wednesday, February 19, 2014
  • by Bar_Code
  • Repository
  • 1 Watchers
  • 2 Stars
  • 25 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 1 Versions
  • 9 % Grown

The README.md

shutterstock-php-client

See exmaple.php file for usage examples Be sure to run composer autoload, (*1)

 composer.phar dump-autoload -o
  • API Client classes
  • api-client : initialization, auth, test, subscriptions, lightboxes
  • images : id, search, categories, similar, recommendations, subscriptions(download), download history
  • lightboxes : id, extended, images, public_url
  • videos : id, search, download history

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]');

The Versions

19/02 2014

dev-master

9999999-dev https://github.com/shutterstock/shutterstock-php-client

PHP API client for api.shutterstock.com

  Sources   Download

MIT

The Requires

 

The Development Requires