rename function and return a collection of note instances.
@@ -259,13 +259,13 @@ class Client(object):
return [Note.from_json(n) for n in response.json()['notes']]
- def get_revisions(self, referent):
+ def get_references(self, referent):
"""Returns a list of revisions for a note."""
response = requests.get(self.reference_url, params = {"referent" : referent}, headers = self.headers)
response = self.__handle_response(response)
- return response.json()['references']
+ return [Note.from_json(n) for n in response.json()['references']]
def get_tags(self, id = None, invitation = None, forum = None):
