Skip Navigation Links.
展开 最小化

SpreadWebServcie.GetSenderEmails Method

獲取該賬號下所有發送者郵箱地址。

參數

參數

類型

描述

loginEmail

String

Spread賬號的郵箱地址

APIKey

String

Spread賬號的密碼或者 API Key

返回結果

Dataset 包含一個單表,行: user_email

例子

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.