If you haven't seen it already, Stefan Goßner has published a great series on how to develop using the Content Deployment and Migration API.  He touches on several examples that reflect many of the things you can do with the API.  You can read his 4-part series on his blog, starting with part 1.