<?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 REST CONNECTOR  locate the Authorization token in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-CONNECTOR-locate-the-Authorization-token/m-p/950208#M1284</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to connect to google analytics by following this guide &lt;A href="http://help.qlik.com/Connectors/en-US/connectors/#../Subsystems/REST_connector_help/Content/1.0/Create-REST-connection/Connection-examples.htm" title="http://help.qlik.com/Connectors/en-US/connectors/#../Subsystems/REST_connector_help/Content/1.0/Create-REST-connection/Connection-examples.htm" target="_blank"&gt;http://help.qlik.com/Connectors/en-US/connectors/#../Subsystems/REST_connector_help/Content/1.0/Create-REST-connection/C…&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But I get stuck on step 7. Open&lt;SPAN class="Apple-converted-space"&gt; &lt;/SPAN&gt;&lt;SPAN class="ui_item_external" style="font-weight: bold;"&gt;Developer tools&lt;/SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt; &lt;/SPAN&gt;in&lt;SPAN class="Apple-converted-space"&gt; &lt;/SPAN&gt;Google Chrome&lt;SPAN class="Apple-converted-space"&gt; &lt;/SPAN&gt;and locate the&lt;SPAN class="Apple-converted-space"&gt; &lt;/SPAN&gt;Authorization&lt;SPAN class="Apple-converted-space"&gt; &lt;/SPAN&gt;token&lt;/P&gt;&lt;P&gt;How do i locate the token?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Dec 2021 13:58:50 GMT</pubDate>
    <dc:creator />
    <dc:date>2021-12-21T13:58:50Z</dc:date>
    <item>
      <title>REST CONNECTOR  locate the Authorization token</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-CONNECTOR-locate-the-Authorization-token/m-p/950208#M1284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to connect to google analytics by following this guide &lt;A href="http://help.qlik.com/Connectors/en-US/connectors/#../Subsystems/REST_connector_help/Content/1.0/Create-REST-connection/Connection-examples.htm" title="http://help.qlik.com/Connectors/en-US/connectors/#../Subsystems/REST_connector_help/Content/1.0/Create-REST-connection/Connection-examples.htm" target="_blank"&gt;http://help.qlik.com/Connectors/en-US/connectors/#../Subsystems/REST_connector_help/Content/1.0/Create-REST-connection/C…&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But I get stuck on step 7. Open&lt;SPAN class="Apple-converted-space"&gt; &lt;/SPAN&gt;&lt;SPAN class="ui_item_external" style="font-weight: bold;"&gt;Developer tools&lt;/SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt; &lt;/SPAN&gt;in&lt;SPAN class="Apple-converted-space"&gt; &lt;/SPAN&gt;Google Chrome&lt;SPAN class="Apple-converted-space"&gt; &lt;/SPAN&gt;and locate the&lt;SPAN class="Apple-converted-space"&gt; &lt;/SPAN&gt;Authorization&lt;SPAN class="Apple-converted-space"&gt; &lt;/SPAN&gt;token&lt;/P&gt;&lt;P&gt;How do i locate the token?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Dec 2021 13:58:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-CONNECTOR-locate-the-Authorization-token/m-p/950208#M1284</guid>
      <dc:creator />
      <dc:date>2021-12-21T13:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: REST CONNECTOR  locate the Authorization token</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-CONNECTOR-locate-the-Authorization-token/m-p/950209#M1285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which browser you are using?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Dec 2015 16:47:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-CONNECTOR-locate-the-Authorization-token/m-p/950209#M1285</guid>
      <dc:creator>hemhund2016</dc:creator>
      <dc:date>2015-12-03T16:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: REST CONNECTOR  locate the Authorization token</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-CONNECTOR-locate-the-Authorization-token/m-p/950210#M1286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;‌chrome and firefox. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Dec 2015 19:14:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-CONNECTOR-locate-the-Authorization-token/m-p/950210#M1286</guid>
      <dc:creator />
      <dc:date>2015-12-03T19:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: REST CONNECTOR  locate the Authorization token</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-CONNECTOR-locate-the-Authorization-token/m-p/950211#M1287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the exact same problem. Can anyone please answer to this question?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Dec 2015 09:02:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-CONNECTOR-locate-the-Authorization-token/m-p/950211#M1287</guid>
      <dc:creator />
      <dc:date>2015-12-21T09:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: REST CONNECTOR  locate the Authorization token</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-CONNECTOR-locate-the-Authorization-token/m-p/950212#M1288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After reading a lot of googles help on this it seems like you have to use OAuth 2. Here you get a token that are valid for a certain time and then expires.&lt;/P&gt;&lt;P&gt;The token is generated by google on request when asked for&amp;nbsp; by the client. &lt;/P&gt;&lt;P&gt;I can generate a token from the OAuth Playground but I can't get that to work using the rest connector in Qlik View.&lt;/P&gt;&lt;P&gt;Is it still possible to connect to google APIs? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jan 2016 13:42:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-CONNECTOR-locate-the-Authorization-token/m-p/950212#M1288</guid>
      <dc:creator>Maria_Halley</dc:creator>
      <dc:date>2016-01-11T13:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: REST CONNECTOR  locate the Authorization token</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-CONNECTOR-locate-the-Authorization-token/m-p/950213#M1289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Maria,&lt;/P&gt;&lt;P&gt;That's correct, you need to use OAuth2 and get an access token to access google APIs. One can use &lt;A href="https://developers.google.com/oauthplayground/" title="https://developers.google.com/oauthplayground/"&gt;OAuth 2.0 Playground&lt;/A&gt; as mentioned above to request an access token, together with a refresh token.&lt;/P&gt;&lt;P&gt;For a full understanding of he OAuth2 process there is great documentation at &lt;A href="https://developers.google.com/identity/protocols/OAuth2" title="https://developers.google.com/identity/protocols/OAuth2"&gt;Using OAuth 2.0 to Access Google APIs&amp;nbsp; |&amp;nbsp; Google Identity Platform&amp;nbsp; |&amp;nbsp; Google Developers&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, there are some challenges with some of the steps in the process when using the REST Connector, although the playground will get you started.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;One is how to deal with the refresh token. As you pointed out, the access token will expire after 3600 seconds and needs to be renewed. To request a new access token, basically a POST request needs to be sent to &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://www.googleapis.com/oauth2/v4/token" rel="nofollow"&gt;https://www.googleapis.com/oauth2/v4/token&lt;/A&gt;&lt;SPAN&gt; including:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;refresh_token&lt;/LI&gt;&lt;LI&gt;client_id&lt;/LI&gt;&lt;LI&gt;client_secret&lt;/LI&gt;&lt;LI&gt;grant_type (with value = refresh_token)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will return a new access token with an expire time:&lt;/P&gt;&lt;PRE __default_attr="xml" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14538861763359450 jive_text_macro" jivemacro_uid="_14538861763359450"&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;&amp;nbsp; "access_token":"1/fFBGRNJru1FQd44AzqT3Zg",&lt;/P&gt;
