Skip Navigation Links.
展开 最小化

SpreadWebServcie.GetCampaignSubscriberDetail Method

获取对应邮件的订阅者信息 (登入你的Spread账号 -> 我的账号 -> 应用程序接口 -> 允许 获取订阅者信息 )

参数

参数

类型

描述

loginEmail

String

Spread账号的邮箱地址.

APIKey

String

Spread账号的密码或者 API Key which you can retrieve from your Spread account (My account=> Settings).

subscriber_email

String

查询的订阅者邮箱地址.

campaign_id

String

邮件活动的ID

返回结果

Dataset 包含一个单表,行: email address, first name, middle name, last name, job title, company name, home phone, address1, address2, address3, city, state, country, postal code, sub postal code, fax, web url, title, gender, date1, date2, custom field1, custom field2, custom field3, custom field4, custom field5, custom field6, custom field7, custom field8, custom field9, custom field10, custom field11, custom field12, custom field13, custom field14, custom field15, status.

例子

string loginEmail = "Spread@reasonables.com";

string APIKey = "TEST0000-TEST-0000-TEST-0000TEST0000";

string subscriber_email = "Spread@reasonables.com";

int campaign_id = "1234";

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

DataSet result = MySpread.GetCampaignSubscriberDetail(loginEmail, APIKey , subscriber_email, campaign_id);

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

Dim APIKey As String = "TEST0000-TEST-0000-TEST-0000TEST0000"

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

Dim campaign_id As Integer = "1234"

Dim MySpread As New SpreadAPI.SpreadWebService

Dim result As DataSet = MySpread.GetCampaignSubscriberDetail(loginEmail, APIKey, subscriber_email, campaign_id)

    /**
    * @name     GetCampaignSubscriberDetail
    * @function get campaign subscriber detail
    * @param
    *  subscriber_email	the email of subscriber to be got.
    *  campaign_id the ID of campaign.
    * @return
    *          dataset.
    */
    public function GetCampaignSubscriberDetail($loginEmail,$APIKey,$subscriber_email,$campaign_id){
        $array = array(
	        'loginEmail'        => $loginEmail,
	        'APIKey'	    => $APIKey,
	        'subscriber_email'  => $subscriber_email,
                'campaign_id'       => $campaign_id

        );
        $Client=new SoapClient("http://service.rspread.com/Service.asmx?WSDL");
        return $Client -> GetCampaignSubscriberDetail( $array );
    }

         
No sample.

参见