Example code for how to implement our APIs.