paravibe/shutterstock

The Shutterstock API wrapper for PHP

dev-master 2021-03-22 15:42 UTC

This package is auto-updated.

Last update: 2024-11-22 22:55:01 UTC


README

Latest Version Build Status Total Downloads

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();