In this example we will request and receive recent events of any type or condition from whole time for which we have entries in an archive.
Example request to retrieve full list of all recent events.
<iq type="get" id="query1"> <query xmlns="urn:xmpp:tigase:recent"/> </iq>
Example response to retrieval of all recent events.
<iq id="1" xmlns="jabber:client" type="result"> <events xmlns="urn:xmpp:tigase:recent"> <event with="buddy-2@example.com" type="call" direction="from" condition="success" time="2017-01-21T10:06:10Z" /> <event with="some-room@muc.example.com" type="groupchat" direction="from" body="Welcome to our groupchat" time="2017-01-20T10:08:12Z"/> <event with="buddy-1@example.com" type="chat" direction="to" body="Hello world" time="2017-01-19T17:20:51Z" /> </events> </iq>