README.md

DEPRECATED

This repo is no longer publicly supported.

Description

This client provides an easy way to interact with the Shutterstock, Inc. API which gives you access to millions of photos, illustrations and footage clips. You will need an API username and key from Shutterstock with the appropriate permissions in order to use this client.

The API operations are done within the context of a specific user/account. Below are some examples of how to use the API client.

Configuration

Configuration is done through call to the ShutterstockAPI::Client singleton.
The block is mandatory and if not passed, an ArgumentError will be thrown.
All subsequent calls will use these configuration options.

While using this method, use valid usernames and tokens otherwise it will result in broken tests

Automation

If you would like to automatically run tests when files are chaged, run bundle exec guard.
This will monitor lib and spec and will run the appropriate tests.
You will want to run this in another terminal so you can switch to it upon saving a file to see the test results.
After a test runs, hit ENTER to re-run all tests.

Style

We try to follow the Github Styleguide as much as possible.
To make this easier, there is a tool called rubocop.

You can invoke it via rake rubocop or run rubocop --help for more options.

Supported Ruby Versions

This library aims to support and is tested against the following Ruby
versions: