Download the PHP package zhaozhaoxiao/jd-union-sdk without Composer

On this page you can find all versions of the php package zhaozhaoxiao/jd-union-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package jd-union-sdk

京东联盟SDK

本项目由 yumufeng 的项目修改,如有需要可以访问原repository:链接

京东联盟SDK,基于新版的

PHP =>7.0

composer require zhaozhaoxiao/jd-union-sdk

如果是在swoole 扩展下使用,支持协程并发,需要在编译swoole扩展的时候开启,系统会自动判断是否采用swoole

使用示例

说明文档

1.官方版本

以下官方版本传参参考:https://union.jd.com/#/openplatform/api

接口名称 [基础] 对应方法
jd.union.open.order.query (订单查询接口) \$client->promotion->order()
jd.union.open.goods.promotiongoodsinfo.query (获取推广商品信息接口) \$client->good->info()
jd.union.open.category.goods.get(商品类目查询) \$client->good->category()
jd.union.open.user.pid.get(获取PID) \$client->promotion->pid()
jd.union.open.promotion.common.get(获取通用推广链接) \$client->link->get()
jd.union.open.goods.jingfen.query (京粉精选商品查询接口) \$client->good->jingfen()
(京东商品详情图片集合接口) \$client->good->detailImgLists()
(京东主图图片集合接口) \$client->good->goodImgLists()
接口名称 [高级] 官方版 对应方法
jd.union.open.coupon.query(优惠券领取情况查询接口【申请】) \$client->coupon->query()
jd.union.open.goods.seckill.query(秒杀商品查询接口【申请】) \$client->good->seckill()
jd.union.open.goods.query(关键词商品查询接口【申请】) \$client->good->query()
jd.union.open.promotion.byunionid.get(通过unionId获取推广链接【申请】) \$client->link->byUnionId()
jd.union.open.coupon.importation(优惠券导入【申请】) \$client->coupon->importation()
jd.union.open.position.query(查询推广位【申请】) \$client->promotion->queryPosition()
jd.union.open.position.create(创建推广位【申请】) \$client->promotion->createPosition()

License

MIT


All versions of jd-union-sdk with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package zhaozhaoxiao/jd-union-sdk contains the following files

Loading the files please wait ....