How to log in to the API
First, your programming language of choice should have some API for automating interacting with webpages intelligently.
I'm a Perl programmer so I'm using WWW::Mechanize. It manages a www session and cookies for me and allows me to select a form, input fields and press...