<?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 Accessing Secure Content on ArcGIS Online from a Javascript App in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/accessing-secure-content-on-arcgis-online-from-a/m-p/305079#M1508</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have created a JS Web Application that is consuming data from ArcGIS Online via a webmap.&amp;nbsp; I am trying to add a function to the app that would allow a user to export data as a shapefile or csv.&amp;nbsp; Because ArcGIS Online does not have the ability to use geoprocessing services that leaves me with the REST API Export Item operation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Even though my data is shared with Everyone, I still need credentials to perform the export operation.&amp;nbsp; I have registered my app with AGOL and have an App ID and App Secret.&amp;nbsp; However, when I call the REST API Generate Token operation and receive a token using the App ID and App Secret, I receive and error saying that I do not have permission to perform the Export operation if I provide that token.&amp;nbsp; I have successfully done it using a token from logging in with my own username and password, but I do not want to store my username and password in the app for it to log in.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I associate my app with the content it would need to export?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 May 2013 14:25:41 GMT</pubDate>
    <dc:creator>BrianBeck</dc:creator>
    <dc:date>2013-05-22T14:25:41Z</dc:date>
    <item>
      <title>Accessing Secure Content on ArcGIS Online from a Javascript App</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/accessing-secure-content-on-arcgis-online-from-a/m-p/305079#M1508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have created a JS Web Application that is consuming data from ArcGIS Online via a webmap.&amp;nbsp; I am trying to add a function to the app that would allow a user to export data as a shapefile or csv.&amp;nbsp; Because ArcGIS Online does not have the ability to use geoprocessing services that leaves me with the REST API Export Item operation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Even though my data is shared with Everyone, I still need credentials to perform the export operation.&amp;nbsp; I have registered my app with AGOL and have an App ID and App Secret.&amp;nbsp; However, when I call the REST API Generate Token operation and receive a token using the App ID and App Secret, I receive and error saying that I do not have permission to perform the Export operation if I provide that token.&amp;nbsp; I have successfully done it using a token from logging in with my own username and password, but I do not want to store my username and password in the app for it to log in.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I associate my app with the content it would need to export?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 May 2013 14:25:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/accessing-secure-content-on-arcgis-online-from-a/m-p/305079#M1508</guid>
      <dc:creator>BrianBeck</dc:creator>
      <dc:date>2013-05-22T14:25:41Z</dc:date>
    </item>
  </channel>
</rss>

