<?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 Login to API then Poll in ArcGIS GeoEvent Server Questions</title>
    <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/login-to-api-then-poll/m-p/573667#M2525</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to use the "Poll and External Website for JSON" connector in GeoEvent.&amp;nbsp; The API I plan to poll requires you to first authenticate. Outside of GeoEvent, I have to first post a JSON with username/password to api/export/login. The API returns raw text "true" as a response when authenticated. Next, I have to post another JSON with search parameters to api/export/export. Any advice how to implement&amp;nbsp;that&amp;nbsp;in GeoEvent? I'm currently running version 10.3.1. Thanks very much in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Oct 2018 15:27:53 GMT</pubDate>
    <dc:creator>MattFancher1</dc:creator>
    <dc:date>2018-10-02T15:27:53Z</dc:date>
    <item>
      <title>Login to API then Poll</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/login-to-api-then-poll/m-p/573667#M2525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to use the "Poll and External Website for JSON" connector in GeoEvent.&amp;nbsp; The API I plan to poll requires you to first authenticate. Outside of GeoEvent, I have to first post a JSON with username/password to api/export/login. The API returns raw text "true" as a response when authenticated. Next, I have to post another JSON with search parameters to api/export/export. Any advice how to implement&amp;nbsp;that&amp;nbsp;in GeoEvent? I'm currently running version 10.3.1. Thanks very much in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2018 15:27:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/login-to-api-then-poll/m-p/573667#M2525</guid>
      <dc:creator>MattFancher1</dc:creator>
      <dc:date>2018-10-02T15:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: Login to API then Poll</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/login-to-api-then-poll/m-p/573668#M2526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/154085"&gt;Matt Fancher&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the surface, GeoEvent is capable of passing credentials to authenticate against a certain endpoint. This can either be done through a GET request where the parameters for credentials/token are passed within the URL itself or through a POST where the headers for authentication are specified in one of the input connector's properties. I am unsure if there is a means to send one request, receive the response, and then send another through the connector.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have a means of accessing the endpoint you need in one&amp;nbsp;fell&amp;nbsp;swoop, to where you can bypass the authentication or somehow include it in a single request?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2018 16:29:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/login-to-api-then-poll/m-p/573668#M2526</guid>
      <dc:creator>DanielCota1</dc:creator>
      <dc:date>2018-10-11T16:29:20Z</dc:date>
    </item>
    <item>
      <title>Re: Login to API then Poll</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/login-to-api-then-poll/m-p/573669#M2527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel. Sorry for the slow response. Unfortunately no, the API requires me to first authenticate, then post a separate request in order to access data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2018 16:41:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/login-to-api-then-poll/m-p/573669#M2527</guid>
      <dc:creator>MattFancher1</dc:creator>
      <dc:date>2018-10-24T16:41:01Z</dc:date>
    </item>
  </channel>
</rss>

