connect mobile app to api