The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.

ractivecampaign - R пакет для работы с CRM ActiveCampaign API

Цель ractivecampaign упростить процесс запроса данных из ActiveCampaign API в R. На данный момент в ractivecampaign присутвует 16 функций:

Установка

На данный момент пакет доступн для установки из GitHub:

# install.packages("ractivecampaign")
install.packages("devtools")
devtools::install_github('selesnow/ractivecampaign')

Авторизация в ActiveCampaign API

Для авторизации вам необходимо найти в аккаунте URL и Ключ API, для этого перейдите в основном меню перейдите в Settings > Developer, там вы найдёте нужные данные.

Пример

library(ractivecampaign)
library(ggplot2)
  
# auth
ac_auth(url = 'Ваш API URL', key = 'Ваш API Key')
# get deals
deals <- ac_get_deals()
  
# analyze
deals %>% 
  mutate(date = as.Date(cdate)) %>% 
  group_by(date) %>% 
  summarise(deals = n_distinct(id)) %>% 
  ggplot( aes(date, deals) ) +
  geom_line() + geom_point() +
  labs(title = 'Deals by date from ActiveCampaign')

Автор пакета

Алексей Селезнёв, Head of analytics dept. at Netpeak
Telegram Channel: @R4marketing
Youtube Channel: R4marketing
email: selesnow@gmail.com
Telegram: @AlexeySeleznev
facebook: facebook.com/selesnow
blog: alexeyseleznev.wordpress.com

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.