Android
13. Update Member Profile
Goodie.setVoucherRedeem() is used to Update profile in Goodie system, you can change your private information using this function.
Here is the example code:
Goodie.setUpdateMemberProfile(authToken, deviceUniqueId, memberId,
merchantId, birthDate, firstName, lastName, gender, phoneNumber)
.updateMemberProfileGoodie(this, new SetUpdateMemberProfileListener() {
@Override
public void onSuccess(UpdateMemberProfileResponse resp) {
if (resp.getAbstractResponse().getResponseStatus().equals("MEM000"))
{
// On Success
}
}
@Override
public void onError(Throwable throwable)
{
// On Error
}
});
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 |
| birthDate | String | Fill this with your birth date |
| firstName | String | Fill with your first name |
| lastName | String | Fill with your last name |
| gender | String | Fill with your gender (male = “M”, female = “F”) |
| phoneNumber | String | Fill with your phone number |
Response Update Member Profile :
{
"member": {
"memberId": "7E711A24-B85D-4106-B283-47F057D1B300",
"firstName": "Nganu",
"lastName": "Prince",
"birthDate": "2019-02-29",
"gender": "M",
"phoneNumber": "08565656565656"
},
"abstractResponse":{
"responseStatus": "MEM000",
"responseMessage": "Update status member success"
}
}