<?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 How to set-up REST-API Link in script / what changed...? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-set-up-REST-API-Link-in-script-what-changed/m-p/352836#M60223</link>
    <description>&lt;P&gt;Dear.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I made a try to import data from a cloud via a Rest-API script - and it worked - so I continued with the table and "modified it, wrote specs, made graphs etc.".&lt;/P&gt;
&lt;P&gt;Now, I re-opened the same script and in the log-file there is some error which I don´t unterstand in the log-file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please have a look in the png file. When I copy the https link into a browser, it works and shows data.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could it be that JMP doesn´t read the rest-api link because there are some &amp;lt; or [ or { which are missing in the link itself?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Question.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/29719i3938DA1063809D47/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Question.png" alt="Question.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/1184"&gt;@eromeu&lt;/a&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 10 Jun 2023 23:25:14 GMT</pubDate>
    <dc:creator>Ole_Luehn</dc:creator>
    <dc:date>2023-06-10T23:25:14Z</dc:date>
    <item>
      <title>How to set-up REST-API Link in script / what changed...?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-set-up-REST-API-Link-in-script-what-changed/m-p/352836#M60223</link>
      <description>&lt;P&gt;Dear.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I made a try to import data from a cloud via a Rest-API script - and it worked - so I continued with the table and "modified it, wrote specs, made graphs etc.".&lt;/P&gt;
&lt;P&gt;Now, I re-opened the same script and in the log-file there is some error which I don´t unterstand in the log-file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please have a look in the png file. When I copy the https link into a browser, it works and shows data.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could it be that JMP doesn´t read the rest-api link because there are some &amp;lt; or [ or { which are missing in the link itself?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Question.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/29719i3938DA1063809D47/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Question.png" alt="Question.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/1184"&gt;@eromeu&lt;/a&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:25:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-set-up-REST-API-Link-in-script-what-changed/m-p/352836#M60223</guid>
      <dc:creator>Ole_Luehn</dc:creator>
      <dc:date>2023-06-10T23:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to set-up REST-API Link in script / what changed...?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-set-up-REST-API-Link-in-script-what-changed/m-p/352858#M60225</link>
      <description>&lt;P&gt;The qm_data is HTML, not JSON. The &amp;lt;doctype&amp;gt; is the header on an HTML file. The JSON importer is producing the message because it does not understand HTML.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The JSON may be embedded in the HTML, or there may be a better rest api to get just the JSON data without an extra wrapper.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ideally the rest api will return bare JSON. If necessary, you can write some sort of pattern matching/regex/substring JSL to dig the JSON out of the HTML.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;use&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;write(qm_data); // if really long, use: write(left(qm_data,1000) );&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;and look at the log to see what you received.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2021 12:42:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-set-up-REST-API-Link-in-script-what-changed/m-p/352858#M60225</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2021-01-26T12:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to set-up REST-API Link in script / what changed...?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-set-up-REST-API-Link-in-script-what-changed/m-p/352868#M60233</link>
      <description>Hi Craige.&lt;BR /&gt;Wonderful. Thank you very much!&lt;BR /&gt;Why is it so easy...;-)...&lt;BR /&gt;&lt;BR /&gt;Best wishes. and thank you.&lt;BR /&gt;Ole</description>
      <pubDate>Tue, 26 Jan 2021 14:30:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-set-up-REST-API-Link-in-script-what-changed/m-p/352868#M60233</guid>
      <dc:creator>Ole_Luehn</dc:creator>
      <dc:date>2021-01-26T14:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to set-up REST-API Link in script / what changed...?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-set-up-REST-API-Link-in-script-what-changed/m-p/352869#M60234</link>
      <description>&lt;P&gt;Welcome! I also sent a request asking for the error message to be improved.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2021 14:38:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-set-up-REST-API-Link-in-script-what-changed/m-p/352869#M60234</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2021-01-26T14:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to set-up REST-API Link in script / what changed...?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-set-up-REST-API-Link-in-script-what-changed/m-p/354921#M60480</link>
      <description>&lt;P&gt;...many things are easy for&amp;nbsp;&lt;SPAN&gt;Craige &amp;nbsp;; )&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2021 02:29:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-set-up-REST-API-Link-in-script-what-changed/m-p/354921#M60480</guid>
      <dc:creator>Byron_JMP</dc:creator>
      <dc:date>2021-02-02T02:29:32Z</dc:date>
    </item>
  </channel>
</rss>

