Android
1. Register Member
This register is done by calling Goodie.setRegister() function. This function will retrieve or create user.
Here is example:
Register you
    r MeGoodie.setRegister(username, merchantId, phoneNumber, password, firstName,
    lastName, deviceUniqueId, birthDate, referralCode)
    
        .regiterGoodie(this, new SetRegisterListener(){
    
    @Override
    public void onSuccess(RegisterResponse response){
    if(response.getAbstractResponse().getResponseStatus().equals("MEM000")){
            //on success 
        }
}
                    
                    
                    
    @Override
    public void onError(Throwable throwable){
        //on error
        }
});
                    
                                    Where :
| Param | Type | Description | 
|---|---|---|
| username | String | username is used as a login member to sdk goodie | 
| merchantId | String | merchantId is identifier that will be used to identity a merchant | 
| phoneNumber | String | phoneNumber is used to receive verification code | 
| password | String | password is used as for authentication purpose | 
| firstName | String | firstName is used as a display first name inside application | 
| lastName | String | lastName is used as a display last name inside application | 
| deviceUniqueId | String | deviceUniqueId is identify android device | 
| birthDate | String | birthDate format is “dd-mm-yyyy” | 
| referralCode | String | refferal code is a unique number assigned to your account. You can use this code to refer your friends for get rewarded. | 
Response Register :
{
    "memberId": "56DF6BC0-DFB8-469A-B760-1780EB081120",
    "referralPoint": 5,
    "abstractResponse": {
        "responseStatus": "MEM000",
        "responseMessage": "Register member success"
    }
}