Comment on page
📔
Contacts
- Get All Contacts Success
- Get All Contacts Failed
- Create Contact Success
- Create Contact Failed
- Get Contacts IDs - Array of ids
- Get Contacts FirstNames - Array of first names
- Get Contacts LastNames - Array of last names
- Get Contacts PhoneNumbers - Array of contacts phone numbers, if there are 2 or more phone numbers, it's separated by a comma (example: "05435235235,124334234")
- Get Contacts Emails - Array of contacts emails. If there are 2 or more emails, it's separated by a comma (example: "[email protected],[email protected]")
- Create Contact ID - Id of created contact after calling Create Contact action
- Create/Get Contacts Status - Result status after calling Create Contact or Get all contacts
Since bubble plugins aren't allowed to output nested lists, we use separate properties for contact's each field. (first name, last name, phone numbers, emails)
- Get all contacts
- Create Contact
- First name - Required
- Last name
- Phone
- Email
1
const contacts = new NativelyContacts()
2
const contacts_save_callback = function(resp) {
3
console.log(resp.id);
4
console.log(resp.status);
5
};
6
const contacts_all_callback = function (resp) {
7
console.log(resp.contacts);
8
console.log(reps.status); // "SUCCESS"/"FAILED"
9
};
10
contacts.getAllContacts(contacts_all_callback);
11
contacts.createContact(contacts_save_callback);
Last modified 9mo ago