<?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 get files list of a shared folder using rest api? in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-get-files-list-of-a-shared-folder-using-rest-api/m-p/8485#M3864</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I have Alfresco Community 5.2.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to get a filelist from some shared folder.&lt;/P&gt;&lt;P&gt;It is need for external application on&amp;nbsp;android which I am developing.&lt;/P&gt;&lt;P&gt;The Application should get a filelist of folder, parse it and get files with names and descriptions, then user can download one or several of them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to use rest api.&lt;/P&gt;&lt;P&gt;I found out how authorize and get ticket by get-request.&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://my-site.com/alfresco/service/api/login?u=my_user_name&amp;amp;pw=my_password" rel="nofollow noopener noreferrer" target="_blank"&gt;https://my-site.com/alfresco/service/api/login?u=my_user_name&amp;amp;pw=my_password&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I need to get a filelist from shared folder (it's name is test).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;get-request work fine if i logged in via browser.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="https://" rel="nofollow noopener noreferrer" target="_blank"&gt;https://&lt;/A&gt;&lt;SPAN&gt;my-site.com/&lt;/SPAN&gt;share/service/components/documentlibrary/data/doclist/all/node/alfresco/company/shared/test&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And i get the content of this folder (filesm descriptions and etc)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if I logged out from alfresco and try get-request with alf_ticket, it doesn't work. ticket is valid&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://" rel="nofollow noopener noreferrer" target="_blank"&gt;https://&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN&gt;my-site.com/&lt;/SPAN&gt;&lt;SPAN&gt;share/service/components/documentlibrary/data/doclist/all/node/alfresco/company/shared/test&lt;/SPAN&gt;?alf_ticket=TICKET_33e6923d0a527f34a2c5a276f915fcde8feafe77&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I receives an error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt; "status": {&lt;BR /&gt; "code": 500,&lt;BR /&gt; "name": "Internal Error",&lt;BR /&gt; "description": "An error inside the HTTP server which prevented it from fulfilling the request."&lt;BR /&gt; },&lt;BR /&gt; "message": "09310019 Failed to execute script 'classpath*:alfresco/site-webscripts/org/alfresco/components/documentlibrary/data/surf-doclist.get.js': 09310018 09310019 Failed to run action evaluator: 09310018 User ID must exist and cannot be guest.",&lt;BR /&gt; "exception": "",&lt;BR /&gt; "callstack": [],&lt;BR /&gt; "server": "Spring WebScripts - v6.5.0 schema 1,000",&lt;BR /&gt; "time": "Oct 31, 2017 4:42:10 PM"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if ticket is invalid, it's ok,&amp;nbsp;I&amp;nbsp;receive status 401&amp;nbsp;Unauthorized&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Oct 2017 13:43:02 GMT</pubDate>
    <dc:creator>dmitriyp</dc:creator>
    <dc:date>2017-10-31T13:43:02Z</dc:date>
    <item>
      <title>How to get files list of a shared folder using rest api?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-get-files-list-of-a-shared-folder-using-rest-api/m-p/8485#M3864</link>
      <description>Hi!I have Alfresco Community 5.2.0I need to get a filelist from some shared folder.It is need for external application on&amp;nbsp;android which I am developing.The Application should get a filelist of folder, parse it and get files with names and descriptions, then user can download one or several of them.I</description>
      <pubDate>Tue, 31 Oct 2017 13:43:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-get-files-list-of-a-shared-folder-using-rest-api/m-p/8485#M3864</guid>
      <dc:creator>dmitriyp</dc:creator>
      <dc:date>2017-10-31T13:43:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to get files list of a shared folder using rest api?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-get-files-list-of-a-shared-folder-using-rest-api/m-p/8486#M3865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To get folder content use&amp;nbsp;&lt;/P&gt;&lt;P&gt;ip&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;ort/alfresco/service/slingshot/doclib2/doclist/all/node/workspace/SpacesStore/ + {folder id} + ?alf_ticket=TICKET_nnn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2017 12:03:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-get-files-list-of-a-shared-folder-using-rest-api/m-p/8486#M3865</guid>
      <dc:creator>dmitriyp</dc:creator>
      <dc:date>2017-11-07T12:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to get files list of a shared folder using rest api?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-get-files-list-of-a-shared-folder-using-rest-api/m-p/8487#M3866</link>
      <description>&lt;P&gt;Thank you abhinav for your reply.&lt;/P&gt;&lt;P&gt;I registered the 2 files desc.xml and the html.ftl files and refreshed the Wev Scripts Extensions (.js not yet involved)&lt;/P&gt;&lt;P&gt;&lt;A href="http://127.0.0.1:8080/alfresco/service/abhinav/getFolderInfo?siteShortName=test&amp;amp;skipCount=0&amp;amp;maxCount=1000" rel="nofollow noopener noreferrer" target="_blank"&gt;http://127.0.0.1:8080/alfresco/service/abhinav/getFolderInfo?siteShortName=&lt;STRONG&gt;test&lt;/STRONG&gt;&amp;amp;skipCount=0&amp;amp;maxCount=100&lt;/A&gt;&lt;/P&gt;&lt;P&gt;What will be the SiteShortName in my setup (here you used 'test')&lt;BR /&gt;site ? in Alfresco terminilogy ?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 20 Oct 2020 20:41:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-get-files-list-of-a-shared-folder-using-rest-api/m-p/8487#M3866</guid>
      <dc:creator>Kiwi</dc:creator>
      <dc:date>2020-10-20T20:41:59Z</dc:date>
    </item>
  </channel>
</rss>

