Giter Site home page Giter Site logo

laravel-duoduoke's Introduction

拼多多-多多客API Laravel-SDK

环境要求

  • Laravel 5+
  • Composer
  • ext-curl 拓展

安装

composer require jassue/laravel-duoduoke

配置

  1. config/app.php 注册 ServiceProvider 和 Facade (Laravel 5.5 + 无需手动注册)
'providers' => [
    // ...
    Jassue\LaravelDuoDuoKe\ServiceProvider::class,
],
'aliases' => [
    // ...
    'DuoDuoKe' => Jassue\LaravelDuoDuoKe\Facades\Client::class,
],
  1. 创建配置文件
php artisan vendor:publish --provider="Jassue\LaravelDuoDuoKe\ServiceProvider"
  1. 修改应用根目录下 config/pdd-sdk.php 对应参数配置

使用

use Jassue\LaravelDuoDuoKe\Facades\Client;

// 获取爆款排行商品接口
// 方式一
$result = Client::topGoodsListQuery();
// 方式二
$result = Client::request('pdd.ddk.top.goods.list.query', [])

相关文档

License

MIT

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.