Add sample code for the API client refactor