From 8ee9679c07676c5d3e71b79050bbeeafc046b703 Mon Sep 17 00:00:00 2001 From: Naman Aggarwal Date: Mon, 24 Aug 2020 10:44:05 +0530 Subject: [PATCH] Fixed docs --- docs/api.rst | 6 ++++++ docs/user/example.rst | 14 +++++++------- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/docs/api.rst b/docs/api.rst index b6551e9..c0e39c5 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -88,6 +88,12 @@ Currency .. autoclass:: splitwise.currency.Currency :members: +Comment +^^^^^^^ + +.. autoclass:: splitwise.comment.Comment + :members: + Errors ------ diff --git a/docs/user/example.rst b/docs/user/example.rst index f3d4307..2ec5e26 100644 --- a/docs/user/example.rst +++ b/docs/user/example.rst @@ -174,8 +174,8 @@ Fetching categories .. _exComments: -Fetching Comments with id -^^^^^^^^^^^^^^^^^^^^^^^^^ +Fetching comments +^^^^^^^^^^^^^^^^^ >>> comments = s.getComments(982430660) >>> print(comments[0].getContent()) @@ -186,8 +186,8 @@ Fetching Comments with id Creating a new comment ^^^^^^^^^^^^^^^^^^^^^^ - >>>expense_id = 982430660 - >>>content = "Test for create comment" - >>>content, errors = s.createComment(expense_id,content) - >>>print("content:", content.getContent()) - content: Test for create comment + >>> expense_id = 982430660 + >>> content = "Test for create comment" + >>> comment, errors = s.createComment(expense_id,content) + >>> print("content:", comment.getContent()) + content: Test for create comment