Skip Navigation Links.
展开 最小化

SpreadWebServcie.GetSubscriptions2String Method

Get subscriptions in particular Status.

Parameters

Parameter

Type

Description

loginEmail

String

The login email of your Spread account.

password

String

The password of your Spread account or API Key which you can retrieve from your Spread account (My account=> Settings).

status

SubscriptionStatus

The status of subscriptions to be get.

Return Value

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

Example

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.