Android
11. Member Profile
You can use this function to retrieve data member which is stored in Goodie system.
Here is the example:
Goodie.setMemberProfile(authToken, deviceUniqueId, memberId, merchantId)
.memberProfileGoodie(mActivity,
new SetMemberProfileListener() {
@Override
public void onSuccess(MemberProfileResponse resp) {
if (resp.getAbstractResponse().getResponseStatus().equals("INQ000"))
{
//On Success
}
}
@Override
public void onError(Throwable throwable) {
// On Failure
}
});
Where :
| Param | Type | Description |
|---|---|---|
| authToken | String | authToken is used as for header authentication purpose |
| deviceUniqueId | String | deviceUniqueId is identify android device |
| memberId | String | memberId is identifier that will be used to identity a member |
| merchantId | String | merchantId is identifier that will be used to identity a merchant |
Response Member Profile :
{
"memberId": "7E711A24-B85D-4106-B283-47F057D1B300",
"firstName": "Nganu",
"lastName": "Prince",
"userName": "test888@gmail.com",
"memberPicture": null,
"address": "test888@gmail.com",
"city": null,
"province": null,
"country": "Indonesia",
"postalCode": "",
"placeOfBirth": null,
"birthDate": "-",
"gender": null,
"mobilePhone": "0852147852369",
"email": "test888@gmail.com",
"abstractResponse": {
"responseStatus": "INQ000",
"responseMessage": "Inquiry success"
}
}