<?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: Rest url not accepting token= query string parameter. in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/rest-url-not-accepting-token-query-string/m-p/1334910#M54891</link>
    <description>&lt;P&gt;Hello and thanks for the info&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/2690"&gt;@MiguelParedes&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm actually already able to successfully generate a token with the generateToken POST request.&lt;/P&gt;&lt;P&gt;Where I'm having problems is with a subsequent GET request to retrieve a feature layer from a feature service. Something about how the GET request is constructed is not in the format that the server is expecting.&lt;/P&gt;</description>
    <pubDate>Wed, 04 Oct 2023 13:33:42 GMT</pubDate>
    <dc:creator>DonaldPike</dc:creator>
    <dc:date>2023-10-04T13:33:42Z</dc:date>
    <item>
      <title>Rest url not accepting token= query string parameter.</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/rest-url-not-accepting-token-query-string/m-p/1334784#M54883</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I'm trying to test out retrieving a feature layer using the REST api. I have code that issues a /generateToken POST request that successfully returns a token, but then when I issue a subsequent GET request with&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;?token=&amp;lt;token returned from generateToken&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I gat an error message of "Invalid token".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is a screenshot of the GET request in Postman (I used a token that was generated seconds before issuing the GET request).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot on 2023-10-03 at 14-57-20.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/82251i4C7408F4E0FFFDF6/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot on 2023-10-03 at 14-57-20.png" alt="Screenshot on 2023-10-03 at 14-57-20.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Here's the format of the url that I'm using to try to retrieve the feature layer (I'm not 100% certain that the url is correct):&lt;BR /&gt;&lt;A href="https://services7.arcgis.com/9eZEJPkTbLUNpjCU/arcgis/rest/services/&amp;lt;Name" target="_blank" rel="noopener"&gt;https://services7.arcgis.com/XXYYXXYYZZ/arcgis/rest/services/Name_&lt;/A&gt;of_feature_Layer/FeatureServer?token=xxxxxxxxxxxx&lt;/P&gt;</description>
      <pubDate>Tue, 03 Oct 2023 23:19:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/rest-url-not-accepting-token-query-string/m-p/1334784#M54883</guid>
      <dc:creator>DonaldPike</dc:creator>
      <dc:date>2023-10-03T23:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: Rest url not accepting token= query string parameter.</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/rest-url-not-accepting-token-query-string/m-p/1334851#M54887</link>
      <description>&lt;P&gt;Greetings&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/332920"&gt;@DonaldPike&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Have a look at the article from our friends from Esri Australia titled &lt;A href="https://esriaustraliatechblog.wordpress.com/2022/09/01/faq-how-do-i-generate-an-authentication-token-in-arcgis-online-for-accessing-secured-resources/" target="_blank" rel="noopener"&gt;FAQ: How do I generate a token in ArcGIS Online for accessing secure resources?&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Hope that helps.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2023 09:15:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/rest-url-not-accepting-token-query-string/m-p/1334851#M54887</guid>
      <dc:creator>MiguelParedes</dc:creator>
      <dc:date>2023-10-04T09:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: Rest url not accepting token= query string parameter.</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/rest-url-not-accepting-token-query-string/m-p/1334910#M54891</link>
      <description>&lt;P&gt;Hello and thanks for the info&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/2690"&gt;@MiguelParedes&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm actually already able to successfully generate a token with the generateToken POST request.&lt;/P&gt;&lt;P&gt;Where I'm having problems is with a subsequent GET request to retrieve a feature layer from a feature service. Something about how the GET request is constructed is not in the format that the server is expecting.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2023 13:33:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/rest-url-not-accepting-token-query-string/m-p/1334910#M54891</guid>
      <dc:creator>DonaldPike</dc:creator>
      <dc:date>2023-10-04T13:33:42Z</dc:date>
    </item>
  </channel>
</rss>

