The Hubspot API accepts authorization via
an API key,
OAuth 2.0.
OAuth 2.0 is the recommended method. However, this package supports both.
Note that if you do nothing the package will use the "demo" API token but this won't give you access to your own Hubspot data. So you'll need to spend a little time on setup:
For rapid prototyping key, use a Hubspot API key, see hubspot_key_set()
.
For more secure use, without a daily limit on API calls, see hubspot_token_create()
to create a Hubspot authorization token
(OAuth 2.0).
If you have both saved an API key via hubspot_key_set()
and a token via hubspot_token_create()
, priority will be given to using the OAuth 2.0 token. If you don't want that, explicitely pass NULL
as value for the token_path
argument of all functions.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.