Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@trycourier/courier-js
Advanced tools
[![Courier: Your Complete Communication Stack](https://www.courier.com/_next/image/?url=https%3A%2F%2Fimages.ctfassets.net%2Fz7iqk1q8njt4%2F1PZo9WNTdmoDoYH3yulXa0%2Fb10830f7bfb09af5e644a39ac3d20c41%2FCourierJS_header_alt2.png&w=1920&q=75)](https://courier
SDK used by client applications to interface with the Courier API.
Requirements | |
---|---|
Courier Account |
Sign Up
|
Client API Key |
Get key
|
Feature | Description |
---|---|
Identify
|
Event that triggers a user Create or Update within Courier Profiles.
|
Track
| Event ingested by Courier can be used to trigger an automation or supply inline payloads within an existing automation workflow. |
GeneratePreferencesUrl
| Generates URL that can be used to link users to Preferences Center to manage their notification preferences. |
# npm
npm install @trycourier/courier-js
# yarn
yarn add @trycourier/courier-js
# pnpm
pnpm add @trycourier/courier-js
import courier from "@trycourier/courier-js";
courier.init({
clientKey: "<REPLACE_WITH_YOUR_CLIENT_KEY>",
debug: true, // debug enables client side logs for error catching
});
await courierSDK.identify("purbleUserId", {
email: "customer@purbleplace.com",
favoriteColor: "purple",
});
await courierSDK.track("user-signup");
await courierSDK.track("bake-cake", {
cakeFlavor: "carrot",
frosting: "cream cheese"
});
const prefCenterLink = courier.generatePreferencesUrl("<user-id>", {
// optional
brandId: "<brand-id>",
});
We are building the best SDKs for handling notifications! Have an idea or feedback about our SDKs? Here are some links to contact us:
FAQs
[![Courier: Your Complete Communication Stack](https://www.courier.com/_next/image/?url=https%3A%2F%2Fimages.ctfassets.net%2Fz7iqk1q8njt4%2F1PZo9WNTdmoDoYH3yulXa0%2Fb10830f7bfb09af5e644a39ac3d20c41%2FCourierJS_header_alt2.png&w=1920&q=75)](https://courier
The npm package @trycourier/courier-js receives a total of 3,796 weekly downloads. As such, @trycourier/courier-js popularity was classified as popular.
We found that @trycourier/courier-js 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.