Example of using Endpoints with an iOS app