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.