Go to top ↑
Menu
JSON API iOS SDK Android SDK

Relinking

To update the credentials of a linked broker, follow the same steps as linking except use the getOAuthLoginPopupForTokenUpdateUrl method instead of the getOAuthLoginPopupUrl method:

linkedBrokerManager.getOAuthLoginPopupForTokenUpdateUrl(
    linkedBroker,
    "yourScheme://yourHost",
    new TradeItCallback<String>() {
        @Override
        public void onSuccess(String oAuthUrl) {
            // display the url in a webview in order to the user complete his brokerage login.
        }

        @Override
        public void onError(TradeItErrorResult error) {
            // an error occured
        }
    }
);