Return the contacts information from Less annoying CRM.

search_contacts(user_code, api_token, search_term = "")

Arguments

user_code

The user code to identify your account

api_token

The api token to connect to your account

search_term

The contact name or other term to make an specific call to the API. If you want to search for group enter "Group:GROUP_NAME"

Details

The function will return a data frame. The number of rows depends on the number of entries that a contact_id have in any of the following variables: phone, website, email, address. For example, there could be only 17 unique contact_id's, nonetheless, if one of those contact_id's have three emails, the final data frame will have 19 rows.

Examples

if (FALSE) {
search_contacts(user_code = "6A6E88",
               api_token = "TQ9XM",
               search_term = "brenesii")
}