<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Problem to get a token with a HubSpot Marketing Professional in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Problem-to-get-a-token-with-a-HubSpot-Marketing-Professional/m-p/254976#M22600</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/65181"&gt;@angelopublio&lt;/a&gt;&amp;nbsp;, I was able to generate access and refresh tokens for your account by using my own authentication url successfully. I wonder if the issue is that the site&amp;nbsp;&lt;A href="https://app.na5.com.br/hubspot/authorize" target="_blank"&gt;https://app.na5.com.br/hubspot/authorize&lt;/A&gt; cannot be reached. I would see if you can try building another authentication URL with a site that's live, then see if you can generate access tokens from there.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's what I used for my auth URL:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://app.hubspot.com/oauth/authorize?client_id=28e34ca8-2b36-44ea-8b71-e1150c080ee4&amp;amp;scope=contacts&amp;amp;redirect_uri=https://www.playtimepottery.net" target="_blank"&gt;https://app.hubspot.com/oauth/authorize?client_id=28e34ca8-2b36-44ea-8b71-e1150c080ee4&amp;amp;scope=contacts&amp;amp;redirect_uri=https://www.playtimepottery.net&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and the fields for my POST to&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://api.hubapi.com/oauth/v1/token" target="_blank"&gt;https://api.hubapi.com/oauth/v1/token&lt;/A&gt;, with a header of &lt;STRONG&gt;Content-Type&lt;/STRONG&gt; set to &lt;STRONG&gt;x-www-form-urlencoded&lt;/STRONG&gt;:&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;grant_type:authorization_code
client_id:28e34ca8-2b36-44ea-8b71-e1150c080ee4
client_secret:XXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXX
redirect_uri:https://wwww.playtimepottery.net
code:a1e3f309-335d-4c91-b721-862319d37ffa&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;I got a successful response and was given a refresh and access token.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;By the way, I would probably remove your screenshot that shows your client secret and ID. Those things can be used by others who come across this forum and authenitcate your app to other portals for free.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 22 Feb 2019 20:32:21 GMT</pubDate>
    <dc:creator>cbarley</dc:creator>
    <dc:date>2019-02-22T20:32:21Z</dc:date>
    <item>
      <title>Problem to get a token with a HubSpot Marketing Professional</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Problem-to-get-a-token-with-a-HubSpot-Marketing-Professional/m-p/254263#M22526</link>
      <description>&lt;P&gt;&amp;nbsp;When we use oAuth2 to connect to HubSpot Free accounts, everything works fine, but we get an internal error when we try to get a token using our HubSpot Marketing Hub Professional.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are using Python, but we are debugging using Postman trying to solve this.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Our App ID: 188549 and&amp;nbsp;we are trying to connect to our HubID account: 407592&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"status": "error",&lt;BR /&gt;"message": "internal error",&lt;BR /&gt;"correlationId": "3b9cdc3c-0b32-44f4-ac29-3f302ea52281",&lt;BR /&gt;"requestId": "8ac99b721dc8d8777e4174334e6435c8"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Feb 2019 21:34:15 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Problem-to-get-a-token-with-a-HubSpot-Marketing-Professional/m-p/254263#M22526</guid>
      <dc:creator>angelopublio</dc:creator>
      <dc:date>2019-02-22T21:34:15Z</dc:date>
    </item>
    <item>
      <title>Re: Problem to get a token with a HubSpot Marketing Professional</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Problem-to-get-a-token-with-a-HubSpot-Marketing-Professional/m-p/254976#M22600</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/65181"&gt;@angelopublio&lt;/a&gt;&amp;nbsp;, I was able to generate access and refresh tokens for your account by using my own authentication url successfully. I wonder if the issue is that the site&amp;nbsp;&lt;A href="https://app.na5.com.br/hubspot/authorize" target="_blank"&gt;https://app.na5.com.br/hubspot/authorize&lt;/A&gt; cannot be reached. I would see if you can try building another authentication URL with a site that's live, then see if you can generate access tokens from there.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's what I used for my auth URL:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://app.hubspot.com/oauth/authorize?client_id=28e34ca8-2b36-44ea-8b71-e1150c080ee4&amp;amp;scope=contacts&amp;amp;redirect_uri=https://www.playtimepottery.net" target="_blank"&gt;https://app.hubspot.com/oauth/authorize?client_id=28e34ca8-2b36-44ea-8b71-e1150c080ee4&amp;amp;scope=contacts&amp;amp;redirect_uri=https://www.playtimepottery.net&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and the fields for my POST to&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://api.hubapi.com/oauth/v1/token" target="_blank"&gt;https://api.hubapi.com/oauth/v1/token&lt;/A&gt;, with a header of &lt;STRONG&gt;Content-Type&lt;/STRONG&gt; set to &lt;STRONG&gt;x-www-form-urlencoded&lt;/STRONG&gt;:&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;grant_type:authorization_code
client_id:28e34ca8-2b36-44ea-8b71-e1150c080ee4
client_secret:XXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXX
redirect_uri:https://wwww.playtimepottery.net
code:a1e3f309-335d-4c91-b721-862319d37ffa&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;I got a successful response and was given a refresh and access token.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;By the way, I would probably remove your screenshot that shows your client secret and ID. Those things can be used by others who come across this forum and authenitcate your app to other portals for free.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Feb 2019 20:32:21 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Problem-to-get-a-token-with-a-HubSpot-Marketing-Professional/m-p/254976#M22600</guid>
      <dc:creator>cbarley</dc:creator>
      <dc:date>2019-02-22T20:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: Problem to get a token with a HubSpot Marketing Professional</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Problem-to-get-a-token-with-a-HubSpot-Marketing-Professional/m-p/254996#M22605</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/11385"&gt;@cbarley&lt;/a&gt;, I&amp;nbsp;identified that there is a problem with my user.&amp;nbsp; I created another user as SuperAdmin&amp;nbsp;and worked!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Angelo&lt;/P&gt;</description>
      <pubDate>Fri, 22 Feb 2019 21:36:55 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Problem-to-get-a-token-with-a-HubSpot-Marketing-Professional/m-p/254996#M22605</guid>
      <dc:creator>angelopublio</dc:creator>
      <dc:date>2019-02-22T21:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: Problem to get a token with a HubSpot Marketing Professional</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Problem-to-get-a-token-with-a-HubSpot-Marketing-Professional/m-p/255010#M22607</link>
      <description>&lt;P&gt;Got it! Glad you were able to get things to work &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Feb 2019 22:04:45 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Problem-to-get-a-token-with-a-HubSpot-Marketing-Professional/m-p/255010#M22607</guid>
      <dc:creator>cbarley</dc:creator>
      <dc:date>2019-02-22T22:04:45Z</dc:date>
    </item>
  </channel>
</rss>

