The API for Revit is .NET... so you may want to start with some general .NET (C# or VB) programming books.
On the Revit DVD is a SDK zip file that contains dozens of Revit specific examples.
Cheers
MS
Martin Schmid
Product Line Manager
Mechanical Detailing and Electrical Design
Architecture, Engineering, and Construction
Autodesk, Inc.