public interface

LineApiClient

com.linecorp.linesdk.api.LineApiClient

Class Overview

An API client that provides you with access to the Social API to perform operations such as getting the current access token, getting the user profile, logging out the user, refreshing the access token, and verifying the access token.

Summary

Public Methods
abstract LineApiResponse<LineAccessToken> getCurrentAccessToken()
Gets the access token that the SDK is using for the user.
abstract LineApiResponse<LineFriendshipStatus> getFriendshipStatus()
Gets the friendship status between the LINE Official Account (which is linked to the current channel) and the user.
abstract LineApiResponse<LineProfile> getProfile()
Gets the user profile information.
abstract LineApiResponse<?> logout()
Revokes the access token.
abstract LineApiResponse<LineAccessToken> refreshAccessToken()
Refreshes the access token that the SDK is using for the user.
abstract LineApiResponse<LineCredential> verifyToken()
Checks whether the access token that the SDK is using for the user is valid.

Public Methods

public abstract LineApiResponse<LineAccessToken> getCurrentAccessToken ()

Gets the access token that the SDK is using for the user.

Returns

public abstract LineApiResponse<LineFriendshipStatus> getFriendshipStatus ()

Gets the friendship status between the LINE Official Account (which is linked to the current channel) and the user.

Returns

public abstract LineApiResponse<LineProfile> getProfile ()

Gets the user profile information.

Returns

public abstract LineApiResponse<?> logout ()

Revokes the access token.

Returns

public abstract LineApiResponse<LineAccessToken> refreshAccessToken ()

Refreshes the access token that the SDK is using for the user.

Returns

public abstract LineApiResponse<LineCredential> verifyToken ()

Checks whether the access token that the SDK is using for the user is valid.

Returns