<?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: AGOL Token String Length in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/agol-token-string-length/m-p/224754#M1132</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Even with f=json I still get this:&lt;/P&gt;&lt;DIV title="data"&gt; &lt;/DIV&gt;&lt;DIV&gt;{"token":"MYemaA7SAJJKcBjIeiGvyyvzoOlp06Q.","expires":1541711897609,"ssl":true&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;I'm using this response outside of python, so I don't have that option. I just want to only grab only the token without the quotes. Maybe regex or google sheets? Other ideas?&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;But if the string length doesn't change for the token, then I can use a substring method that is hardcoded with static start and end parameters&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Nov 2018 19:21:12 GMT</pubDate>
    <dc:creator>joerodmey</dc:creator>
    <dc:date>2018-11-08T19:21:12Z</dc:date>
    <item>
      <title>AGOL Token String Length</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/agol-token-string-length/m-p/224752#M1130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a fixed string length to an AGOL token or does it vary every time generateToken is called via REST?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right now I'm using&amp;nbsp;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fwww.arcgis.com%2Fsharing%2Frest%2FgenerateToken%3Ff%3Dpjson%26username%3DMYUSERNAME%26password%3DMYPASSWORD%26referer%3Dhttp%3A%2F%2Fwww.arcgis.com%26expiration%3D120" rel="nofollow" target="_blank"&gt;https://www.arcgis.com/sharing/rest/generateToken?f=pjson&amp;amp;username=MYUSERNAME&amp;amp;password=MYPASSWORD&amp;amp;referer=http://www.arcgis.com&amp;amp;expiration=120&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If not can the token, ssl, and expiry field and quotes be removed from the response?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2018 16:34:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/agol-token-string-length/m-p/224752#M1130</guid>
      <dc:creator>joerodmey</dc:creator>
      <dc:date>2018-11-08T16:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: AGOL Token String Length</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/agol-token-string-length/m-p/224753#M1131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The AGOL&amp;nbsp;token is a text string of consistent length.&amp;nbsp; I would use the python json module for extracting the token and other items in the response.&amp;nbsp; If you are using another method to extract the token, it will be quoted string&amp;nbsp;following the word token.&amp;nbsp; If you use f=json, you will get json without formatting which may make it easier to parse.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2018 18:51:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/agol-token-string-length/m-p/224753#M1131</guid>
      <dc:creator>RandyBurton</dc:creator>
      <dc:date>2018-11-08T18:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: AGOL Token String Length</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/agol-token-string-length/m-p/224754#M1132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Even with f=json I still get this:&lt;/P&gt;&lt;DIV title="data"&gt; &lt;/DIV&gt;&lt;DIV&gt;{"token":"MYemaA7SAJJKcBjIeiGvyyvzoOlp06Q.","expires":1541711897609,"ssl":true&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;I'm using this response outside of python, so I don't have that option. I just want to only grab only the token without the quotes. Maybe regex or google sheets? Other ideas?&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;But if the string length doesn't change for the token, then I can use a substring method that is hardcoded with static start and end parameters&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2018 19:21:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/agol-token-string-length/m-p/224754#M1132</guid>
      <dc:creator>joerodmey</dc:creator>
      <dc:date>2018-11-08T19:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: AGOL Token String Length</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/agol-token-string-length/m-p/224755#M1133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you use an expression like mid(string, start, end)?&amp;nbsp; Or find the third " and select to the fourth ".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2018 19:31:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/agol-token-string-length/m-p/224755#M1133</guid>
      <dc:creator>RandyBurton</dc:creator>
      <dc:date>2018-11-08T19:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: AGOL Token String Length</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/agol-token-string-length/m-p/224756#M1134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using Integromat which has numerous string functions including substring. If the token string length doesn't change, I should be able to use that function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2018 19:49:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/agol-token-string-length/m-p/224756#M1134</guid>
      <dc:creator>joerodmey</dc:creator>
      <dc:date>2018-11-08T19:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: AGOL Token String Length</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/agol-token-string-length/m-p/224757#M1135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;While the json returned should be consistent in format, you may wish to search for "token":" and start your substring after its location.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2018 19:52:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/agol-token-string-length/m-p/224757#M1135</guid>
      <dc:creator>RandyBurton</dc:creator>
      <dc:date>2018-11-08T19:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: AGOL Token String Length</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/agol-token-string-length/m-p/1018626#M3702</link>
      <description>&lt;P&gt;I'm hoping to rekindle this thread. Was there a solution for this? I'm having exactly the same issue whereby I want to extract the token itself, and none of the text either side of it in the response.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2021 10:05:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/agol-token-string-length/m-p/1018626#M3702</guid>
      <dc:creator>RonParis</dc:creator>
      <dc:date>2021-01-21T10:05:23Z</dc:date>
    </item>
  </channel>
</rss>

