|
Introduction
Ohloh is a website which provides a web services suite and online community platform that aims to map the landscape of open source software development.
The Ohloh API is a free, REST-based programming interface to the Ohloh open source directory. You can use the Ohloh API to create your own applications and web services based on Ohloh data.
There is a live demo available on the PyAMF blog.
Clone the PyAMF repository with:
git clone git://github.com/hydralabs/pyamf.git pyamf
cd doc/tutorials/examples/actionscript/ohloh
Alternatively, if you just want to have a look at the source, you can browse the example online.
The WSGI server for the Adobe Flash Player and Python AMF clients starts on http://localhost:8000 when you launch the development server from the python folder:
python server.py
Note: Make sure you replace the API key in ohloh.py with a valid one that you can get for free when you sign up on the Ohloh website.
Use of one the following clients below to communicate with Ohloh.
More API examples are available on the Ohloh website.
You can simply open the SWF file and it will connect to http://localhost:8000.
The Python client allows you to query the Ohloh API and print the result on stout. It requires you to enter the API key and it’s associated email address, like this:
python client.py <api-key> <email-address>
When you run the client it should print the Ohloh account details for that email address.