Categorygithub.com/yunlongliang/wework-api-go
modulepackage
1.0.14
Repository: https://github.com/yunlongliang/wework-api-go.git
Documentation: pkg.go.dev

# README

Go API client for swagger

企业微信服务端API.

Overview

This API client was generated by the swagger-codegen project. By using the swagger-spec from a remote server, you can easily generate an API client.

  • API version: 1.0.0
  • Package version: 1.0.0
  • Build package: io.swagger.codegen.languages.GoClientCodegen

Installation

Put the package under your project folder and add the following in import:

import "./swagger"

Documentation for API Endpoints

All URIs are relative to https://qyapi.weixin.qq.com/cgi-bin

ClassMethodHTTP requestDescription
AgentApiGetAgentGet /agent/get获取指定的应用详情
AgentApiGetAgentListPost /agent/list获取access_token对应的应用列表
AgentApiSetAgentPost /agent/set设置应用
AppchatApiCreateAppchatPost /appchat/create创建群聊会话
AppchatApiGetAppchatGet /appchat/get获取群聊会话
AppchatApiUpdateAppchatPost /appchat/update修改群聊会话
AuthApiGetApiDomainIpGet /get_api_domain_ip获取企业微信API域名IP段
AuthApiGetAuthTokenGet /gettoken每个应用有独立的secret,获取到的access_token只能本应用使用,所以每个应用的access_token应该分开来获取
CorpApiGetJoinQrcodeGet /corp/get_join_qrcode获取加入企业二维码
DepartmentApiCreateDepartmentPost /department/create创建部门
DepartmentApiDeleteDepartmentGet /department/delete删除部门
DepartmentApiGetBatchDepartmentResultGet /batch/getresult获取异步任务结果
DepartmentApiGetDepartmentListGet /department/list获取部门列表
DepartmentApiReplaceBatchDepartmentPost /batch/replaceparty全量覆盖部门
DepartmentApiUpdateDepartmentPost /department/update更新部门
ExternalcontactApiAddContactWayPost /externalcontact/add_contact_way配置客户联系「联系我」方式
ExternalcontactApiAddCustomerTagPost /externalcontact/add_corp_tag添加企业客户标签
ExternalcontactApiAddGroupWelcomeTemplatePost /externalcontact/group_welcome_template/add添加入群欢迎语素材
ExternalcontactApiAddMsgTemplatePost /externalcontact/add_msg_template创建企业群发
ExternalcontactApiCloseTempChatPost /externalcontact/close_temp_chat结束临时会话
ExternalcontactApiConvertOpengidToChatidPost /externalcontact/opengid_to_chatid客户群opengid转换
ExternalcontactApiDelContactWayPost /externalcontact/del_contact_way删除企业已配置的「联系我」方式
ExternalcontactApiDelCustomerTagPost /externalcontact/del_corp_tag删除企业客户标签
ExternalcontactApiEditCustomerTagPost /externalcontact/edit_corp_tag编辑企业客户标签
ExternalcontactApiGetBatchCustomerUserPost /externalcontact/batch/get_by_user批量获取客户详情
ExternalcontactApiGetContactWayPost /externalcontact/get_contact_way获取企业已配置的「联系我」方式
ExternalcontactApiGetCorpTagListPost /externalcontact/get_corp_tag_list获取企业标签库
ExternalcontactApiGetCustomerDetailGet /externalcontact/get获取客户详情
ExternalcontactApiGetCustomerListGet /externalcontact/list获取客户列表
ExternalcontactApiGetFollowUserListGet /externalcontact/get_follow_user_list获取配置了客户联系功能的成员列表
ExternalcontactApiGetGroupmsgListV2Post /externalcontact/get_groupmsg_list_v2获取群发记录列表
ExternalcontactApiGetGroupmsgSendResultPost /externalcontact/get_groupmsg_send_result获取企业群发成员执行结果
ExternalcontactApiGetGroupmsgTaskPost /externalcontact/get_groupmsg_task获取群发成员发送任务列表
ExternalcontactApiGetMomentCommentsPost /externalcontact/get_moment_comments获取客户朋友圈的互动数据
ExternalcontactApiGetMomentCustomerListPost /externalcontact/get_moment_customer_list获取客户朋友圈发表时选择的可见范围
ExternalcontactApiGetMomentListPost /externalcontact/get_moment_list获取企业全部的发表列表
ExternalcontactApiGetMomentSendResultPost /externalcontact/get_moment_send_result获取客户朋友圈发表后的可见客户列表
ExternalcontactApiGetMomentTaskPost /externalcontact/get_moment_task获取客户朋友圈企业发表的列表
ExternalcontactApiGetTransferCustomerResultPost /externalcontact/resigned/transfer_result查询客户接替状态
ExternalcontactApiGetUnassignedListPost /externalcontact/get_unassigned_list获取待分配的离职成员列表
ExternalcontactApiGetUserBehaviorDataPost /externalcontact/get_user_behavior_data获取「联系客户统计」数据
ExternalcontactApiMarkCustomerTagPost /externalcontact/mark_tag编辑客户企业标签
ExternalcontactApiRemarkCustomerPost /externalcontact/remark修改客户备注信息
ExternalcontactApiSendWelcomeMsgPost /externalcontact/send_welcome_msg发送新客户欢迎语
ExternalcontactApiTransferCustomerPost /externalcontact/transfer_customer分配在职成员的客户
ExternalcontactApiTransferCustomerResultPost /externalcontact/transfer_result查询客户接替状态
ExternalcontactApiTransferResignedCustomerPost /externalcontact/resigned/transfer_customer分配离职成员的客户
ExternalcontactApiUpdateContactWayPost /externalcontact/update_contact_way更新企业已配置的「联系我」方式
GroupchatApiGetGroupchatPost /externalcontact/groupchat/get获取客户群详情
GroupchatApiGetGroupchatStatisticPost /externalcontact/groupchat/statistic获取「群聊数据统计」数据 - 按群主聚合的方式
GroupchatApiGetGroupchatStatisticGroupByDayPost /externalcontact/groupchat/statistic_group_by_day获取「群聊数据统计」数据 - 按自然日聚合的方式
GroupchatApiGetgroupchatListPost /externalcontact/groupchat/list获取客户群列表
GroupchatApiTransferGroupchatPost /externalcontact/groupchat/transfer分配离职成员的客户群
LinkedcorpApiGetLinkedcorpDepartmentListPost /linkedcorp/department/list获取互联企业部门列表
LinkedcorpApiGetLinkedcorpPermListPost /linkedcorp/agent/get_perm_list获取应用的可见范围
LinkedcorpApiGetLinkedcorpUserPost /linkedcorp/user/get获取互联企业成员详细信息
LinkedcorpApiGetLinkedcorpUserListPost /linkedcorp/user/list获取互联企业部门成员详情
LinkedcorpApiGetLinkedcorpUserSimplelistPost /linkedcorp/user/simplelist获取互联企业部门成员
MediaApiGetMediaGet /media/get获取临时素材
MediaApiGetMediaJssdkGet /media/get/jssdk获取高清语音素材
MediaApiUploadImgMediaPost /media/uploadimg上传图片
MediaApiUploadMediaPost /media/upload上传临时素材
MenuApiCreateMenuPost /menu/create创建菜单
MenuApiDeleteMenuGet /menu/delete删除菜单
MenuApiGetMenuGet /menu/get获取菜单
MessageApiSendMessagePost /message/send发送消息
MessageApiUpdateMessageTaskcardPost /message/update_taskcard更新任务卡片消息状态
ServiceApiGetServiceAdminListPost /service/get_admin_list获取应用的管理员列表
ServiceApiGetServiceAuthInfoPost /service/get_auth_info获取企业授权信息
ServiceApiGetServiceCorpTokenPost /service/get_corp_token获取企业凭证
ServiceApiGetServicePermanentCodePost /service/get_permanent_code获取企业永久授权码
ServiceApiGetServicePreAuthCodeGet /service/get_pre_auth_code获取预授权码
ServiceApiGetServiceSuiteTokenPost /service/get_suite_token获取第三方应用凭证
ServiceApiGetserviceProviderTokenPost /service/get_provider_token获取服务商凭证
ServiceApiSetServiceSessionInfoPost /service/set_session_info设置授权配置
TagApiAddTagUsersPost /tag/addtagusers增加标签成员
TagApiCreateTagPost /tag/create创建内部标签
TagApiDeleteTagGet /tag/delete删除标签
TagApiDeleteTagUsersPost /tag/deltagusers删除标签成员
TagApiGetTagListGet /tag/list获取标签列表
TagApiGetTagUsersGet /tag/get获取标签成员
TagApiUpdateTagPost /tag/update更新内部标签名字
UserApiAuthsuccUserGet /user/authsucc二次验证
UserApiConvertUseridToOpenidPost /user/convert_to_openiduserid与openid互换
UserApiCreateUserPost /user/create创建成员
UserApiDeleteBatchUserPost /user/batchdelete批量删除成员
UserApiDeleteUserGet /user/delete删除成员
UserApiGetActiveStatPost /user/get_active_stat获取企业活跃成员数
UserApiGetUserGet /user/get读取成员
UserApiGetUserListGet /user/list获取部门成员详情
UserApiGetUserSimplelistGet /user/simplelist获取部门成员
UserApiInviteUserPost /batch/invite邀请成员
UserApiReplaceBatchUserPost /batch/replaceuser全量覆盖成员
UserApiSyncBatchUserPost /batch/syncuser增量更新成员
UserApiUpdateUserPost /user/update更新成员

Documentation For Models

Documentation For Authorization

Endpoints do not require authorization.

Author

# Functions

CacheExpires helper function to determine remaining time before repeating a request.
NewAPIClient creates a new API client.
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

ContextAccessToken takes a string oauth2 access token as authentication for the request.
ContextAPIKey takes an APIKey as authentication for the request.
ContextBasicAuth takes BasicAuth as authentication for the request.
ContextOAuth2 takes a oauth2.TokenSource as authentication for the request.

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
APIClient manages communication with the 企业微信服务端API API v1.0.0 In most cases there should be only one, shared, APIClient.
APIKey provides API key based authentication to a request passed via context using ContextAPIKey.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth.
No description provided by the author
BatchDeleteUserReq.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
CreateUserReq.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ExternalProfile.
No description provided by the author
No description provided by the author
GenericSwaggerError Provides access to the body, error and model on returned errors.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
GetApiDomainIpRsp.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
User.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
InviteReq.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ListUserRsp.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
SimplelistRsp.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
TokenRsp.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
UpdateUserReq.
User.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author