Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/qbhy/open-taobao
淘宝开放平台sdk,含淘宝客API
https://github.com/qbhy/open-taobao
Last synced: 20 days ago
JSON representation
淘宝开放平台sdk,含淘宝客API
- Host: GitHub
- URL: https://github.com/qbhy/open-taobao
- Owner: qbhy
- License: mit
- Created: 2020-01-14T07:55:54.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-03-19T15:34:22.000Z (almost 2 years ago)
- Last Synced: 2024-11-08T06:12:10.567Z (about 1 month ago)
- Language: PHP
- Size: 94.7 KB
- Stars: 16
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE.md
Awesome Lists containing this project
README
# open-taobao
淘宝开放平台sdk (含淘宝客API),支持 laravel。* API 齐全
* 丰富合理的注释
* 完善的参数提示
* 支持 `composer` 安装
* 支持 `laravel/lumen` 框架## 部分代码截图
![代码截图](code.png)## 安装 - install
```bash
$ composer require 96qbhy/open-taobao
```## 使用 - usage
```php
require 'vendor/autoload.php';$app = new Qbhy\OpenTaobao\OpenTaobao([
'debug' => true,
'app_key' => 'your app key',
'app_secret' => 'your app secret'
]);// 获取推荐商品
$app->tbk->itemRecommends('595866143271', 'title');// 部分API没有封装成具体方法,你也可以自行调用 request 方法
$app->request('方法', ['参数'=> '值']);
```## 测试 - tests
1. 复制 phpunit.xml 配置文件
```bash
$ cp example.phpunit.xml phpunit.xml
```
2. 修改配置文件环境变量部分
```xml
```
3. 执行测试用例
```bash
$ vendor/bin/phpunit
```
php吹水交流群请添加: 873213948
[email protected]