UserApi class

Provides User API.

Constructors

UserApi(Dio _dio)

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

accessTokenInfo() Future<AccessTokenInfo>
Fetches accurate access token information from Kakao API server.
loginWithKakaoAccount({List<Prompt>? prompts}) Future<void>
Login with KakaoAccount. Authenticate the user with a Kakao account cookie in default web browser(CustomTabs) and issue OAuthToken
loginWithKakaoTalk() Future<void>
Login with KakaoTalk. Authenticate the user with a Kakao account connected to KakaoTalk and issue OAuthToken
loginWithNewScopes(List<String> scopes) Future<void>
Displays a consent screen requesting consent for personal information and access rights consent items that the user has not yet agreed to, and issues an updated OAuthToken with the consent items when the user agrees.
logout() Future<UserIdResponse>
Invalidates current user's access token and refresh token.
me() Future<User>
Fetches current user's information.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
revokeScopes(List<String> scopes) Future<ScopeInfo>
Revoke consent to a specific consent item of the user and returns a detailed list of remaining consent items.
scopes({List<String>? scopes}) Future<ScopeInfo>
Returns a list of details of a user's consent item.
serviceTerms() Future<UserServiceTerms>
Fetches a list of custom service terms that current user has agreed to.
shippingAddresses() Future<ShippingAddresses>
Fetches current user's shipping addresses stored in Kakao account.
signup({Map<String, String>? properties}) Future<void>
Request app connection for user with app connection status PREREGISTER. Auto Link Used by apps with disabled settings.
toString() String
A string representation of this object.
inherited
Unlinks current user from the app.
updateProfile(Map<String, String> properties) Future<void>
Save or modify user's additional information provided in User class.

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

instance UserApi
default instance SDK provides.
final