<?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: generateToken for ArcGIS.com hosted service in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/generatetoken-for-arcgis-com-hosted-service/m-p/189015#M902</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The trick is to leave out the port number for ArcGIS Online features:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Root/02r30000009t000000/"&gt;http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Root/02r30000009t000000/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For my request I used the following ID:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.argcis.com/sharing/rest/generateToken" rel="nofollow" target="_blank"&gt;http://www.argcis.com/sharing/rest/generateToken&lt;/A&gt;&lt;SPAN&gt;"&amp;nbsp; and then supplied parameters for username, password, client, and referer.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This link helps too:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//0154000005qn000000"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#//0154000005qn000000&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope that helps someone with a similar problem.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Jun 2014 13:21:02 GMT</pubDate>
    <dc:creator>NilsBabel</dc:creator>
    <dc:date>2014-06-03T13:21:02Z</dc:date>
    <item>
      <title>generateToken for ArcGIS.com hosted service</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/generatetoken-for-arcgis-com-hosted-service/m-p/189014#M901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm trying to use this sample to generate a token for a hosted feature service:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#/Scripting_with_the_ArcGIS_Server_Administrator_API/0154000005r1000000/"&gt;http://resources.arcgis.com/en/help/main/10.2/index.html#/Scripting_with_the_ArcGIS_Server_Administrator_API/0154000005r1000000/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, the response sends back a 404 status.&amp;nbsp; Does anybody know what the server and port number should be for AGOL for organizations?&amp;nbsp; I've tried several variations:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A _jive_internal="true" href="https://community.esri.com/www.arcgis.com"&gt;www.arcgis.com&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;arcgis.com&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;maps.arcgis.com&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;usda.maps.arcgis.com&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;services1.arcgis.com/&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've tried several port numbers including 6080, 8080, 6443, and 443.&amp;nbsp; 443 is the only port that will actually create a connection.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For the tokenURL I have tried:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/arcgis/rest/generateToken&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/arcgis/admin/generateToken&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/arcgis/sharing/rest/generateToken&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I feel like I must just have the wrong server, url, or port number.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2014 20:31:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/generatetoken-for-arcgis-com-hosted-service/m-p/189014#M901</guid>
      <dc:creator>NilsBabel</dc:creator>
      <dc:date>2014-05-28T20:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: generateToken for ArcGIS.com hosted service</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/generatetoken-for-arcgis-com-hosted-service/m-p/189015#M902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The trick is to leave out the port number for ArcGIS Online features:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Root/02r30000009t000000/"&gt;http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Root/02r30000009t000000/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For my request I used the following ID:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.argcis.com/sharing/rest/generateToken" rel="nofollow" target="_blank"&gt;http://www.argcis.com/sharing/rest/generateToken&lt;/A&gt;&lt;SPAN&gt;"&amp;nbsp; and then supplied parameters for username, password, client, and referer.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This link helps too:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//0154000005qn000000"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#//0154000005qn000000&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope that helps someone with a similar problem.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2014 13:21:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/generatetoken-for-arcgis-com-hosted-service/m-p/189015#M902</guid>
      <dc:creator>NilsBabel</dc:creator>
      <dc:date>2014-06-03T13:21:02Z</dc:date>
    </item>
  </channel>
</rss>

