Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Nextcloud Apps API

This package is meant to add a python interface for popular nextcloud apps. Current supported are:

  • Notes
  • Bookmarks

Notes:

from nextcloud_apps_api import NotesAsyncClient

nc = NotesAsyncClient(host="host-address", username="my-username", password="my-username")
notes = nc.get_notes(category="Journal", exclude=["content", "favorite"])
new_note = nc.post_note(title="Hello", content="World", category="Journal")
updated = nc.put_note(new_note['notes']['id'], title="Oops", content="Better content")
deleted = nc.delete_note(new_note['notes']['id'])

Bookmarks:

from nextcloud_apps_api import BookmarkAsyncClient

bc = BookmarkAsyncClient(host="host-address", username="my-username", password="my-password")
bookmarks = bc.get_bookmarks(tags=['python'])
new_mark = bc.post_bookmark("https://www.example.com", title="Example", description="Only a test.", tags=['python'])
updated = bc.put_bookmark(new_mark['bookmark']['id'], title="A much better title")
deleted = bc.delete_bookmark(new_mark['bookmark']['id'])

About

Python interface for APIs of popular Nextcloud Apps.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages