Skip to content

Instantly share code, notes, and snippets.

@jkariscodes
Created May 31, 2019 05:31
Show Gist options
  • Select an option

  • Save jkariscodes/2142c9c1e5066e9e8057160e25aa310e to your computer and use it in GitHub Desktop.

Select an option

Save jkariscodes/2142c9c1e5066e9e8057160e25aa310e to your computer and use it in GitHub Desktop.
CMIS repository test
from cmislib import CmisClient
# testing cmis by getting repository information
def repository():
client = CmisClient('http://localhost:8081/alfresco/api/-default-/public/cmis/versions/1.1/atom',
'<user>', '<password>')
repo = client.defaultRepository
repo_info = repo.info
# response = requests.get('http://localhost:8081/alfresco/api/-default-/public/cmis/')
for k,v in repo_info.items():
print "%s:%s" % (k,v)
if __name__ == "__main__":
repository()
@jkariscodes
Copy link
Copy Markdown
Author

Test against alfresco. Results as shown
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment