Permalink
Browse files

working POST to blog

  • Loading branch information...
1 parent c343e91 commit d4d8bf5c15a3f07f80998e531c458de5a271ffe4 @reiven committed Jan 19, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 pynientos/pynilib.py
@@ -58,6 +58,7 @@ def api_setting(self):
blogs_fresh /v1/blogs?feature=fresh get
blogs_user /v1/blogs?feature=user get
blog_detail /v1/blogs/ get
+ post_blog /v1/blogs/ post
"""
return map(lambda x: re.split("\s+", x.strip()),
re.split("\n", api_str.strip()))
@@ -95,8 +96,7 @@ def get(self, path, params=""):
def post(self, path, params={}):
return self.parse_response(self.client.request(
self.site + path,
- "POST",
- self.encode_post_params(params)
+ "POST", body=self.encode_post_params(params)
))
def encode_params(self, params={}):

0 comments on commit d4d8bf5

Please sign in to comment.