All Projects → orzcc → Taobao Top Client

orzcc / Taobao Top Client

Taobao top client(SDK) for laravel

Projects that are alternatives of or similar to Taobao Top Client

Larasupport
📦 Adds Laravel Packages Support to Lumen and Vendor Publish Artisan Command.
Stars: ✭ 104 (-0.95%)
Mutual labels:  laravel, lumen
Http Basic Auth Guard
HTTP Basic Auth Guard for Lumen 5.x
Stars: ✭ 39 (-62.86%)
Mutual labels:  laravel, lumen
Jsonrpc
JsonRpc Server extension for Laravel/Lumen
Stars: ✭ 23 (-78.1%)
Mutual labels:  laravel, lumen
Laravel Responder
A Laravel Fractal package for building API responses, giving you the power of Fractal with Laravel's elegancy.
Stars: ✭ 673 (+540.95%)
Mutual labels:  laravel, lumen
Laravel Sqs Fifo Queue
Adds a Laravel queue driver for Amazon SQS FIFO queues.
Stars: ✭ 75 (-28.57%)
Mutual labels:  laravel, lumen
Laravel Elasticsearch
An easy way to use the official Elastic Search client in your Laravel applications.
Stars: ✭ 717 (+582.86%)
Mutual labels:  laravel, lumen
Freshdesk Laravel
Freshdesk Service Provider for Laravel 5 and Lumen
Stars: ✭ 14 (-86.67%)
Mutual labels:  laravel, lumen
Laravel Migrations Generator
Laravel Migrations Generator: Automatically generate your migrations from an existing database schema.
Stars: ✭ 417 (+297.14%)
Mutual labels:  laravel, lumen
Laravel Health Check
A package for checking the health of your Laravel & Lumen applications
Stars: ✭ 59 (-43.81%)
Mutual labels:  laravel, lumen
Kickstarts
💻 No setup, just development!
Stars: ✭ 57 (-45.71%)
Mutual labels:  laravel, lumen
Lumen Generator
A Lumen Generator You Are Missing
Stars: ✭ 578 (+450.48%)
Mutual labels:  laravel, lumen
Larafast Fastapi
A Fast Laravel package to help you generate CRUD API Controllers and Resources, Model.. etc
Stars: ✭ 91 (-13.33%)
Mutual labels:  laravel, lumen
Laravel Soap
A soap client wrapper for Laravel
Stars: ✭ 559 (+432.38%)
Mutual labels:  laravel, lumen
Bugsnag Laravel
Bugsnag notifier for the Laravel PHP framework. Monitor and report Laravel errors.
Stars: ✭ 746 (+610.48%)
Mutual labels:  laravel, lumen
Rest Api With Lumen
Rest API boilerplate for Lumen micro-framework.
Stars: ✭ 464 (+341.9%)
Mutual labels:  laravel, lumen
Lumen Api Demo
Lumen rest api demo with Dingo/Api, JWT, CORS, PHPUNIT
Stars: ✭ 856 (+715.24%)
Mutual labels:  laravel, lumen
Laravel Swoole
High performance HTTP server based on Swoole. Speed up your Laravel or Lumen applications.
Stars: ✭ 3,726 (+3448.57%)
Mutual labels:  laravel, lumen
Elasticsearch
The missing elasticsearch ORM for Laravel, Lumen and Native php applications
Stars: ✭ 375 (+257.14%)
Mutual labels:  laravel, lumen
Socialite
Socialite is an OAuth2 Authentication tool. It is inspired by laravel/socialite, you can easily use it without Laravel.
Stars: ✭ 1,026 (+877.14%)
Mutual labels:  taobao, laravel
Laravel Url Shortener
Powerful URL shortening tools in Laravel
Stars: ✭ 80 (-23.81%)
Mutual labels:  laravel, lumen

淘宝客API for laravel/lumen

当前淘宝客 API 升级为2.0,原「淘宝客初级包」合并到了「淘宝客基础API」。

laravel

安装

composer require orzcc/taobao-top-client

配置

  • 在config/app.php中的providers数组中添加Orzcc\TopClient\TopClientServiceProvider::class,
  • 在config/app.php中的aliases数组中添加'TopClient' => Orzcc\TopClient\Facades\TopClient::class,
  • 执行 php artisan vendor:publish --provider="Orzcc\TopClient\TopClientServiceProvider" 生成配置文件
  • 编辑.env文件,设置appid,appsecret

示例代码

use TopClient;
use TopClient\request\TbkItemGetRequest;

$topclient = TopClient::connection();
$req = new TbkItemGetRequest;
$req->setFields("num_iid,title,pict_url,reserve_price,zk_final_price,user_type,provcity,item_url");
$req->setQ('手机');
$req->setSort("tk_total_sales");
$req->setPageNo('1'); // 实验后发现必需用字符串的数字才能正确分页
$req->setPageSize('40');
$resp = $topclient->execute($req);
dd($resp);

lumen

安装

composer require orzcc/taobao-top-client

配置

  • 手动复制vendor/orzcc/taobao-top-client/config/taobaotop.php到config目录下
  • 在bootstrap/app.php下添加
if (!class_exists('TopClient')) {
    class_alias('Orzcc\TopClient\Facades\TopClient', 'TopClient');
}
$app->register(Orzcc\TopClient\TopClientServiceProvider::class);
  • 编辑.env文件,设置appid,appsecret

示例代码

use TopClient;
use TopClient\request\TbkItemGetRequest;

$topclient = TopClient::connection();
$req = new TbkItemGetRequest;
$req->setFields("num_iid,title,pict_url,reserve_price,zk_final_price,user_type,provcity,item_url");
$req->setQ('手机');
$req->setSort("tk_total_sales");
$req->setPageNo('1'); // 实验后发现必需用字符串的数字才能正确分页
$req->setPageSize('40');
$resp = $topclient->execute($req);
dd($resp);

Sponsor

TechLifeLand

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].