"page" global parameters to return next set of results from API query

Started by Randy Stebbing on Thursday, December 23, 2010
Problem with this page?

Participants:

Related Projects:

Showing all 4 posts

Can we get a fuller explanation with some examples of how to use the "page" global parameter that is mentioned here:
http://dev.geni.com/

I tried what I thought would be the correct syntax but I'm getting some errors with syntax like this: https://www.geni.com/api/project-237/profiles.xml?page=2

Some examples of how to use the next and previous variants would be nice. Also how do you know if your at the final page?

--Randy Stebbing

All,

There was a bug (now fixed as of Jan 11, 2011) that correctly returns the subsequent pages of returned project profiles.

For example this now works: https://www.geni.com/api/project-237/profiles.xml?page=2 where previously, before the bug fix, it returned non-usable results.

Thanks to the geni engineers for getting out a fix.
--Randy

PS. If any one is interested I've written a python script that returns a alphabetical surname sorted list (with birth and death years) of all profiles associated with a particular project. I still have to fix some unicode problems but for many projects the script already works great.

Randy,

We're trying to do something similar to what you're doing...

I'd like to display all of the surnames/lastnames of ancestors across all trees in a given project. Is there an easy way to get this from Geni?

Also, is it possible to modify your code to use it for searching? I'd like to offer the option of searching for say "Stephen Burke" and return all of the "Stephen Burke"s in all trees in a project (with a link to their profile pages).

Rick

Randy Stebbing I'd also be interested in reviewing your script.

Showing all 4 posts

Create a free account or login to participate in this discussion