Matt
0
Q:

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);
});
0

New to Communities?

Join the community