Receive Push Response

WCF


Method
public AuthServerResponse ReceivePushResponse(string authServerPartnerLoginName, 
                 string authServerPartnerLoginPassword, 
                 string authServerPartnerUserLoginName, 
                 string mobile,
				 string response,
			     string authnUserReqId)
WCF parameterdata typedescription
authServerPartnerLoginNamestringSurePassID account login name
authServerPartnerLoginPasswordstringSurePassID account login key
authServerPartnerUserLoginNamestringUser account name
mobilestringMobile number of account that received push message
responsestringResponse to push message sent to mobile device e.g. Yes user accepted message or No.
authnUserReqIdstringSystem generated push notification request Identifier.
Sample WCF C# Method
AuthServerResponse  resp = ReceivePushResponse("accountLogin",             
            "accountKey", 
            "Mandy", 
            "(123)456-7890",
	        "User accepted",
			"?");
Sample WCF C# Repsonse
 if (resp.ErrorCode != 0)  {      
       message.Text = resp.ErrorMsg;
       return false;
 }


REST


REST parameterdata typedescription
spAccountLoginNamestringSurePassID account login name
spAccountLoginKeystringSurePassID account login key
usernamestringuser account login name
typestringreceive_push_response
mobilestringMobile number of account that received push message
responsestringResponse to push message sent to mobile device e.g. Yes user accepted message or No.
authnUserReqIdstringSystem generated push notification request Identifier.
Sample REST/Json Method
{
"spAccountLoginName": "{{spAccountLoginName}}",
"spAccountLoginKey": "{{spAccountLoginKey}}",
"username": "{{username}}",
"type": "receive_push_response",
"mobile": "(123)456-7890",
"response": "User accepted",
"authnUserReqId": "?"
}
Sample REST/Json Response
 {
  "errorCode": 0,
  "errorMessage": "OK",
  "type": "receive_push_response"
}