skiply_javascript_sdk

Skiply JavaScript SDK

Usage no npm install needed!

<script type="module">
  import skiplyJavascriptSdk from 'https://cdn.skypack.dev/skiply_javascript_sdk';
</script>

README

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

  • [Cart]
  • [Product]
  • [Merchant]
  • [Student]
  • [Session]
  • [Search]

Usage

First time using Skiply? Here’s how to get started:

Get an access token

Tests