string
loginEmail =
"Spread@reasonables.com";
string
loginPassword =
"Spread";
string
subscriptionName = "Spread Subscription Name";
SpreadAPI.
SpreadWebService
MySpread =
new SpreadAPI.
SpreadWebService
();
bool
result = MySpread.DeleteSubscription(loginEmail, loginPassword, subscriptionName);
Dim
loginEmail
As
String
=
"Spread@reasonables.com"
Dim
loginPassword
As
String
=
"Spread"
Dim
subscriptionName As
String
= "Spread Subscription Name"
Dim
MySpread
As
New
SpreadAPI.
SpreadWebService
Dim
result
As
Boolean
= MySpread.DeleteSubscription(loginEmail, loginPassword, subscriptionName)
/**
* @name deleteSubscription
* @function delete the subscription
* @param
* subscriptionName the subscription Name you want to delete as subscriptionName
* @return
* error message failed.
* 1 success.
*/
public function deleteSubscription($loginEmail,$password,$subscriptionName){
$sendArr = array(
'loginEmail' => $loginEmail,
'password' => $password,
'subscriptionName' => $subscriptionName
);
$Client=new SoapClient("http://service.rspread.com/Service.asmx?WSDL");
$flag = $Client -> DeleteSubscription( $sendArr );
if( empty( $flag ) ){
return 0;
}
return 1;
}
No sample.