Still not sure how to use /api/blocks/all

21 views
Skip to first unread message

Brandon

unread,
Sep 28, 2011, 12:40:17 PM9/28/11
to Springpad Developers
the find_new_blocks method in the python API doesn't work, nor does it
seem to work without oauth, or even just trying to type in the URL in
my browser.

Specifically, what parameters / headers are required for this?

Brandon

unread,
Sep 28, 2011, 12:40:17 PM9/28/11
to Springpad Developers

Pete Aykroyd

unread,
Sep 28, 2011, 1:26:45 PM9/28/11
to spring...@googlegroups.com
Brandon,

You cannot type the URL into your browser because it is excepting authentication. I looked briefly at the python client and there seems to be some weirdness there. Sorry for the confusion. I will update it and let you know when it's up.

Pete

Brandon Valosek

unread,
Sep 28, 2011, 6:25:46 PM9/28/11
to spring...@googlegroups.com
Thanks Pete, I tried typing it straight into a browser for kicks and giggles after using the API and oauth to no avail (other API methods work fine for me)


is all I could find about it. Looking forward to figuring out what exactly I'm missing

Pete Aykroyd

unread,
Sep 29, 2011, 12:19:47 PM9/29/11
to spring...@googlegroups.com
Brandon,

I had a problem with the python code doing the oauth authentication, so I fixed that first. Then I was able to reproduce the problem that you found with find_new_blocks method. The problem turned out to stem from an extra '/' in the URL. That's fixed now. Also I added/fixed support for doing username/password authentication. That's supported in the cli.py file now as well. Can you do a pull from github and let me know how it goes?

Thanks,

Pete

Brandon Valosek

unread,
Oct 13, 2011, 4:33:16 AM10/13/11
to spring...@googlegroups.com
Works great sir, I appreciate the update! thanks a bunch.
Reply all
Reply to author
Forward
0 new messages