Пример #1
0
 /**
  * @param string $type
  * @param array $options
  */
 public function __construct($type, $options = [])
 {
     $this->type = $type;
     $this->APIVersion = TypeAPIVersionMap::getAPIVersion($type);
     $this->options = $this->buildOptionsArray($options);
     $this->loadRequestDefinition();
     $this->mergePresets();
     $this->options['export_columns'] = $this->getExpectedResultColumns();
     $this->validate();
 }
 /**
  * Test getting API version
  */
 public function testgetAPIVersion()
 {
     $this->assertEquals(1, TypeAPIVersionMap::getAPIVersion("domain_ranks"));
     $this->assertEquals(2, TypeAPIVersionMap::getAPIVersion("advertiser_publishers"));
 }