Delete Push User Device

WCF


Method
public AuthServerResponse DeletePushUserDevice(string authServerPartnerLoginName, 
                 string authServerPartnerLoginPassword, 
                 string authServerPartnerUserLoginName, 
				 string deviceN,
				 string deviceName,
				 int pushType,
				 string token,
				 string relyingPartner,
				 string provisionToken)
WCF parameterdata typedescription
authServerPartnerLoginNamestringSurePassID account login name
authServerPartnerLoginPasswordstringSurePassID account login key
authServerPartnerUserLoginNamestringUser account name
pwstringUser account password
deviceIdstringID of the device being added
deviceNamestringName of the device being added
pushTypeintegerPush type of the device being added, e.g. Android: 1, iOS: 2.
tokenstringPush registration token for the device being added
relyingPartnerstringName of the relying party requesting device addition.
provisionTokenstringThe original TokenId used to provision the push account
Sample WCF C# Method
AuthServerResponse  resp = DeletePushUserDevice("accountLogin",             
            "accountKey", 
            "Mandy", 
            "tinyD4nc3r",
	        "123435ASQR6364",
			"A Device",
			"1",
			"nKctODamlM4:CKrh_PC8kIb7OclJONHoA",
			"https://mysite.relayingparty.com",
			"NDA0MDNFMjYyNjJBN0Q3NTQwNDQyQzc2NzE2ODM1NEQzMDRBNDg2RjU3NkI3Njc2NEQyNjRGNTAyODU0");
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
typestringdelete_push_user_device
pwstringUser account password
deviceIdstringID of the push device
deviceNamestringName of device being added
pushTypeintegerPush type of mobile device
tokenstringDevice push registration token
relyingPartnerstringName of the relying party requesting device addition.
provisionTokenstringThe original TokenId used to provision the push account.
Sample REST/Json Method
{
  "spAccountLoginName": "accountLogin",
  "spAccountLoginKey": "accountKey",
  "username": "mandy",
  "type": "delete_push_user_device",
  "pw": "tinyD4nc3r",
  "deviceId": "123435ASQR6364",
  "pushType": "1",
  "deviceName": "aDevice",
  "token": "nKctODamlM4:CKrh_PC8kIb7OclJONHoA",
  "relyingPartner": "https://mysite.relayingparty.com",
  "provisionToken": "NDA0MDNFMjYyNjJBN0Q3NTQwNDQyQzc2NzE2ODM1NEQzMDRBNDg2RjU3NkI3Njc2NEQyNjRGNTAyODU0"
}
Sample REST/Json Response
 {
  "errorCode": 0,
  "errorMessage": "OK",
  "type": "delete_push_user_device"
}