Skip Navigation Links.
展开 最小化

SpreadWebServcie.GetSubscription Method

获取特殊状态的所有联系人名单

public Dataset getSubscription (

string loginEmail,

string password,

SubscriptionStatus status

)

Public function getSubscription( _

loginEmail As String, _

password As String, _

status As SubscriptionStatus, _

) As Dataset

No sample for PHP.
No sample.

参数

参数

类型

描述

loginEmail

String

Spread账号的邮件地址.

password

String

Spread账号的密码或者 API Key.

status

SubscriptionStatus

要获得联系人名单的状态.

返回结果

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

例子

Dim loginName As String = "spread@reasonables.com"

Dim loginPassword As String = "spread"

Dim myStatus As SubscriptionStatus = SubscriptionStatus.Active

Dim mySubscriptionsData As Dataset

 

'Create a SpreadWebService object and use its method.

Dim MySpread As New SpreadWebService

 

mySubscriptionsData = MySpread.getSubscription(loginName, loginPassword, myStatus)

Dim loginName As String = "spread@reasonables.com"

Dim loginPassword As String = "spread"

Dim myStatus As SubscriptionStatus = SubscriptionStatus.Active

Dim mySubscriptionsData As Dataset

 

'Create a SpreadWebService object and use its method.

Dim MySpread As New SpreadWebService

 

mySubscriptionsData = MySpread.getSubscription(loginName, loginPassword, myStatus)

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