API requests

Started by Private User on Wednesday, October 17, 2012
Problem with this page?

Participants:

  • Private User
    Geni Pro
  • Private User
    Geni Pro

Related Projects:

Showing all 7 posts
Private User
10/17/2012 at 8:30 AM

Some API requests...

* I'd like to see an option in the Profile API to get information on projects. (i.e. https://www.geni.com/api/profile/projects). In particular, I want to know if a profile is a profile in a project. But I could also see where people might want to see if a profile is a follower or collaborator of a project.
* If I have a GUID, I'd like to be able to get the Profile ID.
* Suggest including the Profile ID in the User query (https://www.geni.com/api/user). While I don't have a use yet, curator flag might be another one for the User query.

Private User
10/17/2012 at 8:33 AM

Note that I am aware that you can query the projects for these things, but that requires knowing the project in advance. I want to query a profile and know what projects it is involved with, having no prior knowledge about any particular project.

Private User
10/17/2012 at 11:19 AM

You can only get the list of projects you are following yourself https://www.geni.com/api/user/followed-projects

To get what you want you can download the regular web pages and extract the list from there.

Private User
10/17/2012 at 12:02 PM

A screen scrape may work in the short term, but I'd certainly rather see it added to the API.

Private User
10/17/2012 at 2:21 PM

Nah, it have worked for years now ;-)

In C# you just need a few codelines for that. Use WebRequest to download the page as a string and feed it through a "simple" LINQ statement set up by using the HTML Agility Pack to build the list you want.

Private User
10/17/2012 at 8:33 PM

That doesn't make it right.. haha Sort of defeats the purpose of an API if you have to scrape to get it. Anyway.. does the access token of a server based application work when scraping such pages if the profiles are private or unauthenticated public profiles? Not sure I would get the same result.. would have to test it.

Private User
10/17/2012 at 10:38 PM

I have not tried by only using the access token, I require login access as well in those cases.
There are still an error in the API causing that your extended family group access to other's private profile is not valid at the API level.

Showing all 7 posts

Create a free account or login to participate in this discussion