Added a func for API calls
Re-raise the error from urllib
Merge pull request #11 from peerster/master

Added a function for API calls