countMessages

Returns how many messages are in the inbox, outbox and unread. It replaces the function "checkUnreadMail".

Parameter
  • token (required): Authentification Token authenticate
  • format (optional): Response-Format (xml or json)

Sample Request

http://thats-me.ch/api/countMessages?token=a6ae29ffb43kf9h39fng3929fb2928ff


Sample Return

<?xml version="1.0" encoding="utf-8"?>

<count>
  <unread>
    <messages>0</messages>
    <notifications>0</notifications>
    <total>0</total>
  </unread>
  <inbox>
    <messages>690</messages>
    <notifications>437</notifications>
    <total>1127</total>
  </inbox>
  <outbox>
    <messages>650</messages>
    <notifications>636</notifications>
    <total>1286</total>
  </outbox>
</count>

Last edited Feb 4, 2011 at 12:30 PM by cansik, version 2

Comments

No comments yet.