mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-22 03:31:02 +02:00
Restructuring API a little
This commit is contained in:
parent
9a47915d05
commit
c49568dd34
5 changed files with 191 additions and 108 deletions
|
|
@ -14,9 +14,9 @@ default_user = "trustgraph"
|
|||
|
||||
def show_docs(url, user):
|
||||
|
||||
api = Api(url)
|
||||
api = Api(url).library()
|
||||
|
||||
docs = api.library_get_documents(user=user)
|
||||
docs = api.get_documents(user=user)
|
||||
|
||||
if len(docs) == 0:
|
||||
print("No documents.")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue