Welcome to the MYMOID JavaScript API SDK! 🎉 This library provides an easy-to-use interface for interacting with the MYMOID REST API using JavaScript or TypeScript.
For detailed instructions on getting started with the MYMOID JavaScript API SDK, please refer to our developer's portal getting started.
For a complete reference of the API, please refer to our API reference.
For a complete reference of the SDK, please refer to our SDK Documentation.
To install the SDK in your project, run the following npm command:
npm install @mymoid/api
Create a MymoidApi instance before initializing your application. You should only have one instance of the client.
[!IMPORTANT] Ensure that you have an API Key and an Organization ID, as these are required for setup. If you don't have them yet, please refer to our initial setup.
Set the following environment variables in your project:
MYMOID_BASE_URL=https://apis.san.mymoid.com
MYMOID_API_KEY=*********************
MYMOID_ORGANIZATION_ID=******************
Options to MymoidApiAlternatively, you can pass options directly to MymoidApi instance:
import { MymoidApi } from '@mymoid/api'
const api = await MymoidApi({
baseUrl: '{MYMOID_BASE_URL}',
apiKey: '{MYMOID_API_KEY}',
organizationId: '{MYMOID_ORGANIZATION_ID}'
})
Explore the available API methods in the @mymoid/api.
We appreciate feedback and contributions to this repository! Before you start, please review:
To provide feedback or report a bug, please raise an issue on our issue tracker. We value your input!