Get a Friends Bonus Points

Description

Retrieves the number of points for a specific friend.

HTTP Method

GET

Path

/bonuses/friends/{accountId}

Authentication

Requires an authenticated user.

Parameters

Table 7.  Parameters for " Get a Friends Bonus Points "

NameTypeValue TypeDescription
accountIdPATHlongThe id of your friend for which you want to retrive the bonus points information.

Error Codes

150001 ( Common )

The endpoint requires an authenticated account

80000 ( Bonus )

An unhandled exception has occured.

80001 ( Bonus )

You are tring to get data from an user that is not your friend.

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="bonusFriends">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="points" type="tns:friendPoints" nillable="true" minOccurs="0" maxOccurs="unbounded"/>
      </xs:sequence>
    </xs:complexType>
  </xs:element>

  <xs:complexType name="friendPoints">
    <xs:sequence>
      <xs:element name="accountId" type="xs:long"/>
      <xs:element name="totalPoints" type="xs:double"/>
    </xs:sequence>
  </xs:complexType>
</xs:schema>

Sample Response

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
 <bonusFriends xmlns="http://xsd.poken.com">
   <points>
     <accountId>904</accountId>
     <totalPoints>123</totalPoints>
   </points>
 </bonusFriends>