You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

occasion-sdk

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

occasion-sdk

An SDK library that enables access to Occasion's application, providing a rich DSL for creating and managing bookings.

latest
Source
npmnpm
Version
0.2.3
Version published
Maintainers
2
Created
Source

The Occasion Javascript SDK

The Occasion Javascript SDK enables you to sell bookings simply and securely through your web application, providing services to help you make use of many of the resources of Occasion. Such resources include merchants, products, venues, customers, orders, coupons, gift cards, payment methods, and calendars.

Installation

yarn add occasion-sdk

You can also use the CDN address https://unpkg.com/occasion-sdk to add it to your AMD loader or into your page:

<script type='text/javascript' src='https://unpkg.com/occasion-sdk'></script>

Initialization

Once you’ve added occasion-sdk to your application, initialize it with your public API token, which can be found in your account settings on Occasion.

let OccasionClient = new Occasion.Client('[API_TOKEN]');

Resources

  • Getting Started Guide
    • Learn much of the DSL as this guide demonstrates how to create an order widget for any product on Occasion, so you can sell bookings for that product to customers.

Keywords

occasion

FAQs

Package last updated on 04 Mar 2019

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