Forums : Feedback Forum

API to access the data?

Greetings dfc,

I think it'd be great to do this. I'd love to hear more about what you're thinking of. Specifically:

  • What part of a our data are you interested in? The general project information (the name/description, etc..) or rather enlistments, or the lines of code, languages, developer info, etc?
  • Are you interested in read/write access? IE: the ability to add or update project information?
  • what kind of API would you prefer? A REST api? SOAP?
  • what volume of calls/day would you plan on making?

looking forward to hearing from you (or anyone else interested in this too!).

-jay

9dbaca493199c57710e53b56310f659d?&s=42&rating=pg&d=http%3a%2f%2fopenhub.net%2fanon80
Jason Allen over 9 years ago
 

I would also be interested in some sort of API to access the project data. I am currently looking into incorporating this information into our project CruiseControl.NET dashboard. (We're actually getting ready to redesign the dashboard and would really like to include this information as part of the new design.)

I think the information most interesting for us would be the developer info, source code languages, codebase history, and possibly the news section.

It would seem like the safest API to provide would only allow read access. I think allowing write access from outside the main ohloh site would lead to problems in the long run. As far as API technology, I'm not sure what the best option would be, but probably something that is callable from client-side Javascript. Since we use CruiseControl.NET, it doesn't easily provide a way to customize the functionality of the dashbaord, only the look and feel, so we wouldn't really be able to make use of web services, etc.

63d82972dbc14a2a1613630862600840?&s=42&rating=pg&d=http%3a%2f%2fopenhub.net%2fanon80
sdorman over 9 years ago
 

Thanks sdorman,

I've been toying with a feature idea for a while that might be exactly what you're looking for. Let me know if it sounds useful or not.

The idea is that we have a "glorified" badge for a project. Instead of a tiny animated GIF we currently offer, however, we would embed HTML (or XHTML) that contains the summary report information (languages, activity, commenting ratios, etc...). We could offer 2 versions - one self-styled and another totally bare of formatting so that sites could customize the look.

Would you be interested in that?

-jay

9dbaca493199c57710e53b56310f659d?&s=42&rating=pg&d=http%3a%2f%2fopenhub.net%2fanon80
Jason Allen over 9 years ago
 

Jay,

That sounds like it would work for what we want to do. That gives us the flexibility to display the data on the pages that we want and have it conform to the look and feel of the rest of the site. One suggestion would be to allow for different "badges", or at least make them configurable. I could see this being something where we want certain statistics on one page and others somewhere else.

Thanks,

Scott.

63d82972dbc14a2a1613630862600840?&s=42&rating=pg&d=http%3a%2f%2fopenhub.net%2fanon80
sdorman over 9 years ago
 

I second sdorman suggestion, a badge like those currently available from delicious or technorati, would be great.

Afeabaf903597954922b0f05692cc629?&s=42&rating=pg&d=http%3a%2f%2fopenhub.net%2fanon80
dartar over 9 years ago
 

Jay,

Any progress on the updated/glorified badges?

63d82972dbc14a2a1613630862600840?&s=42&rating=pg&d=http%3a%2f%2fopenhub.net%2fanon80
sdorman over 9 years ago
 

hi sdorman. I've started working on it. Took at look at the google widget API but didn't like the terms. I hope to have it some basic ones out this week.

9dbaca493199c57710e53b56310f659d?&s=42&rating=pg&d=http%3a%2f%2fopenhub.net%2fanon80
Jason Allen over 9 years ago
 

Great! Look forward to seeing them and helping to test. You can get an idea of where they would be going by going to

http://build.subtextproject.com/ccnet/server/local/project/SubText-1.9/ViewProjectReport.aspx

Thanks,

Scott.

63d82972dbc14a2a1613630862600840?&s=42&rating=pg&d=http%3a%2f%2fopenhub.net%2fanon80
sdorman over 9 years ago
 

I took the freedom of announcing this thread at Wikimatrix

Afeabaf903597954922b0f05692cc629?&s=42&rating=pg&d=http%3a%2f%2fopenhub.net%2fanon80
dartar over 9 years ago
 

Greetings everyone,

We just enabled an early preview of enhanced ohloh badges. We're keeping it quiet for now so that we can incorporate feedback from people on this thread first. Go ahead and embed them anywhere you like, but understand that it will likely change in the near future. I only enabled one type of badge so far (project languages). To access the badge, follow this url pattern:

http://www.ohloh.net/projects/ANY_ID/widgets

I expect that the current badge might need some html tweaking - let me know.

9dbaca493199c57710e53b56310f659d?&s=42&rating=pg&d=http%3a%2f%2fopenhub.net%2fanon80
Jason Allen over 9 years ago
 

Badge is not working for me... http://www.ohloh.net/projects/3756/badges is a 404

Ac32d6b75a51635ff06dd53a440afe54?&s=42&rating=pg&d=http%3a%2f%2fopenhub.net%2fanon80
Matt Zukowski over 9 years ago
 

doh.... sorry - the url path is not .../badges, but rather .../widgets (i fixed the link above to avoid future confusion).

9dbaca493199c57710e53b56310f659d?&s=42&rating=pg&d=http%3a%2f%2fopenhub.net%2fanon80
Jason Allen over 9 years ago
 

This looks great!

I have included the widget in our web dashboard. You can see it at: http://build.subtextproject.com/ccnet/server/local/project/SubText-1.9/ViewProjectReport.aspx

I'm looking forward to the next widgets that are available.

63d82972dbc14a2a1613630862600840?&s=42&rating=pg&d=http%3a%2f%2fopenhub.net%2fanon80
sdorman over 9 years ago
 

It would be nice to have the title and chart placement as configurable items. Being able to change the title (or even omit it completely) and being able to align the chart either:

top-left, top-right, top-center

or possibly also align it along the left side of the table (like it displays on the main project stats page).

Thanks,

Scott.

63d82972dbc14a2a1613630862600840?&s=42&rating=pg&d=http%3a%2f%2fopenhub.net%2fanon80
sdorman over 9 years ago
 

Sorry...one other thing...

Having the list of Other languages also have some alternate row shading would be good too. For Subtext, we have about 8 languages listed here, and without some sort of shading it can make it hard to follow the line across.

63d82972dbc14a2a1613630862600840?&s=42&rating=pg&d=http%3a%2f%2fopenhub.net%2fanon80
sdorman over 9 years ago
 

Glad to hear it's working!

Here's where I'm at:

Change/Hide/Position Title

Good idea - however I'll delay this feature until we have more widgets first.

Shade 'Other Languages'

Yep - makes a lot of sense. I'll do this sooner since it also does kinda hinder readability.

I'm on a side-project at the moment so I'll only get back to badges in a day or two. Meanwhile - more feedback appreciated. Thanks!

9dbaca493199c57710e53b56310f659d?&s=42&rating=pg&d=http%3a%2f%2fopenhub.net%2fanon80
Jason Allen over 9 years ago
 

Yes, the change/hide/position the title is more on the "nice to have" feature. Even being able to change the placement of the chart graphic is a grey area. Shading the other languages list would be my choice for highest priority as it does affect readability.

A couple of questions have come up from some of the other developers, but I'm not sure if keeping them in this thread is appropriate. I'll post them and can always move them to their own thread afterwards.

  1. It appears that the .aspx files in our project are being reported as XML files instead.
  2. Are the other languages listed part of a fixed list? Ohloh reports that we have <1% of PHP, Perl, and Python, when we have none of those.
  3. We have two repositories enlisted, is it possible to get separate statistics for each one?
63d82972dbc14a2a1613630862600840?&s=42&rating=pg&d=http%3a%2f%2fopenhub.net%2fanon80
sdorman over 9 years ago
 

Any update on widgets? I thought we would see other JSON widgets soon, e.g. the code history graphs or the contributor commit graph as in http://www.ohloh.net/projects/45/analyses/latest/contributors.

Afeabaf903597954922b0f05692cc629?&s=42&rating=pg&d=http%3a%2f%2fopenhub.net%2fanon80
dartar over 9 years ago
 

Post a Response