Skip to content

Latest commit

 

History

History
71 lines (57 loc) · 1.45 KB

UserInfo.md

File metadata and controls

71 lines (57 loc) · 1.45 KB

TOP > Basic Guide > User Information


User Information

List of available API to retrieve user information

These API are eligible for RAKUTEN_AUTH login options only.

Check if user is signed in

RakutenAuth.hasUserSignedIn()

Get user's full name

RakutenAuth.getUserName(): String

Get user's current point and rank

RakutenAuth.getUserInfo(
    success = { userInfo ->
        //get point
        userInfo.points
        
        //get rank
        userInfo.rank
    }, 
    failed = {
        //fail to get user info
    }
)
JAVA
RakutenAuth.getUserInfoJava(new AuthMemberInfoCallback() {
    @Override
    public void success(@NonNull RakutenAuthUserInfo rakutenAuthUserInfo) {
        
    }

    @Override
    public void fail(@NonNull RakutenRewardAPIError rakutenRewardAPIError) {

    }
});

RakutenAuthUserInfo

Property name Description
points Total Rakuten point for the user
rank User's Rakuten account rank

Rakuten Account Rank

Rank Description
1 Regular
2 Silver
3 Gold
4 Platinum
5 Diamond


LANGUAGE :

ja