Description Usage Arguments Details Value Examples
Get raw and tidy results from the deals endpoint.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | hs_deals_raw(
token_path = hubspot_token_get(),
apikey = hubspot_key_get(),
properties = hs_deal_properties_tidy(hs_deal_properties_raw(token_path, apikey)),
property_history = "true",
associations = "true",
max_iter = 10,
max_properties = 100
)
hs_deals_tidy(
deals = hs_deals_raw(),
view = c("associations", "properties history", "properties", "stages history")
)
|
token_path |
Path to OAuth 2.0 token.
See |
apikey |
API key to work with Hubspot (only used if |
properties |
Character vector of properties to request |
property_history |
Whether version history for properties should be returned |
associations |
Retrieve links to other entities |
max_iter |
The API is limited to a certain number of responses by page, use |
max_properties |
Avoid URLs that are too long, limit the number of properties returned, if required. |
deals |
A deals list object, typically produced by running |
view |
A view (see Details) |
Required scope(s) of the OAuth token: contacts.
Different view
values and associated output.
"associations": A tibble with associated entities
"properties history": A tibble of all field changes over time
"properties": A tibble containing all properties of deals
"stages history": A tibble containing all stages a deal has gone through
List with deals data (hs_deals_raw()
)
A tibble (hs_deals_tidy()
)
1 2 3 4 5 6 7 8 9 10 | deals <- hs_deals_raw(
property_history = "false",
max_iter = 1,
max_properties = 10
)
deals_properties <- hs_deals_tidy(
deals,
view = "properties"
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.