Skip to content

API for uploading and submitting images to shutterstock

License

Notifications You must be signed in to change notification settings

eugene-ga/shutterstock

Repository files navigation

For reference and example only, no warranty of any kind.

Usage

  • Session cookie required to use this module. It cannot access shutterstock contributor area using user credentials, beacause shutterstock requires solving captcha.
import { ShutterstockClient } from 'shutterstock-submit';
const client = new ShutterstockClient(<provide session cookie here>);
  • To upload file
const file = await client.upload('path/to/file');
  • to get all uploaded but not submited images
const imagesToSubmit = await client.getImagesToSubmit();
  • to update images attributes
 await client.save([
   {
     categories: ['11', '1'],
     id: file.upload_id,
   },
 ]);
  • to submit images
await client.submit([+file.upload_id]);
  • session id can be taken using chrome dev tools compare selected

About

API for uploading and submitting images to shutterstock

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published