๐Ÿ  Home > ๐Ÿ“ฆ TaskService > ๐Ÿ“‹ TaskListSyncByDate

TaskListSyncByDate

Description

list of tasks for synchronization signature string: string.Format("{0};{1:yyyyMMdd HH:mm:ss}", dtMinDate, Secret)

Method Signature

public Int32 TaskListSyncByDate(
    String ServiceName,
    String Sign,
    DateTime dtMinDate,
    Int32 nMinCnt,
    out CTask[] tasks
)

Parameters

ServiceName

  • Type: String
  • Direction: input

Sign

  • Type: String
  • Direction: input

dtMinDate

  • Type: DateTime
  • Direction: input

nMinCnt

  • Type: Int32
  • Direction: input

tasks

Return Value

  • Type: Int32

Authentication

This method requires authentication signature.

Signature String Format

string.Format("{0};{1:yyyyMMdd HH:mm:ss}", dtMinDate, Secret)

SOAP Request Example

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xmlns:xsd="http://www.w3.org/2001/XMLSchema"
               xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <TaskListSyncByDate xmlns="http://mentor.web.money/taskservice">
      <ServiceName>ServiceName</ServiceName>
      <Sign>base64signature</Sign>
      <dtMinDate>2024-01-01T00:00:00</dtMinDate>
      <nMinCnt>123</nMinCnt>
    </TaskListSyncByDate>
  </soap:Body>
</soap:Envelope>

SOAP Response Example

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <TaskListSyncByDateResponse xmlns="http://tempuri.org/">
      <TaskListSyncByDateResult>123</TaskListSyncByDateResult>
      <tasks><!-- CTask object --></tasks>
    </TaskListSyncByDateResponse>
  </soap:Body>
</soap:Envelope>

Code Examples

C# Example

var client = new TaskService();
String ServiceName = "sample string";
String Sign = "base64signature";
DateTime dtMinDate = DateTime.Now;
Int32 nMinCnt = 123;
CTask[] tasks;

var result = client.TaskListSyncByDate(ServiceName, Sign, dtMinDate, nMinCnt, out tasks);

Python Example (using zeep)

from zeep import Client

client = Client('https://your-service.com/TaskService.asmx?WSDL')

# Prepare parameters
ServiceName = 'sample string'
Sign = 'base64signature'
dtMinDate = datetime.now()
nMinCnt = 123

result = client.service.TaskListSyncByDate(ServiceName, Sign, dtMinDate, nMinCnt)
print(result)

JavaScript Example (using axios)

const axios = require('axios');

const soapRequest = `
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <TaskListSyncByDate xmlns="http://mentor.web.money/taskservice">
      <ServiceName>${ServiceName}</ServiceName>
      <Sign>${Sign}</Sign>
      <dtMinDate>${dtMinDate}</dtMinDate>
      <nMinCnt>${nMinCnt}</nMinCnt>
    </TaskListSyncByDate>
  </soap:Body>
</soap:Envelope>`;

async function call() {
  const response = await axios.post(
  'https://mentor.web.moneyTaskService.asmx',
  soapRequest,
  {
    headers: {
      'Content-Type': 'text/xml; charset=utf-8',
      'SOAPAction': '"http://mentor.web.money/taskservice/TaskListSyncByDate"'
    }
  }
);

  console.log(response.data);
}
call().catch(console.error);

โฌ†๏ธ Back to TaskService | ๐Ÿ  Documentation Home | ๐Ÿ’ป Code Examples

results matching ""

    No results matching ""