微信小店 带货联盟

wechat_api.php 1.8KB

123456789101112131415161718192021222324
  1. <?php
  2. return [
  3. 'config' => [
  4. 'app_id' => '',
  5. 'secret' => ''
  6. ],
  7. 'stable_token' => 'https://api.weixin.qq.com/cgi-bin/stable_token',
  8. 'access_token' => 'https://api.weixin.qq.com/cgi-bin/token',
  9. 'goods_list' => 'https://api.weixin.qq.com/channels/ec/league/headsupplier/item/list/get?access_token=',# 获取结构合作商品ID列表
  10. 'goods_info' => 'https://api.weixin.qq.com/channels/ec/league/headsupplier/item/get?access_token=',# 获取机构合作商品详情
  11. 'promote_goods_list' => 'https://api.weixin.qq.com/channels/ec/promoter/get_promote_product_list?access_token=',# 获取推客可推广的商品ID列表
  12. 'promote_goods_info' => 'https://api.weixin.qq.com/channels/ec/promoter/get_promote_product_detail?access_token=',# 获取推客可推广的商品详情
  13. 'order_list' => 'https://api.weixin.qq.com/channels/ec/league/headsupplier/order/list/get?access_token=',# 获取佣金单列表
  14. 'order_info' => 'https://api.weixin.qq.com/channels/ec/league/headsupplier/order/get?access_token=',# 获取佣金单详情
  15. 'promote_link_info' => 'https://api.weixin.qq.com/channels/ec/promoter/get_product_promotion_link_info?access_token=',# 获取推客推广链接
  16. 'promote_goods_commission' => 'https://api.weixin.qq.com/channels/ec/promoter/get_sharer_product_commission_info?access_token=',# 获取设置的推客单个商品的佣金比例
  17. # 获取推客的注册状态,以及和机构的绑定状态
  18. 'get_promoter_register_and_bind_status' => 'https://api.weixin.qq.com/channels/ec/promoter/get_promoter_register_and_bind_status?access_token=',
  19. # 获取已经绑定的推客信息
  20. 'get_promoter_list' => 'https://api.weixin.qq.com/channels/ec/promoter/get_bind_sharer_list?access_token=',
  21. # 获取微信小程序用户信息
  22. 'code2session' => 'https://api.weixin.qq.com/sns/jscode2session?',
  23. ];