The Basics

cmd=listMailboxes

Parameters
None.
Example
https://kakapo.fogbugz.com/api.asp?cmd=listMailboxes&token=04t6193822pekbba09nt74ninuihk2
Returns
Data for all mailboxes that the logged in user has access to.
cmd=viewMailbox

Parameters
Requiries ixMailbox.
Example
https://kakapo.fogbugz.com/api.asp?cmd=viewMailbox&ixMailbox=2&token=erd3d6kuivqds2fdd7mdvj4knb8s3f
Returns
Data for the selected mailbox. 

List Mailboxes (cmd=listMailboxes)

URL
https://kakapo.fogbugz.com/api.asp?cmd=listMailboxes&token=04t6193822pekbba09nt74ninuihk2
fogbugz.py
fb.listMailboxes()

Successful Response

For the sake of space, the sample below includes only one mailbox. This command will return the details for all mailboxes between the <response> tags.

XML
<response>
  <mailboxes>
        <mailbox>
      <ixMailbox>2</ixMailbox>
      <sEmail>
        <![CDATA[ "FogBugz On Demand" <cases@kakapo.fogbugz.com> ]]>
      </sEmail>
      <sEmailUser>
        <![CDATA[ "Elinor Bennett" <cases@kakapo.fogbugz.com> ]]>
      </sEmailUser>
      <sTemplate>
        <![CDATA[
        --  {fullname} {email} --------------------------------------------------------------------------- Powered by FogBugz from Fog Creek Software. http://www.fogcreek.com/fogbugz
]]>
      </sTemplate>
        </mailbox>
  </mailboxes>
</response>

View a Single Mailbox (cmd=viewMailbox)

URL
https://kakapo.fogbugz.com/api.asp?cmd=viewMailbox&ixMailbox=2&token=erd3d6kuivqds2fdd7mdvj4knb8s3f
fogbugz.py
fb.viewMailbox(ixMailbox=2)

Possible Responses

Successful Response
XML
<response>
      <mailbox>
    <ixMailbox>2</ixMailbox>
    <sEmail>
      <![CDATA[ "FogBugz On Demand" <cases@kakapo.fogbugz.com> ]]>
    </sEmail>
    <sEmailUser>
      <![CDATA[ "Elinor Bennett" <cases@kakapo.fogbugz.com> ]]>
    </sEmailUser>
    <sTemplate>
      <![CDATA[
      --  {fullname} {email} --------------------------------------------------------------------------- Powered by FogBugz from Fog Creek Software. http://www.fogcreek.com/fogbugz
]]>
    </sTemplate>
      </mailbox>
</response>
No Such Mailbox
XML
</response>