Inbound Marketing, Sales, and Service Software. Use this app to configure your own custom OAuth application.
Go to siteimport { axios } from "@pipedream/platform"
export default defineComponent({
props: {
hubspot_developer_app: {
type: "app",
app: "hubspot_developer_app",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.hubapi.com/integrations/v1/me`,
headers: {
Authorization: `Bearer ${this.hubspot_developer_app.$auth.oauth_access_token}`,
},
})
},
})
HubSpot (Developer App) uses OAuth authentication. When you connect your HubSpot (Developer App) account, Pipedream will open a popup window where you can sign into HubSpot (Developer App) and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any HubSpot (Developer App) API.
Pipedream requests the following authorization scopes when you connect your account:
do not use
GET
https://app.hubspot.com/oauth/authorize
?
client_id={{custom_fields.client_id}}
&
redirect_uri={{oauth.redirect_uri}}
&
state={{oauth.state}}
&
response_type=code
&
scope={{custom_fields.space_separated_scopes}}
POST
https://api.hubapi.com/oauth/v1/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{custom_fields.client_id}}
&
client_secret={{custom_fields.client_secret}}
&
redirect_uri={{oauth.redirect_uri}}
&
grant_type=authorization_code
&
code={{oauth.code}}
POST
https://api.hubapi.com/oauth/v1/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{custom_fields.client_id}}
&
client_secret={{custom_fields.client_secret}}
&
grant_type=refresh_token
&
refresh_token={{oauth.refresh_token}}