SpreadWebServcie.GetUserSentReport Method

 

獲取用戶發送報告。

參數

參數

類型

描述

loginEmail

String

Spread賬號的登錄郵箱.

APIKey

String

Spread賬號的密碼或者. API Key which you can retrieve from your Spread account (My account=> Settings).

accountType

AccountType

查询的账号类型, 邮件, 短信, WhatsApp

startDate

DateTime

報告的開始時間.

endDate

DateTime

報告的結束時間.

返回結果

Dataset 包含一個單表,行:Year, Month, Sent

例子

string loginEmail = "Spread@reasonables.com";

string APIKey = "7D2B83DF-B4A3-4E42-8D77-E6B22A1004BE";

// suggest dateTime string format "dd MMM yyyy HH:mm:ss" ,such as "22 Feb 2013 12:11:21" .
DateTime startTime = DateTime.Parse("22 Feb 2013 12:11:21");
DateTime endTime = DateTime.Parse("23 Feb 2013 12:11:21");

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

DataSet result = MySpread.GetUserSentReport(loginEmail, APIKey , SpreadAPI.AccountType.Email , startDate , endDate);

參見