Code Monkey home page Code Monkey logo

jddj's Introduction

京东到家 PHP SDK

👏京东到家PHP SDK😘😘

安装

composer require abbotton/jddj

使用

<?php
use Abbotton\Jddj\Application;
......
$config = [
    'app_key' => 'xxx',
    'app_secret' => 'xxx',
    'token' => 'xxx',
    'sandbox' => false
];
$app = new Application($config);
// 获取店铺已上传商品列表
$result = $app->pms->querySkuInfos(['pageNo' => 1, 'pageSize' => 20]);
var_dump($result);

模块与类的对应关系

模块名称 对应类
售后类 $app->afs
财务类 $app->finance
订单类 $app->order
商品类 $app->pms
价格类 $app->price
库存类 $app->stock
门店类 $app->store
工具类 $app->tool
单品运费促销 $app->freightPromote
满减 $app->fullCutPromote
拼团类 $app->groupActivity
限时抢 $app->limitTime
新版订单级促销 $app->newOrderDiscount
优惠券查询 $app->openPlatformService
多买多折 $app->orderDiscount
组合购 $app->promPackage
第二件N折 $app->secondFold
单品买赠 $app->singleGift
单品直降 $app->singlePromote
X元Y件 $app->xyPromote
预售 $app->preSell

审计查询模块已整合,故不单独列出。

Change Log

  • 2020年4月10日

    • v1.0.0发布 ✨
  • 2021年01月12日

    • v1.0.2发布

      • 同步官方接口
      • 增加单元测试
      • 增加github杂项
      • 优化代码结构
    • v1.0.3发布

      • 修改guzzlehttp组件版本号
  • 2021年4月30日

    • v1.0.4发布
      • 添加商品和订单增量接口,标记部分已废弃接口
  • 2021年5月11日

    • v1.0.5发布
      • 同步官方接口
  • 2021年9月7日

    • v1.0.6发布
      • 移除下线接口
      • 集成Github Action
      • 同步官方接口
  • 2021年9月21日

    • v1.0.7发布
      • 同步官方接口
  • 2021年10月27日

    • v1.0.8发布
      • 同步官方接口
  • 2022年01月22日

    • v1.0.9发布
      • 同步官方接口

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.