com.zoho.accounts.externalframework

Interface ZohoTokenCallback

public static interface ZohoSDK.OnLogoutListener

The callback handler gives an access token or an error. The error occurs if an attempt to refresh the access token is unsuccessful.

Method Summary

When the token fetch is initiated.
Called when the token fetch is completed.
Called when the token fetch is failed.

Method Detail

  • onTokenFetchInitiated

    When the token fetch is initiated

    void onTokenFetchInitiated()
  • onTokenFetchComplete

    Called when the token fetch is completed.

    void onTokenFetchComplete(com.zoho.accounts.externalframework.ZohoToken token)
    Parameters:
    token - This token should be sent in the Authorization Header. (Header Value should be @Zoho-oauthtokenTOKEN forHTTPHeaderField:@Authorization where TOKEN is the String accessToken obtained in this block).
  • onTokenFetchFailed

    Called when the token fetch is failed.

    void onTokenFetchFailed(com.zoho.accounts.externalframework.ZohoErrorCodes errorCode)
    Parameters:
    errorCode - Respective error object if the attempt to refresh the access token is unsuccessful.