added getAccessToken API to iOS