The library doesn't need to integrate with magento, it's mostly a wrapper that communicates with an API.
I would like to be able to use this library and make these API calls from within a controller or model.
Where can I put the library? How do I add them to the autoloader?
As a solution that works perfectly: you can extend the varien_event_observer, create your own autoloader function and and by using the controller_front_init_before event you push this autoloader in front of the __autoload stack. this example of integrating solarium and symphony event dispatcher can explain it :
and surely your libraries shoud be in the lib pool ! this solution is provided by @Jeroen Vermeulen, and i thank him :)
Look into /lib folder in your website root directory. From Magento Base Directories:
So, in other words, if your library supports zend file naming convention - library classes will be found and loaded by magento autoloader. Otherwise you can get path of your /lib directory with Mage::getBaseDir(‘lib’) and write something like