Skip to content
Python interface to ACS4
Python Shell
Find file
Pull request Compare This branch is 3 commits behind internetarchive:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
.gitignore
README
README_bss
__init__.py
acs4.py
acs4cmd.py
bss.py
sample_permissions.xml
sample_use.sh

README

A basic API for interacting with the Adobe Content Server.

Sample use (command line)

SERVER=your.server.here
PW=your_password
DIST=distributor_uuid
RSRC=resource_uuid

# upload file
python acs4cmd.py $SERVER upload sample.epub --password=$PW
# ... this returns some JSON, which includes the newly assigned resource ID
# ... or (for large files)
python acs4cmd.py $SERVER upload --datapath=/server/path/sample.epub --password=$PW

# 'distribute' it, as a loanable, returnable book
python acs4cmd.py $SERVER request DistributionRights create --password=$PW --distributionType=loan --returnable=true --available=1 --permissions=sample_permissions.xml --resource=$RSRC --distributor=$DIST

# 'mint' a download url
python acs4cmd.py $SERVER mint --resource=$RSRC --distributor=$DIST



'bss.py' is a server-side CGI for peeking under the ACS4 hood.  See
README_bss for a bit more.
Something went wrong with that request. Please try again.