<?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: Upload a file to REST API in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Upload-a-file-to-REST-API/m-p/282786#M57521</link>
    <description>Sounds like you need PROC HTTP, that's fairly similar to what you may be familiar with in Java/etc.  &lt;BR /&gt;</description>
    <pubDate>Thu, 07 Jul 2016 20:21:00 GMT</pubDate>
    <dc:creator>snoopy369</dc:creator>
    <dc:date>2016-07-07T20:21:00Z</dc:date>
    <item>
      <title>Upload a file to REST API</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Upload-a-file-to-REST-API/m-p/279282#M56269</link>
      <description>&lt;P&gt;Hi, I need to deliver below functionalities in SAS by making calls to the REST API.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Upload a file- It will require 4 &amp;nbsp;inputs which are,&amp;nbsp;&lt;SPAN&gt;PROJECT-ID, DATA-LOCATION, local file path of the dataset along with the authentication token.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The ProjectID and Data-location is to identify exactly where the file will get upload on the API and it serves as the target location.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. To check if user have permission on this folder(identified by the PROJECT-ID): It will have 3 inputs-username,list of users, authentication token. This is a GET request which looks something like this in JAVA-&lt;/P&gt;
&lt;P&gt;HttpGet request = new HttpGet(MLMPService.getInstance().buildURI("/user/" + username + "/permission/item/" + this.getID(), ticket).build());&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. To check whether the file has been successfully upload. This again will be a GET request on the API.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please help me to get this implemented in SAS.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2016 11:31:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Upload-a-file-to-REST-API/m-p/279282#M56269</guid>
      <dc:creator>Aditi24</dc:creator>
      <dc:date>2016-06-22T11:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: Upload a file to REST API</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Upload-a-file-to-REST-API/m-p/282786#M57521</link>
      <description>Sounds like you need PROC HTTP, that's fairly similar to what you may be familiar with in Java/etc.  &lt;BR /&gt;</description>
      <pubDate>Thu, 07 Jul 2016 20:21:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Upload-a-file-to-REST-API/m-p/282786#M57521</guid>
      <dc:creator>snoopy369</dc:creator>
      <dc:date>2016-07-07T20:21:00Z</dc:date>
    </item>
  </channel>
</rss>

