Project url to project # mapping

Начал Randy Stebbing Пятница, 17 Декабрь 2010

Участники:

Проекты:

Показаны все 7 сообщений
17/12/2010 в 8:31 до полудня

The docs show this for an example of a query for a project:
https://www.geni.com/api/project-6

And after examining the returned data I can see that it returns info for this particular project:
http://www.geni.com/projects/Magna-Carta-Sureties-and-Witnesses

Can I go the other way around and provide it with the normal URL instead of "project-6"? How do I know what project number a particular project is?

17/12/2010 в 10:05 до полудня

"project-6" is the project ID.

If you view the XML variant you will see an easy way to build the project URL:
https://www.geni.com/api/project-6.xml

Since they have started addressing projects by project ID instead of name we might have an opening on what we have complained a lot about: We cannot rename projects or have two projects with identical names.

17/12/2010 в 12:20 после полудня

I don't think that quite answers the question, Bjorn. For example, what's the project ID for http://www.geni.com/projects/Earls-of-Arundel ?

17/12/2010 в 12:50 после полудня

I thought we was discussing the API.

17/12/2010 в 1:04 после полудня

Anyhow - in your case the project-ID is listed in the html page as well: project-124

It is just a question about picking up the value in the page.

17/12/2010 в 4:02 после полудня

Sorry if I came off harsh there! I just had a similar question. It looks like the project ID isn't visible directly on the page, but if you scan the HTML you can find the project ID in the source.

17/12/2010 в 4:14 после полудня

Correct, and since we are in an API discussion I expected that you was talking about processing the data with a program and not your eyes ;-)

Have a nice weekend!

Показаны все 7 сообщений

Зарегистрируйтесь или войдите в систему чтобы участвовать в этом обсуждении