TOP > Basic Guide > User Information
List of available API to retrieve user information
These API are eligible for
RAKUTEN_AUTH
login options only.
RakutenAuth.hasUserSignedIn()
RakutenAuth.getUserName(): String
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) {
}
});
Property name | Description |
---|---|
points | Total Rakuten point for the user |
rank | User's Rakuten account rank |
Rank | Description |
---|---|
1 | Regular |
2 | Silver |
3 | Gold |
4 | Platinum |
5 | Diamond |
LANGUAGE :