2.0.2 • Published 3 years ago

@kite-tech/web-app-sdk v2.0.2

Weekly downloads
27
License
ISC
Repository
-
Last release
3 years ago

Prodigi Print Shop SDK

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

This SDK is compatible with the Prodigi Print on Demand Shop. Get your own branded instance at Prodigi Apps Dashboard.

With the Print Shop SDK, you can integrate your print shop app into your own site, 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/print-shop

Installation

Install using NPM:

npm install @kite-tech/web-app-sdk

Usage

Import the package:

import { KiteWebAppSdk } from '@kite-tech/web-app-sdk';

Launch your shop using the launchFromJSON function and pass in your desired configuration:

const printShopConfig = {
    baseUrl: 'https://shop.prodigi.com/prodigi'
};

KiteWebAppSdk.launchFromJSON(printShopConfig);

API

PropertyTypeRequiredDescription
baseUrlstringYESThe complete URL of your shop
configConfigObjectNOSpecify additional properties for launch
checkoutUserFieldsCheckoutUserFieldsObjectNOUser details to populate on checkout
collectorImagesCollectorImagesArrayNOImages passed in to your shop that can be applied to different products

ConfigObject

PropertyTypeRequiredDescription
startInNewTabbooleanNOOpens your shop in a new tab/window. Default is false
customer_idstringNOCustom identifier associated to your user

CheckoutUserFieldsObject

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, }NOUser shipping address to populate on 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

CollectorImagesArray

An array of objects having the following properties:

PropertyTypeRequiredDescription
dimensions { width: number, height: number }YESThe dimensions of the image URL specified
idstringYESUnique ID for the image
isUploadCompletebooleanYESSpecify whether the image upload is complete
thumbnailUrlstringYESLower resolution image URL, used for rendering previews in the browser
urlstringYESFull resolution image URL, used for printing
2.0.2

3 years ago

2.0.1

3 years ago

2.0.0

4 years ago

1.6.6

4 years ago

1.6.5

4 years ago

1.6.4

4 years ago

1.6.3

4 years ago

1.6.2

4 years ago

1.6.1

4 years ago

1.6.0

4 years ago

1.5.3

4 years ago

1.5.2

4 years ago

1.5.1

4 years ago

1.5.0

4 years ago

1.4.1

4 years ago

1.3.7

4 years ago

1.3.6

4 years ago

1.3.5

4 years ago

1.3.4

4 years ago

1.3.3

4 years ago

1.3.2

5 years ago

2.0.0-alpha.0

5 years ago

1.3.1

6 years ago

1.5.0-alpha.1

6 years ago

1.3.0

6 years ago

1.4.0-alpha.1

6 years ago

1.2.0

6 years ago

1.3.0-alpha.1

6 years ago

1.2.2-alpha.3

6 years ago

1.2.2-alpha.2

6 years ago

1.2.2-alpha.1

6 years ago

1.2.1-alpha.1

6 years ago

1.1.5

6 years ago

1.1.2-alpha.1

6 years ago

1.1.4

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.5

6 years ago

1.0.0

6 years ago

0.4.1-alpha.1

6 years ago

0.3.1-alpha.1

6 years ago

0.3.0-alpha.1

6 years ago

0.2.0-alpha.1

6 years ago

0.1.0-alpha.1

6 years ago

0.0.1-alpha.10

6 years ago

0.0.1-alpha.8

6 years ago

0.0.1-alpha.7

6 years ago

0.0.1-alpha.6

6 years ago

0.0.1-alpha.5

6 years ago

0.0.1-alpha.4

6 years ago

0.0.1-alpha.3

6 years ago

0.0.1-alpha.2

6 years ago

0.0.1-alpha.1

6 years ago