Skip to content
This repository was archived by the owner on Dec 14, 2024. It is now read-only.

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

15 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors