com.linecorp.linesdk.api.LineApiClient |
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.
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.
|
Gets the access token that the SDK is using for the user.
LineApiResponse
object. If the API call is successful,
a LineApiResponse
object contains the LineAccessToken
object that contains
the access token. If the API call fails, the payload of the LineApiResponse
object is
null
.
Gets the friendship status between the LINE Official Account (which is linked to the current channel) and the user.
LineApiResponse
object. If the API call is successful, the
LineApiResponse
object contains a LineFriendshipStatus
object
that contains the friendship status information. If the API call fails, the payload of
the LineApiResponse
object is null
.
Gets the user profile information.
LineApiResponse
object. If the API call is successful, the
LineApiResponse
object contains a LineProfile
object that contains the
user's profile. If the API call fails, the payload of the LineApiResponse
object is
null
.
Revokes the access token.
LineApiResponse
object containing information about the response.
Refreshes the access token that the SDK is using for the user.
LineApiResponse
object. If the API call is successful, the
LineApiResponse
object contains a LineAccessToken
object that contains
a new access token. If the API call fails, the payload of the LineApiResponse
object is null
.
Checks whether the access token that the SDK is using for the user is valid.
LineApiResponse
object. If the access token is valid, the
LineApiResponse
object contains a success response and the LineCredential
object that contains the access token. If the access token is invalid, the
LineApiResponse
object contains a failure response.