<?php
// +----------------------------------------------------------------------
// | JuhePHP [ NO ZUO NO DIE ]
// +----------------------------------------------------------------------
// | Copyright (c) 2010-2015 http://juhe.cn All rights reserved.
// +----------------------------------------------------------------------
// | Author: Juhedata
// +----------------------------------------------------------------------
//----------------------------------
// 商标信息查询调用示例代码 - 聚合数据
// 在线接口文档:http://www.juhe.cn/docs/178
//----------------------------------
// header('Content-type:text/html;charset=utf-8');
// //配置您申请的appkey
// $appKey = "TEST_1937776345";
// $apiPassword = "smUl3E7WaH";
// //************1.模糊查询商标列表************
// $url = "http://api.tmkoo.com/search.php?keyword=APPLE&apiKey=TEST_1937776345&apiPassword=smUl3E7WaH&pageSize=30&pageNo=1&intCls=0";
// // $url ="http://api.tmkoo.com/data-status.php?apiKey=TEST_1937776345&apiPassword=smUl3E7WaH&pageSize=30&pageNo=1";
// $tmName = $_POST['tmName'];
// $params = array(
// "key" => $appKey,//您申请的appKey
// // "apiPassword" => $apiPassword,
// "keywords" => $tmName,//待搜索的关键词
// "pageSize" => 30,// 页面大小,即一次api调用最大获取多少条记录,取值范围:[1-50]
// "pageNo" => 1,//当前页码数,即本次api调用是获得结果的第几页,从1开始计数
// "intCls" => 0,//默认 =0,0:全部国际分类,非0:限定在指定类别,类别间用分号分割。如:4;12;34 表示在第4、12、34类内查询
// "searchType" => 4,
// );
// // $paramstring = http_build_query($params);
// // $content = juhecurl($url,$paramstring);
// // $result = json_decode($content,true);
// if($_POST['dosubmit']){
// $paramstring = http_build_query($params);
// $content = juhecurl($url,$paramstring);
// $result = json_decode($content,true);
// // print_r($result);
// // print_r($result[results]);
// }else{
// echo "请求失败";
// }
?>
×
商标查询