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
Advanced tools
@trycourier/courier
A node.js module for communicating with the Courier REST API.
npm install @trycourier/courier
import { CourierClient } from "@trycourier/courier";
const courier = CourierClient({ authorizationToken: "<AUTH_TOKEN>" }); // get from the Courier UI
// Example: send a message supporting email & SMS
const { messageId } = await courier.send({
eventId: "<EVENT_ID>", // get from the Courier UI
recipientId: "<RECIPIENT_ID>", // usually your system's User ID
profile: {
email: "example@example.com",
phone_number: "555-228-3890"
},
data: {} // optional variables for merging into templates
});
import { CourierClient } from "@trycourier/courier";
// const { CourierClient } = require("@trycourier/courier");
const courier = CourierClient({ authorizationToken: "<AUTH_TOKEN>" });
async function run () {
// Example: send a message
const { messageId } = await courier.send({
eventId: "<EVENT_ID>",
recipientId: "<RECIPIENT_ID>",
profile: {}, // optional
data: {} // optional
});
console.log(messageId);
// Example: replace a recipient's profile
const { status: replaceStatus } = await courier.replaceProfile({
recipientId: "<RECIPIENT_ID>",
profile: {
"email": "example@example.com"
}
});
console.log(replaceStatus);
// Example: merge into a recipient's profile
const { status: mergeStatus } = await courier.mergeProfile({
recipientId: "<RECIPIENT_ID>",
profile: {
"sms": "555-555-5555"
}
});
console.log(mergeStatus);
// Example: get a recipient's profile
const { profile } = await courier.getProfile({
recipientId: "<RECIPIENT_ID>"
});
console.log(profile);
};
run();
[v1.2.1] - 2019-12-30
FAQs
[![Courier: Your Complete Communication Stack](https://marketing-assets-public.s3.us-west-1.amazonaws.com/github_nodejs.png)](https://courier.com)
The npm package @trycourier/courier receives a total of 35,873 weekly downloads. As such, @trycourier/courier popularity was classified as popular.
We found that @trycourier/courier 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.