• Join - It's Free

How do you format an "Event" POST for birth, death, etc?

Started by Private User on Monday, August 11, 2014
Problem with this page?

Participants:

  • Private User
    Geni Pro

Related Projects:

Showing all 2 posts

I don't see an example of how to format an Event (http://www.geni.com/platform/developer/help/api?path=event). Might someone be able to provide a URI example of what an Update http://www.geni.com/platform/developer/help/api?path=profile%2Fupdate would look like with an update for birth date or location?

Initially, I thought I would be submitting the POST in JSON, just as it is returned to me, but it looks like it's formatted using URL encoding (based on the first_name example). But I haven't been able to figure out how to structure the URL for an Event using the API explorer.

I think I might have figured it... with JQuery, I'm doing $.param()
So this should work:
/update?first_name=Pierre&death%5Blocation%5D%5Bcity%5D=Quebec&death%5Blocation%5D%5Bcounty%5D=Communaut%C3%A9-Urbaine-de-Qu%C3%A9bec&death%5Blocation%5D%5Bstate%5D=Quebec&death%5Blocation%5D%5Bcountry%5D=Canada&burial%5Blocation%5D%5Bcity%5D=Quebec&burial%5Blocation%5D%5Bcounty%5D=Communaut%C3%A9-Urbaine-de-Qu%C3%A9bec&burial%5Blocation%5D%5Bstate%5D=Quebec&burial%5Blocation%5D%5Bcountry%5D=Canada

Showing all 2 posts

Create a free account or login to participate in this discussion