mitwirken
v0.0.2
Published
## Quickstart
Readme
Mitwirken JS SDK
Quickstart
Node.js
Learn how to initiate your first membership using the Mitwirken Node.js SDK.
Prerequisites
To get the most out of this guide, you'll need to:
- API Key
1. Install
Get the Mitwirken Node.js SDK.
# bun
bun add mitwirken
# yarn
yarn add mitwirken
# npm
npm install mitwirken2. Initiate a membership
Easily initiate a membership by calling the initiate method. It will return a URL that you can redirect your user to.
import { Mitwirken } from 'mitwirken';
// The API key is automatically loaded from `.env` MITWIRKEN_API_KEY
// but also can be passed as a string.
const mitwirken = new Mitwirken();
const membershipURL = mitwirken.memberships.initiate()