Answers for "send in blue Please provide Email or SMS attribute value to create user"

0

send in blue Please provide Email or SMS attribute value to create user

let apiInstance = new SibApiV3Sdk.ContactsApi();
let createContact = new SibApiV3Sdk.CreateContact(); // CreateContact | Values to create a client sendinblue

createContact = {
  listIds: [ '2' ],
  email: "[email protected]",
  updateEnabled: true,
  attributes: {
    FIRST_NAME: "aaa",
    LAST_NAME: "aaa",
    EMAIL: "[email protected]",
    SMS: "0645535435"
  }
}

apiInstance.createContact(createContact).then((data) => {
  console.log('API called successfully. Returned data: ' + data);
}, (error) => {
  console.error(error);
});
Posted by: Guest on October-19-2020

Browse Popular Code Answers by Language