feat: Add phone_number & custom_attributes in create conversation end point (#4421)

This commit is contained in:
Muhsin Keloth
2022-04-08 14:53:37 +05:30
committed by GitHub
parent 727993aa19
commit 7e5ec7925c
3 changed files with 33 additions and 6 deletions

View File

@@ -10,12 +10,14 @@ const createConversation = params => {
contact: {
name: params.fullName,
email: params.emailAddress,
phone_number: params.phoneNumber,
},
message: {
content: params.message,
timestamp: new Date().toString(),
referer_url: referrerURL,
},
custom_attributes: params.customAttributes,
},
};
};