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 AddPushUserDevice(string authServerPartnerLoginName, 
                 string authServerPartnerLoginPassword, 
                 string authServerPartnerUserLoginName, 
                 string pw,
				 string deviceId,
				 int pushType,
				 string oldToken,
				 string newToken,
				 string provisionToken,
				 string relyingParty)
WCF parameterdata typedescription
authServerPartnerLoginNamestringSurePassId account login name
authServerPartnerLoginPasswordstringSurePassId account login key
authServerPartnerUserLoginNamestringUser account name
pwstringUser account password
deviceIdstringID of the device being added
pushTypeintegerPush type of the device being added, e.g. Android: 1, iOS: 2.
oldTokenstringPreviously provided registration token for the device.
newTokenstringNew registration token for the device.
provisionTokenstringThe original TokenId used to provision the push account.
relyingPartystringName of the relying party requesting access
Sample WCF C# Method
AuthServerResponse  resp = AddPushUserDevice("accountLogin",             
            "accountKey", 
            "Mandy", 
            "tinyD4nc3r",
	        "123435ASQR6364",
			"1",
			"nKctODamlM4:CKrh_PC8kIb7OclJONHoA",
			"mRdyODytlD9:DPrh_NA47kz35ilHoOcoZ",
			"NDA0MDNFMjYyNjJBN0Q3NTQwNDQyQzc2NzE2ODM1NEQzMDRBNDg2RjU3NkI3Njc2NEQyNjRGNTAyODU0",
			"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
typestringadd_push_user_device
pwstringUser account password
deviceIdstringID of the push device
pushTypeintegerPush type of mobile device
oldTokenstringPreviously provided registration token for the device.
newTokenstringNew registration token for the device.
relyingPartystringName of the relying party requesting device addition.
Sample REST/Json Method
{
  "spAccountLoginName": "accountLogin",
  "spAccountLoginKey": "accountKey",
  "username": "mandy",
  "pw": "tinyD4nc3r",
  "deviceId": "123435ASQR6364",
  "pushType": "1",
  "oldToken": "nKctODamlM4:CKrh_PC8kIb7OclJONHoA",
  "newToken": "mRdyODytlD9:DPrh_NA47kz35ilHoOcoZ",
  "provisionToken": "NDA0MDNFMjYyNjJBN0Q3NTQwNDQyQzc2NzE2ODM1NEQzMDRBNDg2RjU3NkI3Njc2NEQyNjRGNTAyODU0",
  "relyingParty": "https://mysite.relayingparty.com"
}
Sample REST/Json Response
 {
  "errorCode": 0,
  "errorMessage": "OK",
  "type": "add_push_user_device"
}
  • No labels