Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@trycourier/courier

Package Overview
Dependencies
Maintainers
1
Versions
88
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@trycourier/courier - npm Package Compare versions

Comparing version 1.1.2 to 1.1.3

2

package.json
{
"name": "@trycourier/courier",
"version": "1.1.2",
"version": "1.1.3",
"description": "A node.js module for communicating with the Courier REST API.",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -30,13 +30,13 @@ # `@trycourier/courier`

// Example: replace a recipient's profile
const replaceRes = await courier.replaceProfile({
recipientId: "<PROFILE_ID>",
const { status: replaceStatus } = await courier.replaceProfile({
recipientId: "<RECIPIENT_ID>",
profile: {
email: "example@example.com"
"email": "example@example.com"
}
});
console.log(replaceRes.status);
console.log(replaceStatus);
// Example: merge into a recipient's profile
const mergeRes = await courier.mergeProfile({
recipientId: "<PROFILE_ID>",
const { status: mergeStatus } = await courier.mergeProfile({
recipientId: "<RECIPIENT_ID>",
profile: {

@@ -46,7 +46,7 @@ "sms": "555-555-5555"

});
console.log(mergeRes.status);
console.log(mergeStatus);
// Example: get a recipient's profile
const { profile } = await courier.getProfile({
recipientId: "<PROFILE_ID>"
recipientId: "<RECIPIENT_ID>"
});

@@ -53,0 +53,0 @@ console.log(profile);

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc