Skip Navigation Links.
展开 最小化

SpreadWebServcie.GetSenderEmails Method

Get Sender Emails.

Parameters

Parameter

Type

Description

loginEmail

String

The login email of your Spread account.

APIKey

String

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

Return Value

Dataset containing a single table with the column user_email

Example

string loginEmail = "Spread@reasonables.com";

string APIKey = "Spread";

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

bool result = MySpread.GetSenderEmails(loginEmail, APIKey);

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

Dim APIKey As String = "Spread"

Dim MySpread As New SpreadAPI. SpreadWebService

Dim result As Boolean = MySpread.GetSenderEmails(loginEmail, APIKey)

    /**
    * @name     getUserSendEmails
    * @function get sender email addresses
    * @return
    *  all sender email       
    */
    public function getUserSendEmails($loginEmail,$apiKey){
        $sendArr = array(
	        'loginEmail'        => $loginEmail,
	        'password'	    => $apiKey
        );
        $Client=new SoapClient("http://service.rspread.com/Service.asmx?WSDL");
        $result = $Client -> GetSenderEmails( $sendArr );
        if( empty( $result ) ){
	        return -1;
        }
        return $result;
    }

         
No sample.