tumblr / pytumblr

A Python Tumblr API v2 Client
Apache License 2.0
723 stars 196 forks source link

client.posts: Malformed JSON #33

Closed zolointo closed 10 years ago

zolointo commented 10 years ago

I'm attempting to use client.posts() to retrieve a pseudo-mirror of my tumblr in order to echo them over to an associated twitter account.

My TumblrRestClient appears to be set up properly as client.info() or client.posts('metroidvanias') returns results.

As soon as I attempt to send a limit or offset, I get:

print(client.posts('metroidvanias', {'limit': 1}))
{'meta': {'status': 500, 'msg': 'Server Error'}, 'response': {'error': 'Malformed JSON or HTML was returned.'}}

Super python newb, so here are some other details:

Any idea of where I'm going wrong with this?

Thanks, and best regards, -Matt

seejohnrun commented 10 years ago

I think the call you're looking for is:

client.posts('seejohnrun', limit=1)

Hope this helps - let me know if you're running into more issues!

zolointo commented 10 years ago

Doh! Should have caught that. Thanks very much.

seejohnrun commented 10 years ago

Any time