/* * Get an access token from your Twilio access token server */ private void retrieveAccessToken() { Ion.with(ApplicationContext).load(ACCESS_TOKEN_SERVICE_URL).asString().Callback = new FutureCallbackAnonymousInnerClassHelper(this); }
private void retrieveAccessTokenfromServer() { Ion.with(this).load("http://localhost:8000/token.php").asJsonObject().Callback = new FutureCallbackAnonymousInnerClassHelper(this); }