liveservices/LiveSDK-for-Android

How go get access token to send email via SMTP?

nguyencongbinh opened this issue · 2 comments

Hi,
I used Live SDK to sign in and authorize permission. It worked well with this code.

public void loginLive() {
        auth.login(MainActivity.this, scopes, new LiveAuthListener() {
            public void onAuthComplete(LiveStatus status, LiveConnectSession session, Object userState) {
                if (status == LiveStatus.CONNECTED) {
                    resultTextView.setText("Signed in.");
                    client = new LiveConnectClient(session);
                    greetUser();

                } else {
                    resultTextView.setText("Not signed in.");
                    client = null;
                }
            }

            public void onAuthError(LiveAuthException exception, Object userState) {
                resultTextView.setText("Error signing in: " + exception.getMessage());
                client = null;
            }
        });
    }

And from now, i want to get a access token to be able to send a email via SMTP. But I do not know how I can get it.
Can you please tell me should I do ? Thanks.

@nguyencongbinh The LiveSDK is deprecated. For supported modern APIs and SDKs see https://graph.microsoft.io/en-us/