Get My Last Stats

Description

Retrieves the bonus statistics for the last 30 days.

HTTP Method

GET

Path

/bonuses/stats/last

Authentication

Requires an authenticated user.

Parameters

No Parameters.

Error Codes

150001 ( Common )

The endpoint requires an authenticated account

80000 ( Bonus )

An unhandled exception has occured.

Response Schema

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<xs:schema elementFormDefault="qualified" version="1.0" targetNamespace="http://xsd.poken.com" xmlns:tns="http://xsd.poken.com" xmlns:xs="http://www.w3.org/2001/XMLSchema">

  <xs:element name="bonusLastStats">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="statLine" type="tns:lastStatsLine" maxOccurs="unbounded"/>
      </xs:sequence>
    </xs:complexType>
  </xs:element>

  <xs:complexType name="lastStatsLine">
    <xs:sequence>
      <xs:element name="date" type="xs:dateTime"/>
      <xs:element name="bonusType" type="tns:BonusType"/>
      <xs:element name="bonusTotal" type="xs:double"/>
    </xs:sequence>
  </xs:complexType>

  <xs:simpleType name="BonusType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="UserLogin"/>
      <xs:enumeration value="UserOrParentBuy"/>
      <xs:enumeration value="GrandParentBuy"/>
      <xs:enumeration value="UserActivatePoken"/>
      <xs:enumeration value="ParentActivatePoken"/>
      <xs:enumeration value="UserPoke"/>
      <xs:enumeration value="ParentPoke"/>
      <xs:enumeration value="GrandParentPoke"/>
      <xs:enumeration value="UserPokeParent"/>
      <xs:enumeration value="ParentPokeUser"/>
      <xs:enumeration value="UserMisc"/>
      <xs:enumeration value="UserProfileInfoSet"/>
      <xs:enumeration value="ObjectCollected"/>
    </xs:restriction>
  </xs:simpleType>
</xs:schema>

Sample Response

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<bonusLastStats xmlns="http://xsd.poken.com">
  <statLine>
    <date>2009-08-17T10:42:03.432+02:00</date>
    <bonusType>UserActivatePoken</bonusType>
    <bonusTotal>8.0</bonusTotal>
  </statLine>
  <statLine>
    <date>2009-08-17T10:42:03.432+02:00</date>
    <bonusType>UserPoke</bonusType>
    <bonusTotal>5.0</bonusTotal>
  </statLine>
</bonusLastStats>