public class UserManagement extends Object
Modifier and Type | Class and Description |
---|---|
static class |
UserManagement.AgeAuthProperty
추가 동의가 필요로 하는 인증정보를 response에 포함하고 싶은 경우 해당 키 리스트.
|
Modifier and Type | Method and Description |
---|---|
static UserManagement |
getInstance() |
Future<MeV2Response> |
me(List<String> propertyKeys,
com.kakao.usermgmt.callback.MeV2ResponseCallback callback)
Request user info with /v2/user/me.
|
Future<MeV2Response> |
me(com.kakao.usermgmt.callback.MeV2ResponseCallback callback)
Request user info with /v2/user/me.
|
void |
requestAgeAuthInfo(ResponseCallback<AgeAuthResponse> callback,
AuthService.AgeLimit ageLimit,
List<UserManagement.AgeAuthProperty> propertyKeyList)
토큰으로 인증날짜와 CI값을 얻는다.
|
void |
requestLogout(com.kakao.usermgmt.callback.LogoutResponseCallback callback)
로그아웃 요청
|
void |
requestSignup(ApiResponseCallback<Long> callback,
Map<String,String> properties)
가입 요청
|
void |
requestUnlink(com.kakao.usermgmt.callback.UnLinkResponseCallback callback)
Unlink 요청
|
void |
requestUpdateProfile(ApiResponseCallback<Long> callback,
Map<String,String> properties)
사용자정보 저장 요청
|
void |
requestUpdateProfile(ApiResponseCallback<Long> callback,
String nickName,
String thumbnailImagePath,
String profileImage,
Map<String,String> properties) |
Future<ServiceTermsResponse> |
serviceTerms(ApiResponseCallback<ServiceTermsResponse> callback)
User 가 3rd의 동의항목에 동의한 내역을 반환한다.
|
Future<ShippingAddressResponse> |
shippingAddresses(ApiResponseCallback<ShippingAddressResponse> callback)
앱에 가입한 사용자의 배송지 정보를 얻어간다.
|
Future<ShippingAddressResponse> |
shippingAddresses(Integer fromUpdatedAt,
Integer pageSize,
ApiResponseCallback<ShippingAddressResponse> callback)
앱에 가입한 사용자의 배송지 정보를 페이지 사이즈를 주어서 여러 페이지로 나누어 조회.
|
Future<ShippingAddressResponse> |
shippingAddresses(Long addressId,
ApiResponseCallback<ShippingAddressResponse> callback)
앱에 가입한 사용자의 배송지 정보 중 특정 배송지 id 만을 지정하여 조회.
|
public static UserManagement getInstance()
public Future<MeV2Response> me(List<String> propertyKeys, com.kakao.usermgmt.callback.MeV2ResponseCallback callback)
There are a few things you have to note in /v2/user/me.
- Now this API does not invoke error callback even if user has not signed up yet.
- This version does not pass InsufficientScopeException
to error callback even if user does not have required scopes. To get the data for missing
scopes (such as email or phone number), you should request for user's scope update by invoking
Session.updateScopes(Activity, List, AccessTokenCallback)
- Be careful since data only corresponding to given list of property keys will be retrieved. Hierarchy is respected in property keys. If you want to request nickname and email, you should put "properties.nickname" and "kakao_account.email". Refer to developers guide for more info.
propertyKeys
- List of user property keys to retrievecallback
- callback for MeV2Response
UserAccount
,
Session.updateScopes(Activity, List, AccessTokenCallback)
public Future<MeV2Response> me(com.kakao.usermgmt.callback.MeV2ResponseCallback callback)
callback
- callback for MeV2Response
me(List, MeV2ResponseCallback)
public void requestAgeAuthInfo(ResponseCallback<AgeAuthResponse> callback, AuthService.AgeLimit ageLimit, List<UserManagement.AgeAuthProperty> propertyKeyList)
callback
- 요청 결과에 대한 callbackageLimit
- AuthService.AgeLimit
enum representing minimum age to be allowedpropertyKeyList
- List of UserManagement.AgeAuthProperty
enumpublic void requestLogout(com.kakao.usermgmt.callback.LogoutResponseCallback callback)
callback
- logout 요청 결과에 대한 callbackpublic void requestSignup(ApiResponseCallback<Long> callback, Map<String,String> properties)
callback
- signup 요청 결과에 대한 callbackproperties
- 가입시 받은 사용자 정보public void requestUnlink(com.kakao.usermgmt.callback.UnLinkResponseCallback callback)
callback
- unlink 요청 결과에 대한 handlerpublic void requestUpdateProfile(ApiResponseCallback<Long> callback, Map<String,String> properties)
callback
- updateProfile 요청 결과에 대한 callbackproperties
- 저장할 사용자 정보public void requestUpdateProfile(ApiResponseCallback<Long> callback, String nickName, String thumbnailImagePath, String profileImage, Map<String,String> properties)
callback
- updateProfile 요청 결과에 대한 callbacknickName
- 사용자 이름thumbnailImagePath
- 사용자 profile image thumbnail image pathprofileImage
- 사용자의 profile image pathproperties
- 저장할 사용자 extra 정보public Future<ServiceTermsResponse> serviceTerms(ApiResponseCallback<ServiceTermsResponse> callback)
callback
- 요청 결과에 대한 callbackServiceTermsResponse
public Future<ShippingAddressResponse> shippingAddresses(ApiResponseCallback<ShippingAddressResponse> callback)
callback
- 요청 결과에 대한 callbackShippingAddressResponse
public Future<ShippingAddressResponse> shippingAddresses(Integer fromUpdatedAt, Integer pageSize, ApiResponseCallback<ShippingAddressResponse> callback)
fromUpdatedAt
- 기준이 되는 배송지 updated_at 시각. 해당 시각(미포함) 이전에 수정된 배송지부터 조회함. 이전 페이지의 마지막 배송지의 updated_at을 다음 페이지 input 으로 준다.pageSize
- 2이상. 한 페이지에 포함할 배송지 개수.callback
- 요청 결과에 대한 callbackShippingAddressResponse
public Future<ShippingAddressResponse> shippingAddresses(Long addressId, ApiResponseCallback<ShippingAddressResponse> callback)
addressId
- 특정 배송지 정보만 얻고 싶을 때 배송지 ID 지정callback
- 요청 결과에 대한 callbackShippingAddressResponse