WxServiceKfInterface.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?php
  2. namespace App\Repositories\Contracts;
  3. /**
  4. *
  5. * @author lilin
  6. *
  7. */
  8. interface WxServiceKfInterface
  9. {
  10. const TYPENAME = '微信公众号-客服接口 ';
  11. /**
  12. * 添加客服帐号 POST
  13. * @var string
  14. */
  15. const URL_KF_ADD= 'https://api.weixin.qq.com/customservice/kfaccount/add?access_token=ACCESS_TOKEN';
  16. /**
  17. * 修改客服帐号 POST
  18. * @var string
  19. */
  20. const URL_KF_UPDATE = 'https://api.weixin.qq.com/customservice/kfaccount/update?access_token=ACCESS_TOKEN';
  21. /**
  22. * 删除客服帐号 POST
  23. * @var string
  24. */
  25. const URL_KF_DEL = 'https://api.weixin.qq.com/customservice/kfaccount/del?access_token=ACCESS_TOKEN';
  26. /**
  27. * 设置客服帐号的头像 POST/FORM 文件必须是jpg 推荐使用640*640
  28. * @var string
  29. */
  30. const URL_KF_UPLOADHEADIMG = 'http://api.weixin.qq.com/customservice/kfaccount/uploadheadimg?access_token=ACCESS_TOKEN&kf_account=KFACCOUNT';
  31. /**
  32. * 获取所有客服账号 GET
  33. * @var string
  34. */
  35. const URL_KF_LIST = 'https://api.weixin.qq.com/cgi-bin/customservice/getkflist?access_token=ACCESS_TOKEN';
  36. /**
  37. * 发消息(各种信息) POST
  38. * @var string
  39. */
  40. const URL_KF_SEND = 'https://api.weixin.qq.com/cgi-bin/message/custom/send?access_token=ACCESS_TOKEN';
  41. /**
  42. * 客服输入状态 POST
  43. * @var string
  44. */
  45. const URL_KF_TYPING = 'https://api.weixin.qq.com/cgi-bin/message/custom/typing?access_token=ACCESS_TOKEN';
  46. }