
Security News
pnpm 10.16 Adds New Setting for Delayed Dependency Updates
pnpm's new minimumReleaseAge setting delays package updates to prevent supply chain attacks, with other tools like Taze and NCU following suit.
@magicbell/user-client
Advanced tools
Welcome to the Client SDK documentation. This guide will help you get started with integrating and using the Client SDK in your project.
2.0.0
0.2.0
OpenAPI 3.1.0 Specification for MagicBell API.
This SDK is compatible with the following versions: TypeScript >= 4.8.4
To get started with the SDK, we recommend installing using npm
:
npm install @magicbell/user-client
The Client API uses an Access Token for authentication.
This token must be provided to authenticate your requests to the API.
When you initialize the SDK, you can set the access token as follows:
const sdk = new Client({ token: 'YOUR_TOKEN' });
If you need to set or update the access token after initializing the SDK, you can use:
const sdk = new Client();
sdk.token = 'YOUR_TOKEN';
You can set a custom timeout for the SDK's HTTP requests as follows:
const client = new Client({ timeout: 10000 });
Below is a comprehensive example demonstrating how to authenticate and call a simple endpoint:
import { Client } from '@magicbell/user-client';
(async () => {
const client = new Client({
token: 'YOUR_TOKEN',
});
const { data } = await client.channels.getInAppInboxTokens({
limit: 3,
startingAfter: 'starting_after',
endingBefore: 'ending_before',
});
console.log(data);
})();
The SDK provides various services to interact with the API.
Name |
---|
ChannelsService |
IntegrationsService |
NotificationsService |
The SDK includes several models that represent the data structures used in API requests and responses. These models help in organizing and managing the data efficiently.
FAQs
OpenAPI 3.1.0 Specification for MagicBell API.
We found that @magicbell/user-client demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
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.
Security News
pnpm's new minimumReleaseAge setting delays package updates to prevent supply chain attacks, with other tools like Taze and NCU following suit.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.