Basic API / Adapter code.