<?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: Erro script renovação token API Google Analytics (unsupported_grand_type) in Brasil</title>
    <link>https://community.qlik.com/t5/Brasil/Erro-script-renova%C3%A7%C3%A3o-token-API-Google-Analytics-unsupported/m-p/1452815#M53375</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Obrigado pelo auxílio Clever, mas ainda não funcionou.&lt;/P&gt;&lt;P&gt;Continua apresentando o erro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;access_token &amp;lt;&amp;lt; RestConnectorMasterTableQVX_UNEXPECTED_END_OF_DATA: HTTP protocol error 401 (Unauthorized):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'Bearer' authentication schema provided by the web-service is not supported or your credentials are not valid.Try using the 'Force basic authentication' connection option if the server accepts the OAuth authentication schema.&lt;/P&gt;&lt;P&gt;access_token:&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; SQL SELECT&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; "token_type",&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; "access_token",&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; "expires_in"&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; FROM JSON (wrap on) "root" &lt;/P&gt;&lt;P&gt;&amp;nbsp; WITH CONNECTION (&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; BODY "..."&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Nov 2017 16:26:14 GMT</pubDate>
    <dc:creator>fonmarcelo</dc:creator>
    <dc:date>2017-11-27T16:26:14Z</dc:date>
    <item>
      <title>Erro script renovação token API Google Analytics (unsupported_grand_type)</title>
      <link>https://community.qlik.com/t5/Brasil/Erro-script-renova%C3%A7%C3%A3o-token-API-Google-Analytics-unsupported/m-p/1452811#M53371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Boa tarde Pessoal!&lt;/P&gt;&lt;P&gt;Estou tentando utilizar (e adaptar) um script no QlikView para renovação de token para utilização da API do Google Analytics, se puderam me auxiliar, desde já agradeço.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;O Script base foi extraído daqui: &lt;A href="https://community.qlik.com/thread/194023"&gt;REST CONNECTOR  locate the Authorization token&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capturar.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/184524_Capturar.PNG" style="height: 484px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Após a execução, retorna o seguinte erro:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capturar2.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/184525_Capturar2.png" style="height: 440px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alguém já passou por isso?&lt;/P&gt;&lt;P&gt;Como poderia resolver?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Obrigado.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Nov 2017 19:00:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Erro-script-renova%C3%A7%C3%A3o-token-API-Google-Analytics-unsupported/m-p/1452811#M53371</guid>
      <dc:creator>fonmarcelo</dc:creator>
      <dc:date>2017-11-24T19:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: Erro script renovação token API Google Analytics (unsupported_grand_type)</title>
      <link>https://community.qlik.com/t5/Brasil/Erro-script-renova%C3%A7%C3%A3o-token-API-Google-Analytics-unsupported/m-p/1452812#M53372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;O jeito que você está montando sua requisição está errrado, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aparentemente você deu um duplo control-v&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Segue corrigido para você testar&lt;/P&gt;&lt;P&gt;&amp;nbsp; LET vRequestBody ='';&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; LET &lt;SPAN style="font-size: 13.3333px;"&gt;vRequestBody&lt;/SPAN&gt; = vRequestBody &amp;amp; 'grant_type=refresh_token';&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; LET &lt;SPAN style="font-size: 13.3333px;"&gt;vRequestBody&lt;/SPAN&gt; = vRequestBody &amp;amp; '&amp;amp;client_id=' &amp;amp; '$(vClient_id)';&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; LET &lt;SPAN style="font-size: 13.3333px;"&gt;vRequestBody&lt;/SPAN&gt; = vRequestBody &amp;amp; '&amp;amp;client_secret=' &amp;amp; '$(vClient_secret)';&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; LET &lt;SPAN style="font-size: 13.3333px;"&gt;vRequestBody&lt;/SPAN&gt; = vRequestBody &amp;amp; '&amp;amp;refresh_token=' &amp;amp; '$(vRefresh_token)';&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CUSTOM CONNECT TO "Provider=QvRestConnector.exe;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; url=&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://www.googleapis.com/oauth2/v4/token;" rel="nofollow" target="_blank"&gt;https://www.googleapis.com/oauth2/v4/token;&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; timeout=30;method=POST;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; autoDetectResponseType=0;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; keyGenerationStrategy=0;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; useWindowsAuthentication=false;useCertificate=No;certificateStoreLocation=CurrentUser;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; certificateStoreName=My;&lt;/P&gt;&lt;P&gt;&amp;nbsp; queryHeaders=Content-Type%2application/x-www-form-urlencoded;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; PaginationType=None;XUserId=aFXRKfA;XPassword=MbCPJHC;"; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; access_token:&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; SQL SELECT&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; "token_type",&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; "access_token",&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; "expires_in"&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; FROM JSON (wrap on) "root"&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; WITH CONNECTION (&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; BODY "$(vRequestBody)"&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; );&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Nov 2017 09:53:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Erro-script-renova%C3%A7%C3%A3o-token-API-Google-Analytics-unsupported/m-p/1452812#M53372</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2017-11-27T09:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: Erro script renovação token API Google Analytics (unsupported_grand_type)</title>
      <link>https://community.qlik.com/t5/Brasil/Erro-script-renova%C3%A7%C3%A3o-token-API-Google-Analytics-unsupported/m-p/1452813#M53373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oi Clever!&lt;/P&gt;&lt;P&gt;Verdade, não tinha me atentado.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dessa vez, com suas alterações, deu o seguinte erro:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capturar.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/184680_Capturar.PNG" style="height: 247px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Descrição do erro: "Bearer' authentication schema provided by the web-service is not supported or your credentials are not valid.Try using the 'Force basic authentication' connection option if the server accepts the OAuth authentication schema".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seria algum erro no método de autenticação?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Nov 2017 10:01:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Erro-script-renova%C3%A7%C3%A3o-token-API-Google-Analytics-unsupported/m-p/1452813#M53373</guid>
      <dc:creator>fonmarcelo</dc:creator>
      <dc:date>2017-11-27T10:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: Erro script renovação token API Google Analytics (unsupported_grand_type)</title>
      <link>https://community.qlik.com/t5/Brasil/Erro-script-renova%C3%A7%C3%A3o-token-API-Google-Analytics-unsupported/m-p/1452814#M53374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;"A mensagem parece ser bem direta sobre autenticação,&amp;nbsp; &lt;/P&gt;&lt;P&gt;Tente usar isso:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/194023"&gt;REST CONNECTOR  locate the Authorization token&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;Ahh, Try and use a &lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Custom&lt;/STRONG&gt; OAuth endpoint instead of &lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Google&lt;/STRONG&gt; in OAuth2 Playground when setting up custom credentials. That will support a bearer token for the credentials.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;In the OAuth 2.0 configuration, select OAuth endpoints: &lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Custom&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;Fill in the following values:&lt;UL style="padding: 0 0 0 22px; font-weight: inherit; font-style: inherit; font-family: inherit; list-style-type: square;"&gt;&lt;LI style="margin-top: 0.5ex; margin-bottom: 0.5ex; font-weight: inherit; font-style: inherit; font-family: inherit; list-style-type: inherit;"&gt;Authorization endpoint: &lt;A class="jive-link-external-small" href="https://accounts.google.com/o/oauth2/auth" rel="nofollow" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #266fc8;" target="_blank"&gt;https://accounts.google.com/o/oauth2/auth&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;Token endpoint: &lt;A class="jive-link-external-small" href="https://www.googleapis.com/oauth2/v4/token" rel="nofollow" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #266fc8;" target="_blank"&gt;https://www.googleapis.com/oauth2/v4/token&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;OAuth Client ID: &amp;lt;the Client ID from Google Developer Console)&lt;/LI&gt;&lt;LI&gt;OAuth Client secret: &amp;lt;the Client secret for the OAuth client, found in Developer Console)&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;Press &lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Close&lt;/STRONG&gt; to save Oauth 2.0 configuration&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;See if that works"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Nov 2017 10:15:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Erro-script-renova%C3%A7%C3%A3o-token-API-Google-Analytics-unsupported/m-p/1452814#M53374</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2017-11-27T10:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: Erro script renovação token API Google Analytics (unsupported_grand_type)</title>
      <link>https://community.qlik.com/t5/Brasil/Erro-script-renova%C3%A7%C3%A3o-token-API-Google-Analytics-unsupported/m-p/1452815#M53375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Obrigado pelo auxílio Clever, mas ainda não funcionou.&lt;/P&gt;&lt;P&gt;Continua apresentando o erro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;access_token &amp;lt;&amp;lt; RestConnectorMasterTableQVX_UNEXPECTED_END_OF_DATA: HTTP protocol error 401 (Unauthorized):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'Bearer' authentication schema provided by the web-service is not supported or your credentials are not valid.Try using the 'Force basic authentication' connection option if the server accepts the OAuth authentication schema.&lt;/P&gt;&lt;P&gt;access_token:&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; SQL SELECT&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; "token_type",&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; "access_token",&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; "expires_in"&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; FROM JSON (wrap on) "root" &lt;/P&gt;&lt;P&gt;&amp;nbsp; WITH CONNECTION (&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; BODY "..."&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Nov 2017 16:26:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Erro-script-renova%C3%A7%C3%A3o-token-API-Google-Analytics-unsupported/m-p/1452815#M53375</guid>
      <dc:creator>fonmarcelo</dc:creator>
      <dc:date>2017-11-27T16:26:14Z</dc:date>
    </item>
  </channel>
</rss>

