I'm starting to integrate our Rails-based app with other, external APIs. We're going to start with mailing list services (probably Mad Mimi or Campaign Monitor).
I'd just like to know if anyone has best/preferred practices for approaching simple integration, error checking and the like.
Do you put API functions in model callbacks? Is it best to have API functions run in the background (ala delayed_job)?