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.