API wrapper for iOS