Skip to content

Commit

Permalink
超级分类API
Browse files Browse the repository at this point in the history
  • Loading branch information
hwp committed Jul 7, 2020
1 parent 58f673c commit 1da597c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
8 changes: 7 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
],
"require": {
"php": ">=7.0",
"yumufeng/curl-swoole": "^1.0"
"yumufeng/curl-swoole": "^1.0",
"ext-json": "*"
},
"autoload": {
"classmap": [
Expand All @@ -18,6 +19,11 @@
"HaoDanKuSdk\\": "src"
}
},
"autoload-dev": {
"psr-4": {
"HaoDanKuSdk\\test\\": "test"
}
},
"repositories": {
"packagist": {
"type": "composer",
Expand Down
11 changes: 11 additions & 0 deletions src/Api/Search.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,15 @@ public function hotKeyword(array $params = [])
}
return $this->send('hot_key', $params);
}

/**
* 超级分类API
* @link https://www.haodanku.com/api/detail/show/9.html
* @param array $params
* @return bool|mixed
*/
public function superClassify(array $params = [])
{
return $this->send('super_classify', $params);
}
}

0 comments on commit 1da597c

Please sign in to comment.