&lt;P&gt;&amp;nbsp; "expires_in":3920,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; "token_type":"Bearer",&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A script in QlikView using the REST Connector to perform the above could look like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="xml" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14538864079145023 jive_text_macro" jivemacro_uid="_14538864079145023" modifiedtitle="true"&gt;
&lt;P&gt;SET vClient_id = 'your client id';&lt;/P&gt;
&lt;P&gt;SET vClient_secret = 'your client secret';&lt;/P&gt;
&lt;P&gt;SET vRefresh_token = 'your refresh token from OAuth playground';&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;IF vTokenExpires &amp;lt;= now() THEN // if access_token expired request a new one using the refresh_token&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; LET vRequestBody ='';&lt;/P&gt;
&lt;P&gt;&amp;nbsp; LET vRequestBody = vRequestBody &amp;amp; 'grant_type=refresh_token';&lt;/P&gt;
&lt;P&gt;&amp;nbsp; LET vRequestBody = vRequestBody &amp;amp; '&amp;amp;client_id=' &amp;amp; '$(vClient_id)';&lt;/P&gt;
&lt;P&gt;&amp;nbsp; LET vRequestBody = vRequestBody &amp;amp; '&amp;amp;client_secret=' &amp;amp; '$(vClient_secret)';&lt;/P&gt;
&lt;P&gt;&amp;nbsp; LET vRequestBody = vRequestBody &amp;amp; '&amp;amp;refresh_token=' &amp;amp; '$(vRefresh_token)';&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; CUSTOM CONNECT TO "Provider=QvRestConnector.exe;&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"&gt;https://www.googleapis.com/oauth2/v4/token;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; timeout=30;method=POST;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; autoDetectResponseType=0;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; keyGenerationStrategy=0;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; useWindowsAuthentication=false;useCertificate=No;certificateStoreLocation=CurrentUser;&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;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; PaginationType=None;XUserId=IWRHaYA;XPassword=dAXccDB;";&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; access_token:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; SQL SELECT &lt;/P&gt;
&lt;P&gt;&amp;nbsp; "token_type",&lt;/P&gt;
&lt;P&gt;&amp;nbsp; "access_token",&lt;/P&gt;
&lt;P&gt;&amp;nbsp; "expires_in"&lt;/P&gt;
&lt;P&gt;&amp;nbsp; FROM JSON (wrap on) "root"&lt;/P&gt;
&lt;P&gt;&amp;nbsp; WITH CONNECTION (&lt;/P&gt;
&lt;P&gt;&amp;nbsp; BODY "$(vRequestBody)"&lt;/P&gt;
&lt;P&gt;&amp;nbsp; );&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; LET vExpiresIn = peek('expires_in',0,'access_token');&lt;/P&gt;
&lt;P&gt;&amp;nbsp; LET vAccessToken = peek('access_token',0,'access_token');&lt;/P&gt;
&lt;P&gt;&amp;nbsp; LET vTokenExpires = timestamp(now() + $(vExpiresIn)/86400);&lt;/P&gt;
&lt;P&gt;ENDIF&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;You know have a script the checks expires_in to see if the access_token is still valid, if not a new token is requested.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;According to Google documentation, the access token can be used to make calls to Google API on behalf of a user or service account. To do this the access token should be included in the request as an &lt;STRONG&gt;Authorization: Bearer&lt;/STRONG&gt; HTTP header.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;To use our refreshed access token when making calls to Google API, we need to include it in the request. This can be achieved using the WITH CONNECT statement in the SELECT statement generated by the REST CONNECTOR. As we have our access token in a variable (vAccessToken) from above, we can inject this using a script similar to:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE __default_attr="xml" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14538869241419543" jivemacro_uid="_14538869241419543"&gt;
&lt;P&gt;RestConnectorMasterTable:&lt;/P&gt;
&lt;P&gt;SQL SELECT &lt;/P&gt;
&lt;P&gt;&amp;nbsp; "kind" AS "kind_u0",&lt;/P&gt;
&lt;P&gt;&amp;nbsp; "username",&lt;/P&gt;
&lt;P&gt;&amp;nbsp; "totalResults",&lt;/P&gt;
&lt;P&gt;&amp;nbsp; "startIndex",&lt;/P&gt;
&lt;P&gt;&amp;nbsp; "itemsPerPage",&lt;/P&gt;
&lt;P&gt;&amp;nbsp; "__KEY_root",&lt;/P&gt;
&lt;P&gt;&amp;nbsp; (SELECT &lt;/P&gt;
&lt;P&gt;&amp;nbsp; "id",&lt;/P&gt;
&lt;P&gt;&amp;nbsp; "kind",&lt;/P&gt;
&lt;P&gt;&amp;nbsp; "selfLink",&lt;/P&gt;
&lt;P&gt;&amp;nbsp; "name",&lt;/P&gt;
&lt;P&gt;&amp;nbsp; "created",&lt;/P&gt;
&lt;P&gt;&amp;nbsp; "updated",&lt;/P&gt;
&lt;P&gt;&amp;nbsp; "__KEY_items",&lt;/P&gt;
&lt;P&gt;&amp;nbsp; "__FK_items",&lt;/P&gt;
&lt;P&gt;&amp;nbsp; (SELECT &lt;/P&gt;
&lt;P&gt;&amp;nbsp; "__KEY_permissions",&lt;/P&gt;
&lt;P&gt;&amp;nbsp; "__FK_permissions",&lt;/P&gt;
&lt;P&gt;&amp;nbsp; (SELECT &lt;/P&gt;
&lt;P&gt;&amp;nbsp; "@Value",&lt;/P&gt;
&lt;P&gt;&amp;nbsp; "__FK_effective"&lt;/P&gt;
&lt;P&gt;&amp;nbsp; FROM "effective" FK "__FK_effective" ArrayValueAlias "@Value")&lt;/P&gt;
&lt;P&gt;&amp;nbsp; FROM "permissions" PK "__KEY_permissions" FK "__FK_permissions"),&lt;/P&gt;
&lt;P&gt;&amp;nbsp; (SELECT &lt;/P&gt;
&lt;P&gt;&amp;nbsp; "type",&lt;/P&gt;
&lt;P&gt;&amp;nbsp; "href",&lt;/P&gt;
&lt;P&gt;&amp;nbsp; "__FK_childLink"&lt;/P&gt;
&lt;P&gt;&amp;nbsp; FROM "childLink" FK "__FK_childLink")&lt;/P&gt;
&lt;P&gt;&amp;nbsp; FROM "items" PK "__KEY_items" FK "__FK_items")&lt;/P&gt;
&lt;P&gt;FROM JSON (wrap on) "root" PK "__KEY_root"&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;WITH CONNECTION (&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; HTTPHEADER "Authorization" "Bearer $(vAccessToken)"&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Hope the above helps on how to use the access token and refresh token when connecting to Google APIs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2016 09:31:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-CONNECTOR-locate-the-Authorization-token/m-p/950213#M1289</guid>
      <dc:creator>Bjorn_Wedbratt</dc:creator>
      <dc:date>2016-01-27T09:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: REST CONNECTOR  locate the Authorization token</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-CONNECTOR-locate-the-Authorization-token/m-p/950214#M1290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great post Björn,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The custom connect approach doesn't seem to be implemented in Qlik Sense. "CONNECTs other than LIB CONNECT are not available in this script mode"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got it working in Qlik Sense, using the OAuth2 Playground before, but I wasn't able to set the parameters in the script so I could change the period I requested so I stopped trying. I needed to change the parameters manually in the connection, so using a schedule task didn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vänta på funktioner att bli implementerade är Qlik Senses användarens vardag.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2016 10:27:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-CONNECTOR-locate-the-Authorization-token/m-p/950214#M1290</guid>
      <dc:creator />
      <dc:date>2016-01-27T10:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: REST CONNECTOR  locate the Authorization token</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-CONNECTOR-locate-the-Authorization-token/m-p/950215#M1291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Legacy mode is not an option, since I am running Qlik Sense Server&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2016 10:35:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-CONNECTOR-locate-the-Authorization-token/m-p/950215#M1291</guid>
      <dc:creator />
      <dc:date>2016-01-27T10:35:28Z</dc:date>
    </item>
    <item>
      <title>Re: REST CONNECTOR  locate the Authorization token</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-CONNECTOR-locate-the-Authorization-token/m-p/950216#M1292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is Legacy mode not available on Qlik Sense server? I thought it was.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2016 10:42:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-CONNECTOR-locate-the-Authorization-token/m-p/950216#M1292</guid>
      <dc:creator>chrisbrain</dc:creator>
      <dc:date>2016-01-27T10:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: REST CONNECTOR  locate the Authorization token</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-CONNECTOR-locate-the-Authorization-token/m-p/950217#M1293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't want to enable it since the security implications. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2016 10:47:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-CONNECTOR-locate-the-Authorization-token/m-p/950217#M1293</guid>
      <dc:creator />
      <dc:date>2016-01-27T10:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: REST CONNECTOR  locate the Authorization token</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-CONNECTOR-locate-the-Authorization-token/m-p/950218#M1294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Karl,&lt;/P&gt;&lt;P&gt;Sorry about the delay in responding. I've been playing around a bit with this in Qlik Sense as well, and I managed to alter the parameters for the connection using WITH CONNECTION, in a similar way as above. This worked even in Legacy mode (which was a surprise to me).&lt;/P&gt;&lt;P&gt;There is one big hurdle though and that is when creating Data connections; the connection must be successful or you cannot save the settings. Even when pressing "Save" the connection is checked and if it fails settings won't be saved.&lt;/P&gt;&lt;P&gt;When working with APIs you cannot hardcode parameters in the URL when setting up the connection, basically because not all parameters may be known at this stage.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To get around this I simply created two connections using the REST Connector, one for GET (LIB: Google Analytics API) and one for POST (LIB: Google Authorization) and used an open JSON server at jsonplaceholder.typicode.com wheen creating the connections (you cannot alter the Method GET/POST using WITH CONNECTION). I then followed the same process as above, and used WITH CONNECTION to alter the LIB settings and pointed the URL to the entry-points for Google APIs. Here's a small example script for Sense:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14544874521512676" jivemacro_uid="_14544874521512676"&gt;
&lt;P&gt;IF vTokenExpires &amp;lt;= now() THEN&lt;/P&gt;
&lt;P&gt;&amp;nbsp; LET vRequestBody ='';&lt;/P&gt;
&lt;P&gt;&amp;nbsp; LET vRequestBody = vRequestBody &amp;amp; 'grant_type=refresh_token';&lt;/P&gt;
&lt;P&gt;&amp;nbsp; LET vRequestBody = vRequestBody &amp;amp; '&amp;amp;client_id=' &amp;amp; '$(vClient_id)';&lt;/P&gt;
&lt;P&gt;&amp;nbsp; LET vRequestBody = vRequestBody &amp;amp; '&amp;amp;client_secret=' &amp;amp; '$(vClient_secret)';&lt;/P&gt;
&lt;P&gt;&amp;nbsp; LET vRequestBody = vRequestBody &amp;amp; '&amp;amp;refresh_token=' &amp;amp; '$(vRefresh_token)';&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; LIB CONNECT TO 'Google Authorization';&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; access_token:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; SQL SELECT&lt;/P&gt;
&lt;P&gt;&amp;nbsp; "access_token",&lt;/P&gt;
&lt;P&gt;&amp;nbsp; "token_type",&lt;/P&gt;
&lt;P&gt;&amp;nbsp; "expires_in"&lt;/P&gt;
&lt;P&gt;&amp;nbsp; FROM JSON (wrap on) "root"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; WITH CONNECTION (&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; URL "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://www.googleapis.com/oauth2/v4/token" rel="nofollow"&gt;https://www.googleapis.com/oauth2/v4/token&lt;/A&gt;&lt;SPAN&gt;",&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; HTTPHEADER "Content-Type" "application/x-www-form-urlencoded",&lt;/P&gt;
&lt;P&gt;&amp;nbsp; BODY "$(vRequestBody)"&lt;/P&gt;
&lt;P&gt;&amp;nbsp; );&lt;/P&gt;
&lt;P&gt;&amp;nbsp; LET vExpiresIn = peek('expires_in',0,'access_token');&lt;/P&gt;
&lt;P&gt;&amp;nbsp; LET vAccessToken = peek('access_token',0,'access_token');&lt;/P&gt;
&lt;P&gt;&amp;nbsp; LET vTokenExpires = timestamp(now() + $(vExpiresIn)/86400);&lt;/P&gt;
&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_1454487432737972 jive_text_macro" jivemacro_uid="_1454487432737972"&gt;
&lt;P&gt;&lt;/P&gt;

&lt;/PRE&gt;
&lt;P&gt;ENDIF&amp;nbsp; &lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next step would be to dynamically render the URL to query Google Analytics, using variables. Not done here yet, so will get back to you with that part.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Feb 2016 08:20:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-CONNECTOR-locate-the-Authorization-token/m-p/950218#M1294</guid>
      <dc:creator>Bjorn_Wedbratt</dc:creator>
      <dc:date>2016-02-03T08:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: REST CONNECTOR  locate the Authorization token</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-CONNECTOR-locate-the-Authorization-token/m-p/950219#M1295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Björn,&lt;/P&gt;&lt;P&gt;Thanks for the response. This is what I have done so far.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;I have created a OAuth Client credential.&lt;/LI&gt;&lt;LI&gt;I added the playground URI to the &lt;SPAN class="p6n-form-label"&gt;Authorized redirect URIs. &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="p6n-form-label"&gt;I configured the OAuth2 playground to use own OAuth credentials and set to Offline.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="p6n-form-label"&gt;I Authorized the Analytics API&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="p6n-form-label"&gt;Created a refresh token&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I get this Error message when I try to use the refresh token in Qlik Sense.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&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;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What &lt;SPAN class="p6n-form-label"&gt;Authorized redirect URIs should I set when using this from Qlik Sense server?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Feb 2016 10:08:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-CONNECTOR-locate-the-Authorization-token/m-p/950219#M1295</guid>
      <dc:creator />
      <dc:date>2016-02-03T10:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: REST CONNECTOR  locate the Authorization token</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-CONNECTOR-locate-the-Authorization-token/m-p/950220#M1296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ahh, Try and use a &lt;STRONG&gt;Custom&lt;/STRONG&gt; OAuth endpoint instead of &lt;STRONG&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&gt;Custom&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;Fill in the following values:&lt;UL style="list-style-type: square; padding-left: 22px;"&gt;&lt;LI&gt;Authorization endpoint: &lt;A class="external-link" href="https://accounts.google.com/o/oauth2/auth" rel="nofollow" style="color: #3b73af;"&gt;https://accounts.google.com/o/oauth2/auth&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;Token endpoint: &lt;A class="external-link" href="https://www.googleapis.com/oauth2/v4/token" rel="nofollow" style="color: #3b73af;"&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&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&gt;See if that works&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Feb 2016 14:22:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-CONNECTOR-locate-the-Authorization-token/m-p/950220#M1296</guid>
      <dc:creator>Bjorn_Wedbratt</dc:creator>
      <dc:date>2016-02-03T14:22:06Z</dc:date>
    </item>
    <item>
      <title>Re: REST CONNECTOR  locate the Authorization token</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-CONNECTOR-locate-the-Authorization-token/m-p/950221#M1297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did that in point 3. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;What I missed was a simple typo. A space character got copied as the client-id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now it works.&lt;/P&gt;&lt;P&gt;I looked in the documentation but I can't find anything about WITH CONNECTION. It's a powerful command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much Björn for your time and all the help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Feb 2016 16:02:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-CONNECTOR-locate-the-Authorization-token/m-p/950221#M1297</guid>
      <dc:creator />
      <dc:date>2016-02-03T16:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: REST CONNECTOR  locate the Authorization token</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-CONNECTOR-locate-the-Authorization-token/m-p/950222#M1298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anytime, Karl and great you sorted it out (those typo's they drive you mad sometimes &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Btw, WITH CONNECTION is documented on &lt;A href="http://help.qlik.com/Connectors/en-us/connectors/#../Subsystems/REST_connector_help/Content/1.0/Load-REST-data/Select-REST-data-with-Data-load-editor.htm" title="http://help.qlik.com/Connectors/en-us/connectors/#../Subsystems/REST_connector_help/Content/1.0/Load-REST-data/Select-REST-data-with-Data-load-editor.htm"&gt;http://help.qlik.com/Connectors/en-us/connectors/#../Subsystems/REST_connector_help/Content/1.0/Load-REST-data/Select-RE…&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At least part of it, but BODY is missing as a parameter though which has been reported.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Feb 2016 16:06:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-CONNECTOR-locate-the-Authorization-token/m-p/950222#M1298</guid>
      <dc:creator>Bjorn_Wedbratt</dc:creator>
      <dc:date>2016-02-03T16:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: REST CONNECTOR  locate the Authorization token</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-CONNECTOR-locate-the-Authorization-token/m-p/950223#M1299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I gotten this far, but I having trouble pivoting the result into a straight table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14545917093624111" jivemacro_uid="_14545917093624111" modifiedtitle="true"&gt;
&lt;P&gt;SET vStartDate = '2015-01-01';&amp;nbsp; &lt;/P&gt;
&lt;P&gt;SET vEndDate = '2015-01-02';&amp;nbsp; &lt;/P&gt;
&lt;P&gt;SET vMetrics = 'ga:transactions';&amp;nbsp; &lt;/P&gt;
&lt;P&gt;SET vDimensions = 'ga:date,ga:transactionId';&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp; LET vRequestBody ='';&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp; LET vRequestBody = vRequestBody &amp;amp; 'ids=ga:XXXXXXX';&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp; LET vRequestBody = vRequestBody &amp;amp; '&amp;amp;start-date=' &amp;amp; '$(vStartDate)';&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp; LET vRequestBody = vRequestBody &amp;amp; '&amp;amp;end-date=' &amp;amp; '$(vEndDate)';&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp; LET vRequestBody = vRequestBody &amp;amp; '&amp;amp;metrics=' &amp;amp; '$(vMetrics)';&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp; LET vRequestBody = vRequestBody &amp;amp; '&amp;amp;dimensions=' &amp;amp; '$(vDimensions)';&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt; LET vURL&amp;nbsp; = '&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://www.googleapis.com/analytics/v3/data/ga" rel="nofollow"&gt;https://www.googleapis.com/analytics/v3/data/ga&lt;/A&gt;&lt;SPAN&gt;?' &amp;amp; '$(vRequestBody)';&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;LIB CONNECT TO 'Google Analytics API';&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;RestConnectorMasterTable:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;SQL SELECT&lt;/P&gt;
&lt;P&gt;&amp;nbsp; "ga:date",&lt;/P&gt;
&lt;P&gt;&amp;nbsp; "ga:transactionId"&lt;/P&gt;
&lt;P&gt;FROM JSON (wrap off) "rows"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; WITH CONNECTION (&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; URL "$(vURL)",&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; HTTPHEADER "Authorization" "Bearer $(vAccessToken)"&lt;/P&gt;
&lt;P&gt;&amp;nbsp; );&amp;nbsp; &lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;SQL SELECT&lt;/P&gt;&lt;P&gt;&amp;nbsp; "ga:date",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "ga:transactionId"&lt;/P&gt;&lt;P&gt;FROM JSON (wrap off) "rows"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This doesn't work and if I use the default load script I get it all in different tables. I thought about using Generic load but there must be an easier way to do this.&lt;/P&gt;&lt;P&gt;Do you have any snippets you can share?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2016 13:27:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-CONNECTOR-locate-the-Authorization-token/m-p/950223#M1299</guid>
      <dc:creator />
      <dc:date>2016-02-04T13:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: REST CONNECTOR  locate the Authorization token</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-CONNECTOR-locate-the-Authorization-token/m-p/950224#M1300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I am facing the same problem Auth 2.0 for linkedin. while trying to test connection i get error message HTTP protocol error 401 (Unauthorized) requested resource requires authorization.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2016 15:31:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-CONNECTOR-locate-the-Authorization-token/m-p/950224#M1300</guid>
      <dc:creator />
      <dc:date>2016-02-04T15:31:59Z</dc:date>
    </item>
    <item>
      <title>Re: REST CONNECTOR  locate the Authorization token</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-CONNECTOR-locate-the-Authorization-token/m-p/950225#M1301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got it working with a Generic load and a merge of all the tables. But it really slows down exponentially when the number of dimensions is increased. 4 works fine for a small data set, but over that it get's really slow.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2016 16:45:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-CONNECTOR-locate-the-Authorization-token/m-p/950225#M1301</guid>
      <dc:creator />
      <dc:date>2016-02-04T16:45:08Z</dc:date>
    </item>
    <item>
      <title>Re: REST CONNECTOR  locate the Authorization token</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-CONNECTOR-locate-the-Authorization-token/m-p/950226#M1302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I fixed it just by looking at the resulting table and realized I needed to load distinct __FK_rows_u0 to avoid a cross join &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14546886352735750" jivemacro_uid="_14546886352735750" modifiedtitle="true"&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;[columnHeaders]:&lt;/P&gt;
&lt;P&gt;LOAD&amp;nbsp;&amp;nbsp;&amp;nbsp; Mid([name],3) AS [name],&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RowNo() AS RowNumber&lt;/P&gt;
&lt;P&gt;RESIDENT RestConnectorMasterTable&lt;/P&gt;
&lt;P&gt;WHERE NOT IsNull([__FK_columnHeaders]);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;[rows]:&lt;/P&gt;
&lt;P&gt;LOAD&amp;nbsp;&amp;nbsp;&amp;nbsp; [@Value_u0] AS [Value],&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [__FK_rows_u0],&lt;/P&gt;
&lt;P&gt;&amp;nbsp; if([__FK_rows_u0]=peek([__FK_rows_u0]),peek(RowNumber)+1,1) as RowNumber&lt;/P&gt;
&lt;P&gt;RESIDENT RestConnectorMasterTable&lt;/P&gt;
&lt;P&gt;WHERE NOT IsNull([__FK_rows_u0]);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;LEFT JOIN (rows)&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; name,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RowNumber&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;RESIDENT columnHeaders&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;DROP TABLE RestConnectorMasterTable;&lt;/P&gt;
&lt;P&gt; DROP TABLE columnHeaders;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Flags:&lt;/P&gt;
&lt;P&gt;Generic&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [__FK_rows_u0],&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; name,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Value&lt;/P&gt;
&lt;P&gt;RESIDENT rows;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;DROP TABLE access_token;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;MergeTable:&lt;/P&gt;
&lt;P&gt;LOAD distinct [__FK_rows_u0]&lt;/P&gt;
&lt;P&gt;RESIDENT rows;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;DROP TABLE rows;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;FOR i = NoOfTables()-1 to 0 STEP -1 &lt;/P&gt;
&lt;P&gt;&amp;nbsp; LET vTable=TableName($(i)); &lt;/P&gt;
&lt;P&gt;&amp;nbsp; IF WildMatch('$(vTable)', 'Flags.*') THEN &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LEFT JOIN (MergeTable) LOAD * RESIDENT&amp;nbsp;&amp;nbsp;&amp;nbsp; [$(vTable)]; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DROP TABLE&amp;nbsp; [$(vTable)]; &lt;/P&gt;
&lt;P&gt;&amp;nbsp; ENDIF &lt;/P&gt;
&lt;P&gt;NEXT i&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;DROP FIELD [__FK_rows_u0];&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Feb 2016 16:12:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-CONNECTOR-locate-the-Authorization-token/m-p/950226#M1302</guid>
      <dc:creator />
      <dc:date>2016-02-05T16:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: REST CONNECTOR  locate the Authorization token</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-CONNECTOR-locate-the-Authorization-token/m-p/950227#M1303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a max lenth for the "with connection"?&lt;/P&gt;&lt;P&gt;WITH CONNECTION (&amp;nbsp; &lt;/P&gt;&lt;P&gt; URL "$(vURL)", &lt;/P&gt;&lt;P&gt;&amp;nbsp; HTTPHEADER&amp;nbsp; "Authorization" "Bearer $(vAccessToken)"&amp;nbsp; &lt;/P&gt;&lt;P&gt;);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is working:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;LET vURL ='&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://www.googleapis.com/analytics/v3/data/ga?ids=ga%3A98567028';" rel="nofollow"&gt;https://www.googleapis.com/analytics/v3/data/ga?ids=ga%3A98567028';&lt;/A&gt;&lt;/P&gt;&lt;P&gt;LET vURL = vURL &amp;amp; '&amp;amp;start-date='&amp;amp; date(now(),'YYYY-MM-DD')&amp;amp;'&amp;amp;end-date='&amp;amp; date(now(),'YYYY-MM-DD')&amp;amp;'&amp;amp;metrics=ga%3Atransactions';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is NOT working:&amp;nbsp; --- but it is working if is inside the connector string.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;vURL ='&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.qlik.com/" rel="nofollow"&gt;https://www.googleapis.com/analytics/v3/data/ga?ids%2ga%%3A98567028&amp;amp;start-date%22016-02-02&amp;amp;end-date%22016-02-09&amp;amp;metrics%2ga%%3AtransactionRevenue&amp;amp;dimensions%2ga%%3Amedium%%2C@ga%%3Acampaign&amp;amp;filters%2ga%%3Amedium%%3D%%3Demail&amp;amp;sort%2-ga%%3AtransactionRevenue';&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2016 11:09:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-CONNECTOR-locate-the-Authorization-token/m-p/950227#M1303</guid>
      <dc:creator>lars_plenge</dc:creator>
      <dc:date>2016-02-10T11:09:38Z</dc:date>
    </item>
  </channel>
</rss>

