function test_fetchTag($tag_name = null) { $apiKey = $this->apiKey; $secretKey = $this->secretKey; $channel = new Channel($apiKey, $secretKey); $optional[Channel::TAG_NAME] = $tag_name; $ret = $channel->fetchTag($optional); if (false === $ret) { error_output('WRONG, ' . __FUNCTION__ . ' ERROR!!!!!'); error_output('ERROR NUMBER: ' . $channel->errno()); error_output('ERROR MESSAGE: ' . $channel->errmsg()); error_output('REQUEST ID: ' . $channel->getRequestId()); } else { right_output('SUCC, ' . __FUNCTION__ . ' OK!!!!!'); right_output('result: ' . print_r($ret, true)); } }
/** * App Server查询应用标签 * @param type $paramArr * @return type */ public static function fetchTag($paramArr) { $options = array('apiKey' => '', 'secretKey' => '', 'tagName' => ''); if (is_array($paramArr)) { $options = array_merge($options, $paramArr); } extract($options); $channel = new Channel($apiKey, $secretKey); $optional[Channel::TAG_NAME] = $tagName; $ret = $channel->fetchTag($optional); return $ret; }