How to use Affinity's API to retrieve list data