Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

WCF


Method
public AuthServerResponse ProvisionPushDevice(string authServerPartnerLoginName, 
                 string authServerPartnerLoginPassword, 
                 string authServerPartnerUserLoginName, 
                 string pw,
				 string deviceId,
			     string pushType,
				 string deviceName,
				 string token,
			     string relyingParty)
WCF parameterdata typedescription
authServerPartnerLoginNamestringSurePassId account login name
authServerPartnerLoginPasswordstringSurePassId account login key
authServerPartnerUserLoginNamestringUser account name
pwstringUser password
deviceIdstringPush device ID
pushTypestringPush type
deviceNamestringFriendly name of push device
tokenstringtoken
relyingPartystringrelying party
Sample WCF C# Method
AuthServerResponse  resp = ProvisionPushDevice("accountLogin",             
            "accountKey", 
            "Mandy", 
            "tinyD4nc3r",
	        "123435ASQR6364",
			"?",
			"a Device",
			"?",
			"https://mysite.relayingparty.com");
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
typestringprovision_push_device
pwstringUser password
deviceIdstringPush device ID
pushTypestringpush type
deviceNamestringFriendly name of push device
tokenstringtoken
relyingPartystringRelying party
Sample REST/Json Method
{
"spAccountLoginName": "{{spAccountLoginName}}",
"spAccountLoginKey": "{{spAccountLoginKey}}",
"username": "{{username}}",
"pw": "tinyD4nc3r",
"deviceId": "123435ASQR6364",
"pushType": "?",
"deviceName": "aDevice",
"token": "?",
"relyingParty": "https://mysite.relayingparty.com",
"type": "provision_push_device"
}
Sample REST/Json Response
 {
  "errorCode": 0,
  "errorMessage": "OK",
  "type": "provision_push_device"
}


  • No labels