Introducing my Open Source Projects Service: Grab Your Project Details From GitHub or Google Code
Say hello to the newest member of my service family; the Open Source Project Service. This service lets me (and you too my friends) grab our project details from either Google Code, or GitHub.
How it works
If you have a project on GitHub or Google Code, you can retrieve your project details.
Single project host retrieval URI:
http://adam.kahtava.com/services/open-source/projects/{project-host}.{xml|json}?user={username}
Multiple project host retrieval URI:
http://adam.kahtava.com/services/open-source/projects.{xml|json}?project-host:username={project-host1:username1,project-host2:username2}
Example, requesting projects from Google Code in XML format:
Request: http://adam.kahtava.com/services/open-source/projects/googlecode.xml?user=adam.kahtava.com
Response:
-
<Projects xmlns="http://adam.kahtava.com/services/open-source" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
-
<Project>
-
<Description>The site source in use on Adam.Kahtava.com / AdamDotCom.com (http://adam.kahtava.com/)</Description>
-
<LastMessage>More code coverage on controllers required!! :)</LastMessage>
-
<LastModified>2010-02-26</LastModified>
-
<Name>website</Name>
-
<Url>http://code.google.com/p/adamdotcom-website</Url>
-
</Project>
-
...
-
</Projects>
Example, requesting projects from GitHub in JSON format:
Request: http://adam.kahtava.com/services/open-source/projects/github.json?user=adamdotcom
Response:
-
[
-
{
-
"Description":"A collection of my etcetera, so forth, and so on. Contains a PowerShell script for Twitter, a programming exercise in Ruby, a programming exercise for Google done in JavaScript.",
-
"LastMessage":"Bing-bing, changing filenames",
-
"LastModified":"2009-06-08",
-
"Name":"scripts",
-
"Url":"http:\/\/github.com\/AdamDotCom\/scripts"
-
},
-
...
-
]
Example, requesting projects from both GitHub and Google Code in a single request in XML form:
Response:
-
<Projects xmlns="http://adam.kahtava.com/services/open-source" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
-
<Project>
-
<Description>Displays your public source code repositories from Google Code and GitHub.</Description>
-
<LastMessage>Added http://code.google.com/p/adamdotcom-services/ link</LastMessage>
-
<LastModified>2010-02-23</LastModified>
-
<Name>project badge</Name>
-
<Url>http://github.com/AdamDotCom/project-badge</Url>
-
</Project>
-
...
-
<Project>
-
<Description>The site source in use on Adam.Kahtava.com / AdamDotCom.com (http://adam.kahtava.com/)</Description>
-
<LastMessage>More code coverage on controllers required!! :)</LastMessage>
-
<LastModified>2010-02-26</LastModified>
-
<Name>website</Name>
-
<Url>http://code.google.com/p/adamdotcom-website</Url>
-
</Project>
-
...
-
</Projects>
And Now What?
View my sidebar widget that uses this service to display the latest updates from my source code repositories here.
Contribute, view, or download this openly available source code here.