New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@kite-tech/photobook-sdk

Package Overview
Dependencies
Maintainers
6
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kite-tech/photobook-sdk

Prodigi photobook maker SDK

  • 3.0.3
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
56
increased by1766.67%
Maintainers
6
Weekly downloads
 
Created
Source

Prodigi Photobook Maker SDK

Prodigi offers white label print on demand portals so that you can sell to your users under your brand.

This SDK is compatible with the Prodigi Photobook Maker. Get your own branded instance at Prodigi Apps Dashboard.

With the Photobook Maker SDK, you can integrate your Photobook maker app into your own website, launching it with pre-configured data, such as images, at run-time.

Table of Contents

Demo and examples

For a list of common use-cases and a demo sandbox, visit: https://sdk.prodigi.com/photobook-maker

Installation

Install using NPM:

npm install @kite-tech/photobook-sdk

Usage

Import the package:

import { KitePhotobook } from '@kite-tech/photobook-sdk';

Launch your Photobook Maker app using the launchPhotobook function and pass in your desired configuration:

const photobookMakerConfig = {
    baseUrl: 'https://photobook.prodigi.com/prodigi',
    images: []
};

KitePhotobook.launchPhotobook(photobookMakerConfig);

API

PropertyTypeRequiredDescription
baseUrlstringYESThe complete URL of your Photobook Maker
addNewImagesToBookbooleanNOIf true, any images passed in are automatically added to the Photobook. Default is false
bookSpineTextstringNOOptional text to print on the spine of the Photobook
clearBookbooleanNOClear the Photobook and image library on launch. Default is false
config
{
startInNewTab: boolean
}
NOIf true, the app opens in a new tab/window. Default is false
checkoutFieldsCheckoutFieldsObjectNOPopulate the user's details on the checkout
imagesImagesArrayYESPass in images to use in the Photobook
variantTemplateIdstringNOLaunch into a specific Photobook variant. Template IDs can be found inside the Prodigi apps dashboard.

CheckoutFieldsObject

PropertyTypeRequiredDescription
shippingAddress
 {
recipient_first_name: string,
recipient_last_name: string,
address_line_1: string,
address_line_2: string,
city: string,
county_state: string,
postcode: string,
country: string,
}
NOPopulates the user's shipping address at the checkout. All values are optional
customerEmailstringNOSets the user's email address when they reach the checkout
termsOfServicebooleanNOSets whether to automatically agree to terms of service on checkout

ImagesArray

An array of objects having the following properties:

PropertyTypeRequiredDescription
dimensions
{
width: number,
height: number
}
NOThe dimensions of the image URL specified. If not set, the dimensions for all images are calculated before launch.

If you cannot specify image dimensions and have a large number of images, it is recommended to display a loading spinner until the app is launched.
thumbnailUrlstringYESLower resolution image URL, used for rendering previews in the browser
urlstringYESFull resolution image URL, used for printing

Keywords

FAQs

Package last updated on 10 Aug 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc