shutterstock-package: Shutterstock API client

Description Running tests Design principles Package options Author(s) References See Also

Description

The endpoint descriptions are retrieved from Shutterstock API Reference documentation.

Running tests

  1. Insert unit tests by using testthat package

  2. Copy .httr-oauth file into tests/testthat directory (but remove that later)

  3. Add/uncomment httptest::start_capturing() and httptest::stop_capturing() recording lines between the tests

  4. Run specific tests one by one e.g. devtools::test(filter = "audio")

  5. When the API files are created/updated, remove/comment the recording lines

  6. Wrap tests with with_mock_api calls

  7. Run the tests again with the same filter

  8. Done if all tests pass. Move to the next one.

Design principles

Package options

sstk.api.root.url

The base URL for retrieving the API endpoints. Default: https://api.shutterstock.com/

Author(s)

Maintainer: Metin Yazici stradivariusboul@gmail.com

References

Shutterstock API Reference: https://api-reference.shutterstock.com/

See Also

Useful links:


shutterstock documentation built on May 1, 2019, 6:57 p.m.