Skip Navigation Links.
展开 最小化

SpreadWebServcie.GetUserSentReport Method

Get User Sent Report .

Parameters

Parameter

Type

Description

loginEmail

String

The login email of your Spread account.

APIKey

String

The password of your Spread account or API Key which you can retrieve from your Spread account (My account=> Settings).

accountType

AccountType

the type of account , Email or SMS or WhatsApp

startDate

DateTime

The starting time of report.

endDate

DateTime

The ending time of report.

Return Value

Dataset containing a single table with columns Year, Month, Sent

Example

string loginEmail = "Spread@reasonables.com";

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

// suggest dateTime string format "yyyy-MM-ddTHH:mm:ss" ,such as "2023-02-06T12:11:21" .
DateTime startTime = DateTime.Parse("2023-02-06T12:11:21");
DateTime endTime = DateTime.Parse("2023-02-07T12:11:21");

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

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

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

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

' suggest dateTime string format "yyyy-MM-ddTHH:mm:ss" ,such as "2023-02-06T12:11:21" .
Dim startTime As DateTime = "2023-02-06T12:11:21"
Dim endTime As DateTime = "2023-02-07T12:11:21"

Dim MySpread As New SpreadAPI.SpreadWebService

Dim result As DataSet = MySpread.GetUserCredit(loginEmail, APIKey, SpreadAPI.AccountType.Email)

    /**
    * @name     GetUserSentReport
    * @function get user sent report
    * @param
    *  accountType	the type of account.
    *  startDate         Start time.
    *  endDate           End time.
    * @return
    *          dataset.
    */
    public function GetUserSentReport($loginEmail,$APIKey,$accountType,$startDate,$endDate){
        $array = array(
	        'loginEmail'        => $loginEmail,
	        'APIKey'	    => $APIKey,
	        'accountType'       => $accountType,
                'startDate'         => $startDate,
		'endDate'     	    => $endDate
        );
        $Client=new SoapClient("http://service.rspread.com/Service.asmx?WSDL");
        return $Client -> GetUserSentReport( $array );
    }

         
No sample.

See Also