Re: How to find items in a notebook

52 views
Skip to first unread message

Pete Aykroyd

unread,
Sep 5, 2012, 10:35:04 AM9/5/12
to spring...@googlegroups.com
Hi,

The latest_blocks property is just something that we use to create the notebook cover with recent block images on it. The best way to get all of the blocks in a notebook is with the notebook query parameter.

So:

/api/users/me/blocks?notebook={notebookUuid}

Pete

On Sep 3, 2012, at 10:02 PM, montz <czr...@gmail.com> wrote:

> Hi folks,
>
> A basic question. What's the right api to get all items in a notebook/workbook?
>
> When I get the details for a uuid representing a workbook, the only thing close to items in a notebook is this:
> workbook/latest_blocks/
>
> Is this the right property to look at?

Pete Aykroyd

unread,
Sep 18, 2012, 7:42:04 PM9/18/12
to spring...@googlegroups.com
Yeah that should work the same way. As long as you are auth'd you should be able to fetch blocks from you private notebooks as well. 

On Tue, Sep 18, 2012 at 4:01 AM, montz <czr...@gmail.com> wrote:
Thanks. That works well for public workbooks :)...Now I'm stuck with fetching blocks in my private notebooks...please let me know if that's possible as well...

Pete Aykroyd

unread,
Sep 24, 2012, 12:00:44 PM9/24/12
to spring...@googlegroups.com
Can you provide a script that gives an example of the problem you're having?

On Wed, Sep 19, 2012 at 2:56 AM, montz <czr...@gmail.com> wrote:
Hmm...I am definitely authenticated, but the server returns an empty json array....I'll keep looking....If you do have pointers please let me know....I'm not sure what I'm doing wrong...

montz

unread,
Oct 13, 2012, 2:06:05 AM10/13/12
to spring...@googlegroups.com
After reading a bunch of posts I figured out what was going on....Wasn't using "me" in the url at all....was instead using the logged in user name....so that returned public notes only...

thanks all!

On Wednesday, October 3, 2012 10:46:06 PM UTC-7, montz wrote:
Hi Pete,

Here's the simplified version of what I'm doing:
 
GET http://springpad.com/api/users/me/blocks?limit=25&notebook=403e4597-7694-45c1-ac65-99e26939213a

HTTPHeaders:

User-Agent: Fiddler
X-Spring-Username: <myUserName>
X-Spring-Password: <myPassword>
X-Spring-Api-Token: <myApiToken>



This returns just 1 item although there are 5 items in the notebook. If I make the notebook public, then I can see all the items. I would expect that since I'm providing the username password that I be able to see all items in the response.

Cheers!
Reply all
Reply to author
Forward
0 new messages