Retrieve Campaign Disclaimer

Description

This method returns the disclaimer info of the campaign this device is linked to.

HTTP Method

GET

Path

/devices/{deviceId}/campaign

Authentication

Does not require user authentication.

Parameters

Table 25.  Parameters for " Retrieve Campaign Disclaimer "

NameTypeValue TypeDescription
deviceIdPATHStringThe id of the poken device get the campign it might be likend to.

Error Codes

20000 ( Device )

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:xs="http://www.w3.org/2001/XMLSchema">

  <xs:element name="deviceCampaignDisclaimer">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="campaignId" type="xs:long" minOccurs="0"/>
        <xs:element name="campaign" type="xs:string"/>
        <xs:element name="organization" type="xs:string"/>
        <xs:element name="shareInfoComments" type="xs:string"/>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>

Sample Response

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<deviceCampaignDisclaimer xmlns="http://xsd.poken.com">
  <campaignId>123456</campaignId>
  <campaign>IBEM</campaign>
  <organization>IBEM s.a.</organization>
  <shareInfoComments>By linking this device to your account, you agree you are over 18.</shareInfoComments>
</deviceCampaignDisclaimer>