knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

hubspot

Access Hubspot CRM data in R

Project Status: WIP - Initial development is in progress, but there has not yet been a stable, usable release suitable for the public. Travis build status Locke Data Slack Codecov test coverage

The goal of hubspot is to enable access to Hubspot CRM data. It uses the Hubspot API.

All functions are named following a hs_<endpointname>_raw()/hs_<endpointname>_tidy(), with hs_<endpointname>_tidy() offering at least one view: e.g. get a nested list of deals data with hs_deals_raw() and transform it to a tibble of associations, properties history, properties or stages history using hs_deals_tidy().

Refer to the online reference to see what endpoints are supported at the moment. Feel free to suggest new "getters" (hs_<endpointname>_raw()) and tidier options (view of hs_<endpointname>_tidy()) in the issue tracker.

Example

library("hubspot")

deal_props <- hs_deal_properties_tidy()
head(deal_props)

deals <- hs_deals_raw(properties = deal_props, max_iter = 1)
details::details(deals, summary = "Click to see the <code>deals</code> nested list")
deal_stages <- hs_deals_tidy(deals, view = "properties")
deal_stages

Installation

remotes::install_github("lockedata/hubspot")

Find more details on each method in the vignette about authorization.

Contributions welcome!

Wanna report a bug or suggest a feature? Great stuff! For more information on how to contribute check out our contributing guide.

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.



lockedata/hubspot documentation built on March 1, 2020, 8:54 p.m.