Node.js library for accessing Sincerely's Web API at https://dev.sincerely.com/docs
Node.js library to access Sincerely's Ship API.
npm install sincerely
var sincerely = 'your-app-key'path =fs =Landscape6x4 = pathPortrait4x6 = path;// you could use the `async` module here to parallel// load a `frontPhotoId` and a `profilePhotoId`// read the file as a base64 stringfs;
All methods take a
data object as their first parameter and a
callback(err, response) as their last parameter.
sincerely.create- Create a new order for the purposes of mailing a physical print and returns success or error.
sincerely.upload- Uploads an image asset and returns an id that can be used when calling
sincerely.debug- Outputs a print preview PDF showing you waht the final print will look like. Please note that this should be used for debug purposes only and should not be output to the end user.
sincerely.cancel- Cancel a print placed via the api before it ships. Prints are usually sent to production 2-4 hours from initial creation.
Documentation for these methods can be found at Sincerely's RESTful web api ("Ship API").
To run tests, install
npm install vows
SINCERELY=your-app-key vows test/*