Description Usage Arguments Value References Examples
Function to get customers.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
email |
|
apikey |
Your api key from settings in interface |
domain |
Your domain in AmoCRM (xxx in xxx.amocrm.ru) |
auth_list |
List with auth data, you can build from AmoAuthList |
limit |
Batch limit, sometimes AmoCRM's API doesn't work properly, you can reduce the value and have a chance to load your data |
flatten |
Set |
id |
Filter. Pass id or vector of ids of customers. |
query |
Filter. Searching for all fields of customers. String. |
main_user |
Filter. Pass id or vector of ids of responsible user ids. You can get ids from AmoUsers(). |
date_type |
Filter. Choose date type which you want to filter ( |
date_from |
Filter. Date from, e.g. |
date_to |
Filter. Date to, e.g. |
next_date_from |
Filter. Date from of next purchasing. |
next_date_to |
Filter. Date to of next purchasing. |
If flatten is FALSE
(default) you'll get a list of 4 tidy-dataframes which you can join by id. You can access it using list_name$dataframe_name.
linked_custom_fields — linked custom fields with all parameters.
linked_tags — linked tags with all parameters.
linked_contacts — linked contacts with all parameters.
Please READ this: Function documentation in Russian on GitHub
Also nice to read: AmoCRM official documentation
1 2 3 4 5 6 7 | ## Not run:
library(dplyr)
customers <- AmoCustomers(auth_list = auth_list)
customers_with_cf <- customers$customers %>%
left_join(customers$linked_custom_fields, by = 'id') # not tidy
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.