WAPI – command poll-ack

Getting notifications from POLL queue is performed by combination of commands poll-req and poll-ack. Description of notifications system, you can find here WAPI – notifications. It is always necessary to download notification, then indicate as accepted and make available any other. Notifications are always returned from oldest to newest.

Parameters

  • id – notification id (obtained by poll-req)

Return Values

  • 1002 – indication of notification as received
  • 2151 – notification not found

Return data

Command  does not return anything except the return value.

Example

XML request:

<request>
 <user>tester</user>
 <auth>463870369aef393f3b82274107c9ade4b5b2a414</auth>
 <command>poll-ack</command>
 <clTRID>ngfNVDQxhWf3</clTRID>
 <data>
  <id>3</id>
 </data>
</request>

XML response:

<response>
 <code>1002</code>
 <result>Notification aquired</result>
 <timestamp>1286975529</timestamp>
 <clTRID>ngfNVDQxhWf3</clTRID>
 <svTRID>1286975529.2530.21369.1</svTRID>
 <command>poll-ack</command>
</response>

LEAVE A COMMENT