@@ -164,7 +164,7 @@ def blog_following(self, blogname, **kwargs):
164164 """
165165 url = "/v2/blog/{}/following" .format (blogname )
166166 return self .send_api_request ("get" , url , kwargs , ['limit' , 'offset' ])
167-
167+
168168 @validate_blogname
169169 def followers (self , blogname , ** kwargs ):
170170 """
@@ -488,6 +488,23 @@ def edit_post(self, blogname, **kwargs):
488488 valid_options = ['id' ] + self ._post_valid_options (kwargs .get ('type' , None ))
489489 return self .send_api_request ('post' , url , kwargs , valid_options )
490490
491+ @validate_blogname
492+ def notes (self , blogname , id , ** kwargs ):
493+ """
494+ Gets the notes
495+
496+ :param blogname: a string, the url of the blog that houses the post
497+ :param id: a string, the id of the post.
498+ :param mode: a string. Undocumented. Automatically added by tumblr but it's use is not yet known.
499+ :param before_timestamp: a string, retreives data before this timestamp
500+
501+ :returns: a dict created from the JSON response
502+ """
503+ url = "/v2/blog/{}/notes" .format (blogname )
504+ valid_options = ["id" , "mode" , "before_timestamp" ]
505+ kwargs .update ({"id" :id })
506+ return self .send_api_request ('get' , url , kwargs , valid_options )
507+
491508 # Parameters valid for /post, /post/edit, and /post/reblog.
492509 def _post_valid_options (self , post_type = None ):
493510 # These options are always valid
0 commit comments