Skip to content

Commit

Permalink
Fixed docs
Browse files Browse the repository at this point in the history
  • Loading branch information
namaggarwal committed Aug 24, 2020
1 parent 6fa9712 commit 8ee9679
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
6 changes: 6 additions & 0 deletions docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,12 @@ Currency
.. autoclass:: splitwise.currency.Currency
:members:

Comment
^^^^^^^

.. autoclass:: splitwise.comment.Comment
:members:


Errors
------
Expand Down
14 changes: 7 additions & 7 deletions docs/user/example.rst
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,8 @@ Fetching categories

.. _exComments:

Fetching Comments with id
^^^^^^^^^^^^^^^^^^^^^^^^^
Fetching comments
^^^^^^^^^^^^^^^^^

>>> comments = s.getComments(982430660)
>>> print(comments[0].getContent())
Expand All @@ -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

0 comments on commit 8ee9679

Please sign in to comment.