ClassData.php 626 Bytes
<?php
namespace LibModels\Wap\Category;

use Api\Yohobuy;
use Api\Sign;

/**
 * 品类数据接口操作类
 * 
 * @name ClassData
 * @package Library/LibModels/wap/Category
 * @copyright yoho.inc
 * @version 1.0 (2015-10-10)
 * @author gtskk <rocky.zhang@yoho.cn>
 */
class ClassData
{
	/**
	 * 获取品类数据
	 * 
	 * @return array 品类数据
	 */
    public static function getClassesData()
    {
		// 构建必传参数
		$param = Yohobuy::param();

		$param['method'] = 'app.sort.get';
        $param['client_secret'] = Sign::getSign($param);
        
        return Yohobuy::get(Yohobuy::API_URL, $param);
    }
}