Skip Navigation Links.
展开 最小化

SpreadWebServcie.GetSubscriptions2String Method

获取特殊状态的联系人名单名称.

参数

参数

类型

描述

loginEmail

String

Spread账号的登录邮箱.

password

String

Spread账号的密码或 API Key.

status

SubscriptionStatus

需要获取联系人名单的状态.

返回结果

String:"contact list 20120203,contact list 20120204,contact list 20120205"

例子

string loginEmail = "Spread@reasonables.com";

string loginPassword = "Spread";

SpreadAPI.SpreadWebService MySpread = new SpreadAPI.SpreadWebService();

string result = MySpread.getSubscriptions2String(loginEmail, loginPassword, SpreadAPI.SubscriptionStatus.Active);

Dim loginEmail As String = "Spread@reasonables.com"

Dim loginPassword As String = "Spread"

Dim MySpread As New SpreadAPI.SpreadWebService()

Dim result As String = MySpread.getSubscriptions2String(loginEmail, loginPassword, SpreadAPI.SubscriptionStatus.Active)

    /**
    * @name     getSubscriptions2String
    * @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 getSubscriptions2String($loginEmail,$password,$status){
        $paraArray = array(
	        'loginEmail' => $loginEmail,
	        'password'   => $password,
	        'status'     => $status
        );
        $Client = new SoapClient("http://service.rspread.com/Service.asmx?WSDL");
        $subscriptionData = $Client -> getSubscriptions2String( $paraArray );
        return $subscriptionData ;
    }
         
No sample.