Reply   |   Start a new discussion topic
Developer Forum » GUID query
Started by Private User on 10/16/2012
Displaying all 2 messages
Private User
10/16/2012 at 20:41
Is there any way to get the profile id based on the GUID? I want to allow the user to specify the focus profile, but it is unlikely they will know the profile id. The GUID is easy enough to see in the url and I could even parse the URL if they wanted to paste it in and grab the GUID, but that doesn't help me get the profile id as far as I can tell. How do I get the profile ID if I have the GUID?
Private User
10/17/2012 at 14:09
https://www.geni.com/api/profile-g<guid> will give you the API profile (and the API Id),
i.e https://www.geni.com/api/profile-g5685693775440034593?fields=id,name,profile_url will return the name and ID of yourself.

The API profile itself points back to the web profile in the profile_url value.
rails-1a-000