<?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>idea Allow Dynamic URL Parameters for feeds to incorporate updated timestamp requests in ArcGIS Velocity Ideas</title>
    <link>https://community.esri.com/t5/arcgis-velocity-ideas/allow-dynamic-url-parameters-for-feeds-to/idi-p/1570666</link>
    <description>&lt;P&gt;I am working with a peculiar API setup, where the company has designed their API to require a start and end time with the request, with a 6 hour limit. What this means right now is that for a feed I want to hit every couple of minutes, I have to write that into the URL - and it will error once that start time has lapsed 6 hours or if I do not include the start time. It also conveniently includes all the data in the last 6 hours unless I include an end time.&lt;/P&gt;&lt;P&gt;My idea is that the url (or URL parameters) when building a feed (in this particular case is the HTTP Poller) would allow me to create a dynamic url with some arcade so I can basically change the url parameters automatically at each scheduled reoccurring hit.&lt;/P&gt;&lt;P&gt;So I can say something like.... ?start_time={Now()}&amp;amp;end_time={Now()-2minutes)}&lt;/P&gt;</description>
    <pubDate>Fri, 20 Dec 2024 17:20:25 GMT</pubDate>
    <dc:creator>Teresa_Blader</dc:creator>
    <dc:date>2024-12-20T17:20:25Z</dc:date>
    <item>
      <title>Allow Dynamic URL Parameters for feeds to incorporate updated timestamp requests</title>
      <link>https://community.esri.com/t5/arcgis-velocity-ideas/allow-dynamic-url-parameters-for-feeds-to/idi-p/1570666</link>
      <description>&lt;P&gt;I am working with a peculiar API setup, where the company has designed their API to require a start and end time with the request, with a 6 hour limit. What this means right now is that for a feed I want to hit every couple of minutes, I have to write that into the URL - and it will error once that start time has lapsed 6 hours or if I do not include the start time. It also conveniently includes all the data in the last 6 hours unless I include an end time.&lt;/P&gt;&lt;P&gt;My idea is that the url (or URL parameters) when building a feed (in this particular case is the HTTP Poller) would allow me to create a dynamic url with some arcade so I can basically change the url parameters automatically at each scheduled reoccurring hit.&lt;/P&gt;&lt;P&gt;So I can say something like.... ?start_time={Now()}&amp;amp;end_time={Now()-2minutes)}&lt;/P&gt;</description>
      <pubDate>Fri, 20 Dec 2024 17:20:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-velocity-ideas/allow-dynamic-url-parameters-for-feeds-to/idi-p/1570666</guid>
      <dc:creator>Teresa_Blader</dc:creator>
      <dc:date>2024-12-20T17:20:25Z</dc:date>
    </item>
    <item>
      <title>Re: Allow Dynamic URL Parameters for feeds to incorporate updated timestamp requests</title>
      <link>https://community.esri.com/t5/arcgis-velocity-ideas/allow-dynamic-url-parameters-for-feeds-to/idc-p/1570973#M23</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/425496"&gt;@Teresa_Blader&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Currently, the HTTP Poller feed type allows us to us to use the following global variables in the URL parameters, Custom headers, or the POST body parameters:&lt;/P&gt;&lt;P&gt;$feed.FeedStartTime—The time the feed was started.&lt;BR /&gt;$feed.FeedScheduledStartTime—The time the next recurrence of the feed is scheduled.&lt;BR /&gt;$feed.FeedLastScheduledStartTime—The time the last recurrence of the feed was scheduled.&lt;/P&gt;&lt;P&gt;In your example, you've provided the URL parameters "start_time={Now()}&amp;amp;end_time={Now()-2minutes)}".&lt;/P&gt;&lt;P&gt;If we set the HTTP Poller feed to run every 2 minutes and set URL parameters start_time =&amp;nbsp;$feed.FeedScheduledStartTime and end_time = $feed.FeedLastScheduledStartTime, ArcGIS Velocity would replace those global variables with epoch timestamp values.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In we configured the feed to run every 2 minutes with these URL parameters and the feed ran at "&lt;SPAN&gt;December 23, 2024 10:24:00.000 AM GMT", the previous run time would be "December 23, 2024 10:22:00.000 AM GMT", so ArcGIS Velocity would make a request to &lt;A href="https://httppoller.example/?start_time=1734967440000&amp;amp;end_time=1734967320000" target="_blank"&gt;https://httppoller.example/?start_time=1734967440000&amp;amp;end_time=1734967320000&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;If this workflow does not work for your API, please send me a direct message with an email address I can contact you at to get more details. Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2024 15:51:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-velocity-ideas/allow-dynamic-url-parameters-for-feeds-to/idc-p/1570973#M23</guid>
      <dc:creator>Nicole_Phaneuf</dc:creator>
      <dc:date>2024-12-23T15:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: Allow Dynamic URL Parameters for feeds to incorporate updated timestamp requests</title>
      <link>https://community.esri.com/t5/arcgis-velocity-ideas/allow-dynamic-url-parameters-for-feeds-to/idc-p/1570981#M24</link>
      <description>&lt;P&gt;Wow!! Well that's exciting.&lt;/P&gt;&lt;P&gt;The API is using a non epoch timestamp, but I've set the global variables data format as yyyy-MM-dd'T'HH:mm:ss'Z'&lt;/P&gt;&lt;P&gt;It appears to be working... so the global variables either controls the timestamp format in the url or the API can use epoch?? ... not sure!&lt;/P&gt;&lt;P&gt;&lt;A href="https://api.eu.platform.xweather.com/measurements/xyzxyzxyzxyz?start_time=2024-12-23T15:55:00Z&amp;amp;end_time=2024-12-23T15:56:00Z" target="_blank"&gt;https://api.eu.platform.xweather.com/measurements/xyzxyzxyzxyz?start_time=2024-12-23T15:55:00Z&amp;amp;end_time=2024-12-23T15:56:00Z&lt;/A&gt;&lt;/P&gt;&lt;P&gt;URL parameters:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;{"start_time":"$feed.FeedLastScheduledStartTime","end_time":"$feed.FeedScheduledStartTime"}&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2024 16:31:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-velocity-ideas/allow-dynamic-url-parameters-for-feeds-to/idc-p/1570981#M24</guid>
      <dc:creator>Teresa_Blader</dc:creator>
      <dc:date>2024-12-23T16:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: Allow Dynamic URL Parameters for feeds to incorporate updated timestamp requests</title>
      <link>https://community.esri.com/t5/arcgis-velocity-ideas/allow-dynamic-url-parameters-for-feeds-to/idc-p/1571003#M25</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/425496"&gt;@Teresa_Blader&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Glad to hear that this is working! Yes, both the HTTP Poller and Samsara feed types have the ability to convert the global variables to a custom datetime format using the optional "Global Variables" parameter.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2024 18:25:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-velocity-ideas/allow-dynamic-url-parameters-for-feeds-to/idc-p/1571003#M25</guid>
      <dc:creator>Nicole_Phaneuf</dc:creator>
      <dc:date>2024-12-23T18:25:30Z</dc:date>
    </item>
  </channel>
</rss>

