public function getMerchantList()
{
$merchants = array();
$valuesFromExport = array();
$valuesFromExport[] = new \Oara\Curl\Parameter('api_key', $this->_apiPassword);
$valuesFromExport[] = new \Oara\Curl\Parameter('limit', 0);
$urls = array();
$urls[] = new \Oara\Curl\Request('http://p.wowtrk.com/offers/offers.xml?', $valuesFromExport);
$exportReport = $this->_exportClient->get($urls);
$exportData = self::loadXml($exportReport[0]);
foreach ($exportData->offer as $merchant) {
$obj = array();
$obj['cid'] = (int) $merchant->id;
$obj['name'] = (string) $merchant->name;
$obj['url'] = (string) $merchant->preview_url;
$merchants[] = $obj;
}
return $merchants;
}