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);

参见