Using Connect Enterprise Web Services |
|||
| Basics > Download files | |||
You can download zip files from Connect Enterprise to a user's local computer. A zip file is a SCO. To download it, you need to construct a download URL to the zip file, which looks like this:
http://server-domain/url-path/output/url-path.zip?download=zip
You probably already know the domain name of your server (such as example.com). If you do not, you can get it by calling sco-shortcuts.
sco-shortcuts:https://example.com/api/xml?action=sco-shortcuts
domain-name value from the response:http://example.com
co-info with the sco-id of the zip file:https://example.com/api/xml?action=sco-info&sco-id=2006258747
The SCO is the entire zip file.
url-path element:
<sco account-id="624520" disabled="" display-seq="0" folder-id="624522"
icon="folder" lang="en" max-retries="" sco-id="2006258747"
source-sco-id="" type="folder" version="1">
<date-created>2006-04-18T10:21:47.020-07:00</date-created>
<date-modified>2006-04-18T10:21:47.020-07:00</date-modified>
<name>joy@acme.com</name>
<url-path>/f124567890/</url-path>
</sco>
https://example.com/quiz/output/quiz.zip?download=zip
Be sure to remove the trailing slash from the url-path value before adding .zip to it (so you have a value like /quiz.zip, not /quiz/.zip).
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/breeze/6/xml_api/03_per10.htm