Skip Navigation Links.
展开 最小化

SpreadWebServcie.GetAllSubscription Method

It gets all existing subscriptions.

public Dataset getAllSubscription (

string loginEmail,

string password,

)

Public function getAllSubscription( _

loginEmail As String, _

password As String, _

) As Dataset

No sample for PHP.
No sample.

Parameters

Parameter

Type

Description

loginEmail

String

The login email of your Spread account.

password

String

The password of your Spread account or API Key which you can retrieve from your Spread account (My account=> Settings).

Return Value

Dataset containing a single table with columns Subscription Name, description, Status and No. of Subscribers.

Example

string loginName = "spread@reasonables.com";

string loginPassword = "spread";

Dataset mySubscriptionsData;

 

//Create a SpreadWebService object and use its method.

SpreadWebService MySpread = new SpreadWebService();

 

mySubscriptionsData = MySpread.getAllSubscription (loginName, loginPassword);

string loginName = "spread@reasonables.com";

string loginPassword = "spread";

Dataset mySubscriptionsData;

 

//Create a SpreadWebService object and use its method.

SpreadWebService MySpread = new SpreadWebService();

 

mySubscriptionsData = MySpread.getAllSubscription (loginName, loginPassword);

/**
* @name     getAllSubscription
* @function get all contact lists
* @param
*  loginEmail Login Email of Spread.
*  password Login Password of Spread.
* @return
*  		dataset.
* DataSet Columns:
* subscription Name,description,status,no.of subscribers
*/
public function getAllSubscription($loginEmail,$password){
    $paraArray = array(
	    'loginEmail' => $loginEmail,
	    'password'   => $password
    );
    $Client = new SoapClient("http://service.rspread.com/Service.asmx?WSDL");
    $subscriptionData = $Client -> getAllSubscription( $paraArray );
    return $subscriptionData ;
}
  
No sample.