Revision control

Copy as Markdown

Other Tools

messenger.addressBooks.provider.onSearchRequest.addListener(
async (node, searchString, query) => {
const response = await fetch(
);
const json = await response.json();
return {
isCompleteResult: true,
// Return an array of ContactProperties as results.
results: json.map(contact => ({
DisplayName: contact.name,
PrimaryEmail: contact.email,
})),
};
},
{
addressBookName: "ACME employees",
isSecure: true,
}
);