Wesabe logo
Sign In   Help   Join Wesabe  

Wesabe API: Example Code

The example client programs provided below show a request for a user's accounts and account balances. In each case, we've tried to develop the example requiring as few library installs as possible (none, where we could). These examples should mostly run with default installations of their languages, except where noted.
Ruby
An example Ruby API client is available here. For Ruby developers, we suggest using the rest-open-uri library for accessing the Wesabe API.
Python
An example Python API client is available here. Python supports SSL connections in the standard library, but the SSL client does not verify the certificate of the server before downloading. This means that using the Python standard library for SSL connections (including to the Wesabe API) is insecure. We strongly advise all Python API developers to install either M2Crypto or PyCurl, and use them for making all SSL connections. (The example code has no dependencies other than Python 2.4 or later.)
Perl
An example Perl API client is available here. We recommend installing Crypto::SSLeay with LWP, and using those libraries for making SSL connections from Perl. (The Perl example client also requires Term::ReadKey, and XML::Simple.)
Java
An example Java API client is available here. Java 1.4 and later ship JSSE as part of the standard Java Runtime, so Java has better SSL support than the other examples. We recommend using Jakarta's HttpClient as an HTTP library, as it is simpler and easier to use than the java.net.* classes.