You
can download zip files from Adobe Connect 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
-
Call
sco-shortcuts
:
https://example.com/api/xml?action=sco-shortcuts
-
Extract any
domain-name
value from the response:
http://example.com
-
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.
-
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>
-
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
).
|
|
|