WSDL Page:  http://<your_domain_here>/api/3/export.asmx?op=RuleTargets

 

Parameter Summary:

api_key / STRING = Admin API Key {See get.asmx > GetAPIKey}

rule_id / ID = CAKE Rule ID

 

Parameter Types:

api_key - ID

rule_id - ID

 

Sample GET Call:

http://demo.cakemarketing.com/api/3/export.asmx/RuleTargets?api_key=dNJFmId9rI&rule_id=238

 

Sample XML Response:

<rule_targets_export_response>
  <success>true</success>
  <row_count>1</row_count>
  <rule_targets>
    <rule_target>
      <rule_target_id>231</rule_target_id>
      <rule_target_type>
        <rule_target_type_id>3</rule_target_type_id>
        <rule_target_type_name>Device</rule_target_type_name>
      </rule_target_type>
      <exclude>false</exclude>
      <operator>
        <operator_id>10</operator_id>
        <operator_name>listcontains</operator_name>
        <operator_label>List Contains</operator_label>
      </operator>
      <percentage_split xsi:nil="true"/>
      <devices>
        <device>
          <device_id>1658</device_id>
          <device_name>10 G2</device_name>
        </device>
        <device>
          <device_id>780</device_id>
          <device_name>Ipad</device_name>
        </device>
        <device>
          <device_id>183</device_id>
          <device_name>Ipod Touch</device_name>
        </device>
        <device>
          <device_id>305</device_id>
          <device_name>Quicktime Agent</device_name>
        </device>
        <device>
          <device_id>189</device_id>
          <device_name>Sidekick Ii</device_name>
        </device>
      </devices>
    </rule_target>
  </rule_targets>
</rule_targets_export_response>