### Mini Program Login API Source: https://developer.work.weixin.qq.com/document/path/90664 Standard authentication flow for WeChat Work Mini Programs. ```APIDOC ## POST /cgi-bin/miniprogram/jscode2session ### Description Exchanges a code obtained from wx.qy.login for a session_key and user information. ### Method GET ### Endpoint /cgi-bin/miniprogram/jscode2session ### Parameters #### Query Parameters - **access_token** (string) - Required - Interface call credential - **js_code** (string) - Required - Login code obtained via wx.qy.login ### Response #### Success Response (200) - **userid** (string) - User ID in the enterprise - **session_key** (string) - Session key for encrypted data decryption - **corpid** (string) - Enterprise ID ``` -------------------------------- ### 文档 Source: https://developer.work.weixin.qq.com/document/path/90664 管理企业内部的文档、表格和收集表。 ```APIDOC ## 文档 ### 概述 提供文档、表格和收集表管理功能。 ## 管理文档 ### 新建文档 **Method**: POST **Endpoint**: `/wiki/create` ### 重命名文档 **Method**: POST **Endpoint**: `/wiki/rename` ### 删除文档 **Method**: POST **Endpoint**: `/wiki/delete` ### 获取文档基础信息 **Method**: GET **Endpoint**: `/wiki/get` ### 分享文档 **Method**: POST **Endpoint**: `/wiki/share` ## 管理文档内容 ### 编辑文档内容 **Method**: POST **Endpoint**: `/wiki/edit_content` ### 获取文档数据 **Method**: GET **Endpoint**: `/wiki/get_content` ## 管理表格内容 ### 编辑表格内容 **Method**: POST **Endpoint**: `/sheet/edit` ### 获取表格行列信息 **Method**: GET **Endpoint**: `/sheet/get_meta` ### 获取表格数据 **Method**: GET **Endpoint**: `/sheet/get_data` ## 管理智能表格内容 ### 添加子表 **Method**: POST **Endpoint**: `/smart_sheet/add_sub_sheet` ### 删除子表 **Method**: POST **Endpoint**: `/smart_sheet/delete_sub_sheet` ### 更新子表 **Method**: POST **Endpoint**: `/smart_sheet/update_sub_sheet` ### 查询子表 **Method**: GET **Endpoint**: `/smart_sheet/query_sub_sheet` ### 添加视图 **Method**: POST **Endpoint**: `/smart_sheet/add_view` ### 删除视图 **Method**: POST **Endpoint**: `/smart_sheet/delete_view` ### 更新视图 **Method**: POST **Endpoint**: `/smart_sheet/update_view` ### 查询视图 **Method**: GET **Endpoint**: `/smart_sheet/query_view` ### 添加字段 **Method**: POST **Endpoint**: `/smart_sheet/add_field` ### 删除字段 **Method**: POST **Endpoint**: `/smart_sheet/delete_field` ### 更新字段 **Method**: POST **Endpoint**: `/smart_sheet/update_field` ### 查询字段 **Method**: GET **Endpoint**: `/smart_sheet/query_field` ### 添加记录 **Method**: POST **Endpoint**: `/smart_sheet/add_record` ### 删除记录 **Method**: POST **Endpoint**: `/smart_sheet/delete_record` ### 更新记录 **Method**: POST **Endpoint**: `/smart_sheet/update_record` ### 查询记录 **Method**: GET **Endpoint**: `/smart_sheet/query_record` ### 添加编组 **Method**: POST **Endpoint**: `/smart_sheet/add_group` ### 删除编组 **Method**: POST **Endpoint**: `/smart_sheet/delete_group` ### 更新编组 **Method**: POST **Endpoint**: `/smart_sheet/update_group` ### 获取编组 **Method**: GET **Endpoint**: `/smart_sheet/get_group` ## 设置文档权限 ### 获取文档权限信息 **Method**: GET **Endpoint**: `/wiki/get_permission` ### 修改文档加入规则 **Method**: POST **Endpoint**: `/wiki/set_join_rule` ### 修改文档成员与权限 **Method**: POST **Endpoint**: `/wiki/set_member_permission` ### 修改文档安全设置 **Method**: POST **Endpoint**: `/wiki/set_security` ## 管理智能表格内容权限 ## 管理收集表 ### 创建收集表 **Method**: POST **Endpoint**: `/collection/create` ### 编辑收集表 **Method**: POST **Endpoint**: `/collection/edit` ### 获取收集表信息 **Method**: GET **Endpoint**: `/collection/get` ### 收集表的统计信息查询 **Method**: GET **Endpoint**: `/collection/get_stats` ### 读取收集表答案 **Method**: GET **Endpoint**: `/collection/get_answers` ## 回调通知 ### 概述 接收文档和收集表相关的回调通知。 ### 修改文档成员事件 **Description**: 文档成员变更时的回调通知。 ### 删除文档事件 **Description**: 文档被删除时的回调通知。 ### 收集表完成事件 **Description**: 收集表完成时的回调通知。 ### 删除收集表事件 **Description**: 收集表被删除时的回调通知。 ### 修改收集表设置事件 **Description**: 收集表设置变更时的回调通知。 ### 字段变更事件 **Description**: 收集表字段变更时的回调通知。 ``` -------------------------------- ### 身份验证 Source: https://developer.work.weixin.qq.com/document/path/90664 处理企业微信的身份验证和登录流程。 ```APIDOC ## 网页授权登录 ### 开始开发 **Description**: 用于获取用户身份信息。 ### 构造网页授权链接 **Method**: GET **Endpoint**: `/connect/oauth2/authorize` ### 获取访问用户身份 **Method**: GET **Endpoint**: `/cgi-bin/user/getuserinfo` ### 获取访问用户敏感信息 **Method**: GET **Endpoint**: `/cgi-bin/user/getuserdetail` ## 企业微信Web登录 ### 开始开发 **Description**: 提供Web登录组件,简化登录流程。 ### Web登录组件 **Method**: GET **Endpoint**: `/cgi-bin/sso/get_login_url` ### 获取用户登录身份 **Method**: POST **Endpoint**: `/cgi-bin/sso/get_user_info` ### 二次验证 #### 概述 用于二次验证用户身份。 #### 获取用户二次验证信息 **Method**: POST **Endpoint**: `/cgi-bin/user/get_safe_info` #### 登录二次验证 **Method**: POST **Endpoint**: `/cgi-bin/user/check_identity` #### 使用二次验证 **Method**: POST **Endpoint**: `/cgi-bin/user/authsucc` ``` -------------------------------- ### 客户联系 Source: https://developer.work.weixin.qq.com/document/path/90664 管理企业与客户的联系方式、客户信息及客户群。 ```APIDOC ## 成员对外信息 ### 企业服务人员管理 #### 获取配置了客户联系功能的成员列表 **Method**: GET **Endpoint**: `/cgi-bin/kf/employee/list` ## 客户管理 ### 获取客户列表 **Method**: POST **Endpoint**: `/cgi-bin/externalcontact/list` ### 获取客户详情 **Method**: POST **Endpoint**: `/cgi-bin/externalcontact/get` ### 批量获取客户详情 **Method**: POST **Endpoint**: `/cgi-bin/externalcontact/batch/get` ### 修改客户备注信息 **Method**: POST **Endpoint**: `/cgi-bin/externalcontact/edit` ## 客户联系规则组管理 ## 客户标签管理 ### 管理企业标签 **Method**: POST **Endpoint**: `/cgi-bin/externalcontact/add_corp_tag` ### 管理企业规则组下的客户标签 **Method**: POST **Endpoint**: `/cgi-bin/externalcontact/tag/create` ### 编辑客户企业标签 **Method**: POST **Endpoint**: `/cgi-bin/externalcontact/tag/update` ## 在职继承 ### 分配在职成员的客户 **Method**: POST **Endpoint**: `/cgi-bin/externalcontact/transfer_contact` ### 查询客户接替状态 **Method**: POST **Endpoint**: `/cgi-bin/externalcontact/transfer_result` ### 分配在职成员的客户群 **Method**: POST **Endpoint**: `/cgi-bin/externalcontact/transfer_batch` ## 离职继承 ### 获取待分配的离职成员列表 **Method**: POST **Endpoint**: `/cgi-bin/externalcontact/get_unassigned_list` ### 分配离职成员的客户 **Method**: POST **Endpoint**: `/cgi-bin/externalcontact/transfer_contact` ### 查询客户接替状态 **Method**: POST **Endpoint**: `/cgi-bin/externalcontact/transfer_result` ### 分配离职成员的客户群 **Method**: POST **Endpoint**: `/cgi-bin/externalcontact/transfer_batch` ## 客户群管理 ### 获取客户群列表 **Method**: POST **Endpoint**: `/cgi-bin/externalcontact/groupchat/list` ### 获取客户群详情 **Method**: POST **Endpoint**: `/cgi-bin/externalcontact/groupchat/get` ### 客户群opengid转换 **Method**: POST **Endpoint**: `/cgi-bin/externalcontact/groupchat/get_open_gid` ## 联系我与客户入群方式 ### 客户联系「联系我」管理 **Method**: POST **Endpoint**: `/cgi-bin/externalcontact/add_contact_way` ### 客户群「加入群聊」管理 **Method**: POST **Endpoint**: `/cgi-bin/externalcontact/add_group_chat_way` ## 客户朋友圈 ### 企业发表内容到客户的朋友圈 **Method**: POST **Endpoint**: `/cgi-bin/moments/send` ### 停止发表企业朋友圈 **Method**: POST **Endpoint**: `/cgi-bin/moments/stop_send` ### 获取客户朋友圈全部的发表记录 **Method**: POST **Endpoint**: `/cgi-bin/moments/get` ## 客户朋友圈规则组管理 ## 获客助手 ### 获客链接管理 **Method**: POST **Endpoint**: `/cgi-bin/externalcontact/get_மையாக_way` ### 获取由获客链接添加的客户信息 **Method**: POST **Endpoint**: `/cgi-bin/externalcontact/list_link_user` ### 获客助手额度管理与使用统计 ### 提升广告有效率 #### 获取成员多次收消息详情 **Method**: POST **Endpoint**: `/cgi-bin/externalcontact/get_message_list` ## 消息推送 ### 创建企业群发 **Method**: POST **Endpoint**: `/cgi-bin/externalcontact/masssend/add_task` ### 提醒成员群发 **Method**: POST **Endpoint**: `/cgi-bin/externalcontact/masssend/get_task` ### 停止企业群发 **Method**: POST **Endpoint**: `/cgi-bin/externalcontact/masssend/cancel_task` ### 获取企业的全部群发记录 **Method**: POST **Endpoint**: `/cgi-bin/externalcontact/masssend/list_task` ### 发送新客户欢迎语 **Method**: POST **Endpoint**: `/cgi-bin/externalcontact/add_welcome_msg` ### 入群欢迎语素材管理 ## 统计管理 ### 获取「联系客户统计」数据 **Method**: POST **Endpoint**: `/cgi-bin/externalcontact/get_statistics` ### 获取「群聊数据统计」数据 **Method**: POST **Endpoint**: `/cgi-bin/externalcontact/get_groupchat_statistics` ## 回调通知 ### 概述 接收客户联系相关的回调通知。 ### 事件格式 **Description**: 定义了客户联系事件的回调格式。 ### 获客助手事件通知 **Description**: 获客助手相关的事件通知。 ## 管理商品图册 ## 管理聊天敏感词 ## 上传附件资源 **Method**: POST **Endpoint**: `/cgi-bin/externalcontact/upload_attachment` ## 获取已服务的外部联系人 **Method**: POST **Endpoint**: `/cgi-bin/externalcontact/list_contact_way` ``` -------------------------------- ### 消息接收与发送 Source: https://developer.work.weixin.qq.com/document/path/90664 处理应用消息的接收、发送和回调通知。 ```APIDOC ## 发送应用消息 ### 概述 用于向企业成员或群聊发送应用消息。 ### 发送应用消息 **Method**: POST **Endpoint**: `/cgi-bin/message/send` ### 更新模版卡片消息 **Method**: POST **Endpoint**: `/cgi-bin/message/update_template` ### 撤回应用消息 **Method**: POST **Endpoint**: `/cgi-bin/message/recall` ## 接收消息与事件 ### 概述 接收来自企业微信平台的消息和事件通知。 ### 消息格式 **Description**: 定义了接收消息的格式。 ### 事件格式 **Description**: 定义了接收事件的格式。 ### 被动回复消息格式 **Description**: 定义了被动回复消息的格式。 ## 应用发送消息到群聊会话 ### 概述 允许应用创建、修改和获取群聊会话信息,并发送消息。 ### 创建群聊会话 **Method**: POST **Endpoint**: `/cgi-bin/appchat/create` ### 修改群聊会话 **Method**: POST **Endpoint**: `/cgi-bin/appchat/update` ### 获取群聊会话 **Method**: GET **Endpoint**: `/cgi-bin/appchat/get` ## 应用推送消息 ### 家校消息推送 #### 发送「学校通知」 **Method**: POST **Endpoint**: `/cgi-bin/message/send_school` ### 消息推送(原“群机器人”) #### 消息推送配置说明 **Description**: 说明了消息推送的配置细节。 ## 智能机器人 ### 概述 提供智能机器人接收消息、事件,并进行回复的功能。 ### 接收消息 **Description**: 机器人接收消息的接口。 ### 接收事件 **Description**: 机器人接收事件的接口。 ### 被动回复消息 **Description**: 机器人被动回复消息的接口。 ### 模板卡片类型 **Description**: 描述了模板卡片消息的类型。 ### 回调和回复的加解密方案 **Description**: 提供了回调和回复的加解密方案说明。 ### 主动回复消息 **Description**: 机器人主动回复消息的接口。 ### 智能机器人长连接 **Description**: 智能机器人长连接的说明。 ### API模式机器人文档使用说明 **Description**: API模式机器人文档的使用说明。 ## 智能表格自动化创建的群聊 ### 获取群聊列表 **Method**: POST **Endpoint**: `/cgi-bin/appchat/get_chatlist` ### 获取群聊会话 **Method**: POST **Endpoint**: `/cgi-bin/appchat/get` ### 修改群聊会话 **Method**: POST **Endpoint**: `/cgi-bin/appchat/update` ``` -------------------------------- ### 会话内容存档 Source: https://developer.work.weixin.qq.com/document/path/90664 获取和管理企业内部的会话内容存档。 ```APIDOC ## 会话内容存档 ### 概述 用于获取和管理企业内部的会话内容存档。 ### 使用前帮助 **Description**: 使用会话内容存档前的帮助文档。 ### 获取会话内容 **Method**: POST **Endpoint**: `/cgi-bin/querychatdata` ### 开发案例演示 **Description**: 提供会话内容存档的开发案例。 ### 常见问题解答 **Description**: 解答关于会话内容存档的常见问题。 ### 获取会话内容存档开启成员列表 **Method**: POST **Endpoint**: `/cgi-bin/get_permit_user_list` ### 获取会话同意情况 **Method**: POST **Endpoint**: `/cgi-bin/agreement/get_permit_user_list` ### 客户同意进行聊天内容存档事件回调 **Description**: 客户同意存档的事件回调通知。 ### 获取会话内容存档内部群信息 **Method**: POST **Endpoint**: `/cgi-bin/chatdata/get_internal_group` ### 产生会话回调事件 **Description**: 产生会话的回调事件通知。 ``` -------------------------------- ### 微信客服 Source: https://developer.work.weixin.qq.com/document/path/90664 管理微信客服账号、接待人员、会话分配及消息收发。 ```APIDOC ## 客服账号管理 ### 添加客服账号 **Method**: POST **Endpoint**: `/cgi-bin/kf/account/add` ### 删除客服账号 **Method**: POST **Endpoint**: `/cgi-bin/kf/account/del` ### 修改客服账号 **Method**: POST **Endpoint**: `/cgi-bin/kf/account/update` ### 获取客服账号列表 **Method**: GET **Endpoint**: `/cgi-bin/kf/account/list` ### 获取客服账号链接 **Method**: GET **Endpoint**: `/cgi-bin/kf/account/get_qrcode` ## 接待人员管理 ### 添加接待人员 **Method**: POST **Endpoint**: `/cgi-bin/kf/servicer/add` ### 删除接待人员 **Method**: POST **Endpoint**: `/cgi-bin/kf/servicer/del` ### 获取接待人员列表 **Method**: GET **Endpoint**: `/cgi-bin/kf/servicer/list` ## 会话分配与消息收发 ### 分配客服会话 **Method**: POST **Endpoint**: `/cgi-bin/kf/assign_session` ### 接收消息和事件 **Description**: 接收来自微信客服的消息和事件。 ### 发送消息 **Method**: POST **Endpoint**: `/cgi-bin/kf/message/send` ### 发送欢迎语等事件响应消息 **Method**: POST **Endpoint**: `/cgi-bin/kf/send_welcome_msg` ### 「升级服务」配置 **Method**: POST **Endpoint**: `/cgi-bin/kf/upgrade_service` ## 其他基础信息获取 ### 获取客户基础信息 **Method**: POST **Endpoint**: `/cgi-bin/kf/customer/get` ## 统计管理 ### 获取「客户数据统计」企业汇总数据 **Method**: POST **Endpoint**: `/cgi-bin/kf/statistics/get_corp_summary` ### 获取「客户数据统计」接待人员明细数据 **Method**: POST **Endpoint**: `/cgi-bin/kf/statistics/get_servicer_detail` ## 机器人管理 ### 知识库分组管理 **Method**: POST **Endpoint**: `/cgi-bin/kf/knowledge/group/create` ### 知识库问答管理 **Method**: POST **Endpoint**: `/cgi-bin/kf/knowledge/answer/create` ## 回调通知 **Description**: 接收微信客服相关的回调通知。 ``` -------------------------------- ### 企业支付 Source: https://developer.work.weixin.qq.com/document/path/90664 处理企业内部的支付、红包发放、付款和收款等业务。 ```APIDOC ## 企业红包 ### 发放企业红包 **Method**: POST **Endpoint**: `/cgi-bin/mch/sendredpack` ### 查询红包记录 **Method**: POST **Endpoint**: `/cgi-bin/mch/getredpackinfo` ## 向员工付款 ### 向员工付款 **Method**: POST **Endpoint**: `/cgi-bin/mch/pay_to_user` ### 查询付款记录 **Method**: POST **Endpoint**: `/cgi-bin/mch/get_pay_info` ## 向员工收款 ### 对外收款 #### 概述 处理企业对外收款的业务。 #### 收款商户号管理 **Method**: POST **Endpoint**: `/cgi-bin/mch/get_merchant_no` #### 获取对外收款记录 **Method**: POST **Endpoint**: `/cgi-bin/mch/get_external_collection_list` #### 获取收款项目的商户单号 **Method**: POST **Endpoint**: `/cgi-bin/mch/get_external_collection_order` #### 获取资金流水 **Method**: POST **Endpoint**: `/cgi-bin/mch/get_fund_flow` #### 签名算法 **Description**: 描述了对外收款的签名算法。 #### 创建对外收款账户 **Method**: POST **Endpoint**: `/cgi-bin/mch/create_external_collection` #### 提交创建对外收款账户的申请单 **Method**: POST **Endpoint**: `/cgi-bin/mch/apply_external_collection` #### 查询申请单状态 **Method**: POST **Endpoint**: `/cgi-bin/mch/get_apply_external_collection` #### 提交图片 **Method**: POST **Endpoint**: `/cgi-bin/mch/upload_image` ## 小程序接入对外收款 ### 概述 支持小程序接入对外收款功能。 ### 普通支付 #### 小程序下单 **Method**: POST **Endpoint**: `/cgi-bin/mch/miniprogram/order` #### 查询订单 **Method**: POST **Endpoint**: `/cgi-bin/mch/miniprogram/orderquery` #### 关闭订单 **Method**: POST **Endpoint**: `/cgi-bin/mch/miniprogram/closeorder` #### 获取支付签名 **Method**: POST **Endpoint**: `/cgi-bin/mch/miniprogram/get_payment_sign` ## 退款 ### 申请退款 **Method**: POST **Endpoint**: `/cgi-bin/mch/refund` ### 查询退款 **Method**: POST **Endpoint**: `/cgi-bin/mch/refundquery` ## 回调通知 ### 概述 接收支付相关的回调通知。 ### 支付通知 **Description**: 支付成功的通知。 ### 退款通知 **Description**: 退款成功的通知。 ## 账单 ### 交易账单申请 **Method**: POST **Endpoint**: `/cgi-bin/mch/bill/apply` ``` -------------------------------- ### 通讯录管理 Source: https://developer.work.weixin.qq.com/document/path/90664 管理企业通讯录中的成员、部门和标签。 ```APIDOC ## 成员管理 ### 概述 管理企业通讯录中的成员信息。 ### 创建成员 **Method**: POST **Endpoint**: `/cgi-bin/user/create` ### 读取成员 **Method**: GET **Endpoint**: `/cgi-bin/user/get` ### 更新成员 **Method**: POST **Endpoint**: `/cgi-bin/user/update` ### 删除成员 **Method**: POST **Endpoint**: `/cgi-bin/user/delete` ### 批量删除成员 **Method**: POST **Endpoint**: `/cgi-bin/user/batchdelete` ### 获取部门成员 **Method**: GET **Endpoint**: `/cgi-bin/user/simplelist` ### 获取部门成员详情 **Method**: GET **Endpoint**: `/cgi-bin/user/list` ### userid与openid互换 **Method**: POST **Endpoint**: `/cgi-bin/user/convert_openid` ### 登录二次验证 **Method**: POST **Endpoint**: `/cgi-bin/user/authsucc` ### 邀请成员 **Method**: POST **Endpoint**: `/cgi-bin/invite/invite_user` ### 获取加入企业二维码 **Method**: GET **Endpoint**: `/cgi-bin/corp/get_join_qrcode` ### 手机号获取userid **Method**: POST **Endpoint**: `/cgi-bin/user/get_userid_by_mobile` ### 邮箱获取userid **Method**: POST **Endpoint**: `/cgi-bin/user/get_userid_by_email` ### 获取成员ID列表 **Method**: POST **Endpoint**: `/cgi-bin/user/list_id` ## 部门管理 ### 概述 管理企业通讯录中的部门信息。 ### 创建部门 **Method**: POST **Endpoint**: `/cgi-bin/department/create` ### 更新部门 **Method**: POST **Endpoint**: `/cgi-bin/department/update` ### 删除部门 **Method**: POST **Endpoint**: `/cgi-bin/department/delete` ### 获取部门列表 **Method**: GET **Endpoint**: `/cgi-bin/department/list` ### 获取子部门ID列表 **Method**: GET **Endpoint**: `/cgi-bin/department/get_subid_list` ### 获取单个部门详情 **Method**: GET **Endpoint**: `/cgi-bin/department/get` ## 标签管理 ### 概述 管理企业通讯录中的标签信息。 ### 创建标签 **Method**: POST **Endpoint**: `/cgi-bin/tag/create` ### 更新标签名字 **Method**: POST **Endpoint**: `/cgi-bin/tag/update` ### 删除标签 **Method**: POST **Endpoint**: `/cgi-bin/tag/delete` ### 获取标签成员 **Method**: GET **Endpoint**: `/cgi-bin/tag/get` ### 增加标签成员 **Method**: POST **Endpoint**: `/cgi-bin/tag/add_tagusers` ### 删除标签成员 **Method**: POST **Endpoint**: `/cgi-bin/tag/del_tagusers` ### 获取标签列表 **Method**: GET **Endpoint**: `/cgi-bin/tag/list` ``` -------------------------------- ### 素材管理 Source: https://developer.work.weixin.qq.com/document/path/90664 管理企业微信中的临时素材,如图片、语音等。 ```APIDOC ## 素材管理 ### 概述 管理企业微信中的临时素材。 ### 上传临时素材 **Method**: POST **Endpoint**: `/cgi-bin/media/upload` ### 上传图片 **Method**: POST **Endpoint**: `/cgi-bin/media/uploadimg` ### 获取临时素材 **Method**: GET **Endpoint**: `/cgi-bin/media/get` ### 获取高清语音素材 **Method**: GET **Endpoint**: `/cgi-bin/media/get/jshd` ### 异步上传临时素材 **Method**: POST **Endpoint**: `/cgi-bin/media/upload_multipart` ``` -------------------------------- ### 家校沟通 Source: https://developer.work.weixin.qq.com/document/path/90664 支持家校之间的沟通,包括通知发送、学生家长管理等。 ```APIDOC ## 家校沟通 ### 概述 提供家校沟通相关的接口。 ## 基础接口 ### 获取「学校通知」二维码 **Method**: GET **Endpoint**: `/cgi-bin/school/get_school_notice_qrcode` ### 管理「学校通知」的关注模式 **Method**: POST **Endpoint**: `/cgi-bin/school/set_school_notice_mode` ### 发送「学校通知」 **Method**: POST **Endpoint**: `/cgi-bin/school/send_school_notice` ### 管理「班级群创建方式」 **Method**: POST **Endpoint**: `/cgi-bin/school/set_create_group_chat_way` ### 外部联系人openid转换 **Method**: POST **Endpoint**: `/cgi-bin/school/convert_openid` ### 获取可使用的家长范围 **Method**: POST **Endpoint**: `/cgi-bin/school/get_usable_parent_range` ## 网页授权登录 ### 开始开发 **Description**: 用于家校应用中的网页授权登录。 ### 构造网页授权链接 **Method**: GET **Endpoint**: `/connect/oauth2/authorize` ### 获取访问用户身份 **Method**: GET **Endpoint**: `/cgi-bin/user/getuserinfo` ### 获取家校访问用户身份 **Method**: GET **Endpoint**: `/cgi-bin/school/get_user_info` ## 学生与家长管理 ### 创建学生 **Method**: POST **Endpoint**: `/cgi-bin/school/create_student` ### 删除学生 **Method**: POST **Endpoint**: `/cgi-bin/school/delete_student` ### 更新学生 **Method**: POST **Endpoint**: `/cgi-bin/school/update_student` ### 批量创建学生 **Method**: POST **Endpoint**: `/cgi-bin/school/batch_create_student` ### 批量删除学生 **Method**: POST **Endpoint**: `/cgi-bin/school/batch_delete_student` ### 批量更新学生 **Method**: POST **Endpoint**: `/cgi-bin/school/batch_update_student` ### 创建家长 **Method**: POST **Endpoint**: `/cgi-bin/school/create_parent` ### 删除家长 **Method**: POST **Endpoint**: `/cgi-bin/school/delete_parent` ### 更新家长 **Method**: POST **Endpoint**: `/cgi-bin/school/update_parent` ### 批量创建家长 **Method**: POST **Endpoint**: `/cgi-bin/school/batch_create_parent` ### 批量删除家长 **Method**: POST **Endpoint**: `/cgi-bin/school/batch_delete_parent` ### 批量更新家长 **Method**: POST **Endpoint**: `/cgi-bin/school/batch_update_parent` ### 读取学生或家长 **Method**: POST **Endpoint**: `/cgi-bin/school/get_student_or_parent` ### 获取部门学生详情 **Method**: POST **Endpoint**: `/cgi-bin/school/get_department_student` ### 设置家校通讯录自动同步模式 **Method**: POST **Endpoint**: `/cgi-bin/school/set_sync_mode` ### 获取部门家长详情 **Method**: POST **Endpoint**: `/cgi-bin/school/get_department_parent` ## 部门管理 ### 创建部门 **Method**: POST **Endpoint**: `/cgi-bin/department/create` ### 更新部门 **Method**: POST **Endpoint**: `/cgi-bin/department/update` ### 删除部门 **Method**: POST **Endpoint**: `/cgi-bin/department/delete` ### 获取部门列表 **Method**: GET **Endpoint**: `/cgi-bin/department/list` ### 标准年级对照表 **Description**: 提供标准的年级对照信息。 ### 修改自动升年级的配置 **Method**: POST **Endpoint**: `/cgi-bin/school/set_auto_upgrade_config` ## 家校通讯录变更回调 ### 成员变更事件 **Description**: 成员信息变更时的回调通知。 ### 部门变更事件 **Description**: 部门信息变更时的回调通知。 ## 家校应用 ### 健康上报 #### 获取健康上报使用统计 **Method**: POST **Endpoint**: `/cgi-bin/school/get_health_report_usage_stats` #### 获取健康上报任务ID列表 **Method**: POST **Endpoint**: `/cgi-bin/school/get_health_report_task_id_list` #### 获取健康上报任务详情 **Method**: POST **Endpoint**: `/cgi-bin/school/get_health_report_task_detail` #### 获取用户填写答案 **Method**: POST **Endpoint**: `/cgi-bin/school/get_user_answer` ### 上课直播 #### 获取老师直播ID列表 **Method**: POST **Endpoint**: `/cgi-bin/school/get_live_id_list` #### 获取直播详情 **Method**: POST **Endpoint**: `/cgi-bin/school/get_live_info` #### 获取观看直播统计 **Method**: POST **Endpoint**: `/cgi-bin/school/get_live_watch_stat` #### 获取未观看直播统计 **Method**: POST **Endpoint**: `/cgi-bin/school/get_live_not_watch_stat` #### 删除直播回放 **Method**: POST **Endpoint**: `/cgi-bin/school/delete_live_playback` #### 获取观看直播统计V2 **Method**: POST **Endpoint**: `/cgi-bin/school/get_live_watch_stat_v2` #### 获取未观看直播统计V2 **Method**: POST **Endpoint**: `/cgi-bin/school/get_live_not_watch_stat_v2` ### 班级收款 #### 获取学生付款结果 **Method**: POST **Endpoint**: `/cgi-bin/school/get_student_payment_result` #### 获取订单详情 **Method**: POST **Endpoint**: `/cgi-bin/school/get_order_detail` ``` -------------------------------- ### JS-SDK Context API Source: https://developer.work.weixin.qq.com/document/path/90664 Retrieves the current context of the JS-SDK environment. ```APIDOC ## GET ww.getContext ### Description Determines the current environment context (e.g., chat, group, etc.) for the JS-SDK. ### Method GET ### Endpoint ww.getContext ### Response #### Success Response (200) - **err_msg** (string) - Execution result message - **entry** (string) - The entry point of the current context ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.