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.