# developing a Python interaction with the Hubspot

**URL:** <https://community.hubspot.com/t/developing-a-python-interaction-with-the-hubspot/38166>\
**Category:** Marketplace Apps\
**Tags:** starter\
**Created:** [May 31, 2021, 11:58am UTC](https://community.hubspot.com/t/developing-a-python-interaction-with-the-hubspot/38166 "2021-05-31T11:58:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![JPereiradaSil](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jpereiradasil/32/53869_2.png) [@JPereiradaSil](https://community.hubspot.com/u/JPereiradaSil)\
**Post date:** [May 31, 2021, 11:58am UTC](https://community.hubspot.com/t/developing-a-python-interaction-with-the-hubspot/38166/1 "2021-05-31T11:58:41Z")

</div>

`Olá, estou desenvolvendo uma interação Python com o Hubspot e vi que preciso do token de acesso OAuth2, por exemplo, o código do cliente e o segredo do cliente. Onde posso encontrá-los?`

---

<div class="post-metadata">

**Author:** ![pbretz](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/pbretz/32/97390_2.png) [@pbretz](https://community.hubspot.com/u/pbretz)\
**Post date:** [May 31, 2021, 8:08pm UTC](https://community.hubspot.com/t/developing-a-python-interaction-with-the-hubspot/38166/2 "2021-05-31T20:08:14Z")

</div>

Olá @JPereiradaSil ,

As integrações via API da HubSpot permitem duas formas de autenticação: a OAuth e a Chave de API.

O método de OAuth requer a construção de um aplicativo em sua conta de desenvolvedor. Você pode verificar mais informações sobre esse passo a passo através desse artigo: [Working with OAuth.](https://developers.hubspot.com/docs/api/working-with-oauth)

Já o método da chave de API, você pode encontrar dentro do seu próprio portal, seguindo os passos desse artigo: [Acesse sua chave de API da HubSpot](https://knowledge.hubspot.com/pt/integrations/how-do-i-get-my-hubspot-api-key)

Abraços,

Paula.
