WCF
Method
public AuthServerResponse ReceivePushResponse(string authServerPartnerLoginName, string authServerPartnerLoginPassword, string authServerPartnerUserLoginName, string mobile, string response, string authnUserReqId)
WCF parameter | data type | description |
---|---|---|
authServerPartnerLoginName | string | SurePassId account login name |
authServerPartnerLoginPassword | string | SurePassId account login key |
authServerPartnerUserLoginName | string | User account name |
mobile | string | mobile |
response | string | response |
authnUserReqId | string | authnUserReqId |
Sample WCF C# Method
AuthServerResponse resp = ReceivePushResponse("accountLogin", "accountKey", "Mandy", "?", "?", "?");
Sample WCF C# Repsonse
if (resp.ErrorCode != 0) { message.Text = resp.ErrorMsg; return false; }
REST
REST parameter | data type | description |
---|---|---|
spAccountLoginName | string | SurePassId account login name |
spAccountLoginKey | string | SurePassId account login key |
username | string | user account login name |
type | string | delete_device |
mobile | string | mobile |
response | string | response |
authnUserReqId | string | authnUserReqId |
Sample REST/Json Method
{ "spAccountLoginName": "{{spAccountLoginName}}", "spAccountLoginKey": "{{spAccountLoginKey}}", "username": "{{username}}", "type": "receive_push_response", "mobile": "?", "response": "?", "authnUserReqId": "?" }
Sample REST/Json Response
{ "errorCode": 0, "errorMessage": "OK", "type": "receive_push_response" }