@trycourier/courier
Advanced tools
Comparing version 1.1.2 to 1.1.3
{ | ||
"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); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11564