API Calls gadget illustrates how to use AMD and API. It gives a quick start so you can create new gadgets based on it.