On Oct 8, 5:26 pm, Peter Ondruska <peter.ondru...@gmail.com> wrote:
> I have this code:
>
> class Blog(webapp.RequestHandler):
> def __init__(self):
> categories = ["lang:cs", "news"]
> self.client = gdata.blogger.client.BloggerClient()
> self.query = gdata.blogger.client.Query(categories=categories,
> max_results=10, strict=True, order_by="updated")
> def get(self):
> feed = self.client.GetPosts(blog_id="7297489546734971425",
> query=self.query)
> for entry in feed.entry:
> print entry.title.text.encode("utf-8")
>
> But it fails to retrieve posts with this error:
>
> Traceback (most recent call last):
> File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
> GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
> google/appengine/ext/webapp/__init__.py", line 511, in __call__
> handler.get(*groups)
> File "/Users/ondruska/Documents/tenant-check/gd.py", line 36, in get
> feed = self.client.GetPosts(blog_id="7297489546734971425",
> query=self.query)
> File "/Users/ondruska/Documents/tenant-check/gdata/blogger/
> client.py", line 65, in get_posts
> desired_class=desired_class, query=query, **kwargs)
> File "/Users/ondruska/Documents/tenant-check/gdata/client.py", line
> 635, in get_feed
> **kwargs)
> File "/Users/ondruska/Documents/tenant-check/gdata/client.py", line
> 320, in request
> RequestError)
> RequestError: Server responded with: 400, Invalid query
> parameters:categories
>
> This is using gdata python client 2.0.12. Similar code in Java with
> gdata java client works fine. Anybody having similar problems?
>
> Thanks,
>
> Peter
--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.
No comments:
Post a Comment