def __init__(self, conv_id, client):
"""
- :param conversation_id: id of the post and not the guid!
- :type conversation_id: str
+ :param conv_id: id of the post and not the guid!
+ :type conv_id: str
:param client: client object used to authenticate
:type client: client.Client
self.conv_id = conv_id
def get_data(self):
- """ returns the plain json data
+ """ returns the plain json data representing conversation.
"""
r = self._client.session.get(self._client.pod +
'/conversations/' +
.. note::
Remember that you need to have access to the post.
+ Remember that you also need to be logged in.
"""
raise Exception('wrong status code: ' + str(r.status_code))
def like(self):
- """This function likes a post
+ """This function likes a post.
+ It abstracts the 'Like' functionality.
:returns: dict -- json formatted like object.