1.0.2 • Published 3 years ago
skiply_javascript_sdk v1.0.2
Skiply Javascript SDK
Use this JavaScript library to manage Skiply resources (such as cart, merchant, students, and payments).
Installation
Install the latest SDK using npm:
$ npm i skiply_javascript_sdk
or
$ yarn add skiply_javascript_sdk
How do I import the client and other types from the SDK?
Recommended: You can import the client in ES module style if your environment supports it:
import { Auth, Student } from 'skiply'
Or you can import the client in CommonJS style:
const { Student, Cart } = require('skiply')
Import Gotcha
Do not mix ES module and CommonJS imports in the same codebase. This will likely cause issues that are hard to debug. For more information, do a web search for "Dual Package Hazard Node".
How do I initialize the client?
import { User, Cart } from 'skiply'
const user = new User({
environment: Environment.Sandbox,
accessToken: process.env.SKIPLY_TOKEN,
})
API documentation
Usage
First time using Skiply? Here’s how to get started: