企微短剧业务系统

qyWechat.php 6.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?php
  2. return [
  3. 'suite_info' => [
  4. 'suite_id' => env('SUITE_ID', 'ww7f82cba9cf8b3149'), # 服务商suite_id
  5. 'app_template_id' => env('APP_TEMPLATE_ID', 'dkb6bc154e480e3ebc'), # 代开发应用模板ID
  6. 'corpid' => 'wwc8d3e33f8e096671', # 服务商suite_id
  7. 'suite_secret' => env('SUITE_SECRET', 'HYtwvlJlk0PbVnzQDgxY52feEK8s0Y5gLHYBT5l00uk'), # 服务商 appSecret
  8. 'app_template_secret' => env('APP_TEMPLATE_SECRET', 'LfHnVKW9XXbRwKHpoSYjQOGMP4eQHpdfu4rB0ChuLgU'), # 服务商 appSecret
  9. 'aes_key' => 'GMm8O34zhpjppB9Qjhpy11EX9QgyOe24FhcIz17ebUg', # 加解密的key
  10. 'auth_token' => 'NcAU', # 加解密的key
  11. ],
  12. 'redirect_uri' => 'api/empower', # 授权码回调地址
  13. 'pre_auth_code' => 'https://qyapi.weixin.qq.com/cgi-bin/service/get_pre_auth_code?suite_access_token=', # 预授权码获取
  14. 'component_url' => 'https://qyapi.weixin.qq.com/cgi-bin/service/get_suite_token', # 令牌获取url
  15. 'set_session_info' => 'https://qyapi.weixin.qq.com/cgi-bin/service/set_session_info?suite_access_token=', # 设置授权配置
  16. 'get_permanent_code' => 'https://qyapi.weixin.qq.com/cgi-bin/service/get_permanent_code?suite_access_token=', # 获取企业永久授权码
  17. 'get_corp_token' => 'https://qyapi.weixin.qq.com/cgi-bin/service/get_corp_token?suite_access_token=', # 获取企业凭证
  18. 'external_contact_detail' => 'https://qyapi.weixin.qq.com/cgi-bin/externalcontact/get?access_token=', # 获取客户详情信息
  19. 'send_message' => 'https://qyapi.weixin.qq.com/cgi-bin/externalcontact/add_msg_template?access_token=', # 创建企业群发
  20. 'mass_msg_send_result' => 'https://qyapi.weixin.qq.com/cgi-bin/externalcontact/get_groupmsg_send_result?access_token=', # 获取企业群发成员执行结果
  21. 'send_welcome_msg' => 'https://qyapi.weixin.qq.com/cgi-bin/externalcontact/send_welcome_msg?access_token=', # 发送新客户欢迎语
  22. 'upload_media' => 'https://qyapi.weixin.qq.com/cgi-bin/media/upload?access_token=', # 上传临时素材
  23. 'upload_attachment' => 'https://qyapi.weixin.qq.com/cgi-bin/media/upload_attachment?access_token=', # 上传附件资源
  24. 'send_app_msg' => 'https://qyapi.weixin.qq.com/cgi-bin/message/send?access_token=', # 发送应用消息
  25. 'get_access_token' => 'https://qyapi.weixin.qq.com/cgi-bin/gettoken?corpid=', # 通过代开发应用获取accessToken
  26. 'get_user_detail' => 'https://qyapi.weixin.qq.com/cgi-bin/user/get?access_token=', # 获取员工详情
  27. 'get_open_corpid' => 'https://qyapi.weixin.qq.com/cgi-bin/service/corpid_to_opencorpid?provider_access_token=', # 获取第三方应用获取的corpid
  28. 'sync_chat_msg' => 'https://qyapi.weixin.qq.com/cgi-bin/kf/sync_msg?access_token=', # 同步微信客户与客服消息记录
  29. 'mass_msg_task_status' => 'https://qyapi.weixin.qq.com/cgi-bin/externalcontact/get_groupmsg_task?access_token=', # 获取群发成员发送任务列表
  30. 'add_moment_task' => 'https://qyapi.weixin.qq.com/cgi-bin/externalcontact/add_moment_task?access_token=', # 创建朋友圈发表任务
  31. 'moment_common' => 'https://qyapi.weixin.qq.com/cgi-bin/externalcontact/', # 企微朋友圈
  32. 'get_moment_task_result' => 'https://qyapi.weixin.qq.com/cgi-bin/externalcontact/get_moment_task_result?access_token=',# 企业发表朋友圈获取任务创建结果
  33. 'get_moment_task' => 'https://qyapi.weixin.qq.com/cgi-bin/externalcontact/get_moment_task?access_token=',#获取客户朋友圈企业发表的列表
  34. 'user_conversation_report' => 'https://qyapi.weixin.qq.com/cgi-bin/externalcontact/get_user_behavior_data?access_token=', #获取员工客户会话统计
  35. 'update_customer_remark' => 'https://qyapi.weixin.qq.com/cgi-bin/externalcontact/remark?access_token=',# 修改客户备注信息
  36. 'get_jsapi_ticket' => 'https://qyapi.weixin.qq.com/cgi-bin/get_jsapi_ticket?access_token=', #获取企业的jsapi_ticket
  37. 'get_app_jsapi_ticket' => 'https://qyapi.weixin.qq.com/cgi-bin/ticket/get?type=agent_config&access_token=', #获取应用的jsapi_ticket,
  38. 'add_corp_tag' => 'https://qyapi.weixin.qq.com/cgi-bin/externalcontact/add_corp_tag?access_token=',#添加企业标签
  39. 'mark_tag' => 'https://qyapi.weixin.qq.com/cgi-bin/externalcontact/mark_tag?access_token=',#编辑客户企业标签
  40. 'simplelist' => 'https://qyapi.weixin.qq.com/cgi-bin/department/simplelist?access_token=',# 获取企微下已授权的部门列表
  41. 'get_follow_user_list' => 'https://qyapi.weixin.qq.com/cgi-bin/externalcontact/get_follow_user_list?access_token=',# 获取企业配置了联系我功能的客服列表
  42. 'get_department_info' => 'https://qyapi.weixin.qq.com/cgi-bin/department/get?access_token=',# 获取部门详情
  43. 'get_user_info' => 'https://qyapi.weixin.qq.com/cgi-bin/user/getuserinfo?access_token=', #获取访问用户身份
  44. 'transfer_customer_on_job' => 'https://qyapi.weixin.qq.com/cgi-bin/externalcontact/transfer_customer?access_token=', # 分配在职成员客户
  45. 'get_unassigned_list' => 'https://qyapi.weixin.qq.com/cgi-bin/externalcontact/get_unassigned_list?access_token=', # 查询企业待分配的客户列表
  46. 'transfer_customer_quit' => 'https://qyapi.weixin.qq.com/cgi-bin/externalcontact/resigned/transfer_customer?access_token=',# 分配离职成员的客户
  47. 'group_chat_list' => 'https://qyapi.weixin.qq.com/cgi-bin/externalcontact/groupchat/list?access_token=',# 获取客户群列表
  48. 'group_chat_detail' => 'https://qyapi.weixin.qq.com/cgi-bin/externalcontact/groupchat/get?access_token=',# 获取客户群详情
  49. 'userid_to_open_userid' => 'https://qyapi.weixin.qq.com/cgi-bin/batch/userid_to_openuserid?access_token=',# userid转换为open_userid
  50. 'add_group_join_way' => 'https://qyapi.weixin.qq.com/cgi-bin/externalcontact/groupchat/add_join_way?access_token=',# 配置客户群进群方式
  51. 'get_group_join_way' => 'https://qyapi.weixin.qq.com/cgi-bin/externalcontact/groupchat/get_join_way?access_token=',# 获取客户群进群方式配置
  52. 'update_group_join_way' => 'https://qyapi.weixin.qq.com/cgi-bin/externalcontact/groupchat/update_join_way?access_token=',# 更新客户群进群方式配置
  53. 'del_group_join_way' => 'https://qyapi.weixin.qq.com/cgi-bin/externalcontact/groupchat/del_join_way?access_token=',# 删除客户群进群方式配置
  54. ];