Skip Navigation Links.
展开 最小化

SpreadWebServcie.GetSubscription Method

It gets all existing subscriptions in specified status.

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.

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

Dataset containing a single table with columns Subscription Name, description, Status and No. of Subscribers

Example

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.