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.

Download a zip file from the server

  1. Call sco-shortcuts:
    https://example.com/api/xml?action=sco-shortcuts
    
  2. Extract any domain-name value from the response:
    http://example.com
    
  3. Call sco-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.

  4. Parse the response for the 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>
    
  5. Construct the download URL, for example:
    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).



Take a survey


 

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