Skip Navigation Links.
展开 最小化

SpreadWebServcie.GetAllSubscription Method

獲得所有現有的聯絡人名單.

public Dataset getAllSubscription (

string loginEmail,

string password,

)

Public function getAllSubscription( _

loginEmail As String, _

password As String, _

) As Dataset

No sample for PHP.
No sample.

參數

參數

類型

描述

loginEmail

String

Spread賬號的登錄郵件地址.

password

String

Spread賬號的登錄密碼或者 API Key.

返回結果

Dataset 包含一個表 行: Subscription Name, description, Status and No. of Subscribers.

例子

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.