# 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
Class | Method | HTTP request | Description |
---|---|---|---|
AgentApi | GetAgent | Get /agent/get | 获取指定的应用详情 |
AgentApi | GetAgentList | Post /agent/list | 获取access_token对应的应用列表 |
AgentApi | SetAgent | Post /agent/set | 设置应用 |
AppchatApi | CreateAppchat | Post /appchat/create | 创建群聊会话 |
AppchatApi | GetAppchat | Get /appchat/get | 获取群聊会话 |
AppchatApi | UpdateAppchat | Post /appchat/update | 修改群聊会话 |
AuthApi | GetApiDomainIp | Get /get_api_domain_ip | 获取企业微信API域名IP段 |
AuthApi | GetAuthToken | Get /gettoken | 每个应用有独立的secret,获取到的access_token只能本应用使用,所以每个应用的access_token应该分开来获取 |
CorpApi | GetJoinQrcode | Get /corp/get_join_qrcode | 获取加入企业二维码 |
DepartmentApi | CreateDepartment | Post /department/create | 创建部门 |
DepartmentApi | DeleteDepartment | Get /department/delete | 删除部门 |
DepartmentApi | GetBatchDepartmentResult | Get /batch/getresult | 获取异步任务结果 |
DepartmentApi | GetDepartmentList | Get /department/list | 获取部门列表 |
DepartmentApi | ReplaceBatchDepartment | Post /batch/replaceparty | 全量覆盖部门 |
DepartmentApi | UpdateDepartment | Post /department/update | 更新部门 |
ExternalcontactApi | AddContactWay | Post /externalcontact/add_contact_way | 配置客户联系「联系我」方式 |
ExternalcontactApi | AddCustomerTag | Post /externalcontact/add_corp_tag | 添加企业客户标签 |
ExternalcontactApi | AddGroupWelcomeTemplate | Post /externalcontact/group_welcome_template/add | 添加入群欢迎语素材 |
ExternalcontactApi | AddMsgTemplate | Post /externalcontact/add_msg_template | 创建企业群发 |
ExternalcontactApi | CloseTempChat | Post /externalcontact/close_temp_chat | 结束临时会话 |
ExternalcontactApi | ConvertOpengidToChatid | Post /externalcontact/opengid_to_chatid | 客户群opengid转换 |
ExternalcontactApi | DelContactWay | Post /externalcontact/del_contact_way | 删除企业已配置的「联系我」方式 |
ExternalcontactApi | DelCustomerTag | Post /externalcontact/del_corp_tag | 删除企业客户标签 |
ExternalcontactApi | EditCustomerTag | Post /externalcontact/edit_corp_tag | 编辑企业客户标签 |
ExternalcontactApi | GetBatchCustomerUser | Post /externalcontact/batch/get_by_user | 批量获取客户详情 |
ExternalcontactApi | GetContactWay | Post /externalcontact/get_contact_way | 获取企业已配置的「联系我」方式 |
ExternalcontactApi | GetCorpTagList | Post /externalcontact/get_corp_tag_list | 获取企业标签库 |
ExternalcontactApi | GetCustomerDetail | Get /externalcontact/get | 获取客户详情 |
ExternalcontactApi | GetCustomerList | Get /externalcontact/list | 获取客户列表 |
ExternalcontactApi | GetFollowUserList | Get /externalcontact/get_follow_user_list | 获取配置了客户联系功能的成员列表 |
ExternalcontactApi | GetGroupmsgListV2 | Post /externalcontact/get_groupmsg_list_v2 | 获取群发记录列表 |
ExternalcontactApi | GetGroupmsgSendResult | Post /externalcontact/get_groupmsg_send_result | 获取企业群发成员执行结果 |
ExternalcontactApi | GetGroupmsgTask | Post /externalcontact/get_groupmsg_task | 获取群发成员发送任务列表 |
ExternalcontactApi | GetMomentComments | Post /externalcontact/get_moment_comments | 获取客户朋友圈的互动数据 |
ExternalcontactApi | GetMomentCustomerList | Post /externalcontact/get_moment_customer_list | 获取客户朋友圈发表时选择的可见范围 |
ExternalcontactApi | GetMomentList | Post /externalcontact/get_moment_list | 获取企业全部的发表列表 |
ExternalcontactApi | GetMomentSendResult | Post /externalcontact/get_moment_send_result | 获取客户朋友圈发表后的可见客户列表 |
ExternalcontactApi | GetMomentTask | Post /externalcontact/get_moment_task | 获取客户朋友圈企业发表的列表 |
ExternalcontactApi | GetTransferCustomerResult | Post /externalcontact/resigned/transfer_result | 查询客户接替状态 |
ExternalcontactApi | GetUnassignedList | Post /externalcontact/get_unassigned_list | 获取待分配的离职成员列表 |
ExternalcontactApi | GetUserBehaviorData | Post /externalcontact/get_user_behavior_data | 获取「联系客户统计」数据 |
ExternalcontactApi | MarkCustomerTag | Post /externalcontact/mark_tag | 编辑客户企业标签 |
ExternalcontactApi | RemarkCustomer | Post /externalcontact/remark | 修改客户备注信息 |
ExternalcontactApi | SendWelcomeMsg | Post /externalcontact/send_welcome_msg | 发送新客户欢迎语 |
ExternalcontactApi | TransferCustomer | Post /externalcontact/transfer_customer | 分配在职成员的客户 |
ExternalcontactApi | TransferCustomerResult | Post /externalcontact/transfer_result | 查询客户接替状态 |
ExternalcontactApi | TransferResignedCustomer | Post /externalcontact/resigned/transfer_customer | 分配离职成员的客户 |
ExternalcontactApi | UpdateContactWay | Post /externalcontact/update_contact_way | 更新企业已配置的「联系我」方式 |
GroupchatApi | GetGroupchat | Post /externalcontact/groupchat/get | 获取客户群详情 |
GroupchatApi | GetGroupchatStatistic | Post /externalcontact/groupchat/statistic | 获取「群聊数据统计」数据 - 按群主聚合的方式 |
GroupchatApi | GetGroupchatStatisticGroupByDay | Post /externalcontact/groupchat/statistic_group_by_day | 获取「群聊数据统计」数据 - 按自然日聚合的方式 |
GroupchatApi | GetgroupchatList | Post /externalcontact/groupchat/list | 获取客户群列表 |
GroupchatApi | TransferGroupchat | Post /externalcontact/groupchat/transfer | 分配离职成员的客户群 |
LinkedcorpApi | GetLinkedcorpDepartmentList | Post /linkedcorp/department/list | 获取互联企业部门列表 |
LinkedcorpApi | GetLinkedcorpPermList | Post /linkedcorp/agent/get_perm_list | 获取应用的可见范围 |
LinkedcorpApi | GetLinkedcorpUser | Post /linkedcorp/user/get | 获取互联企业成员详细信息 |
LinkedcorpApi | GetLinkedcorpUserList | Post /linkedcorp/user/list | 获取互联企业部门成员详情 |
LinkedcorpApi | GetLinkedcorpUserSimplelist | Post /linkedcorp/user/simplelist | 获取互联企业部门成员 |
MediaApi | GetMedia | Get /media/get | 获取临时素材 |
MediaApi | GetMediaJssdk | Get /media/get/jssdk | 获取高清语音素材 |
MediaApi | UploadImgMedia | Post /media/uploadimg | 上传图片 |
MediaApi | UploadMedia | Post /media/upload | 上传临时素材 |
MenuApi | CreateMenu | Post /menu/create | 创建菜单 |
MenuApi | DeleteMenu | Get /menu/delete | 删除菜单 |
MenuApi | GetMenu | Get /menu/get | 获取菜单 |
MessageApi | SendMessage | Post /message/send | 发送消息 |
MessageApi | UpdateMessageTaskcard | Post /message/update_taskcard | 更新任务卡片消息状态 |
ServiceApi | GetServiceAdminList | Post /service/get_admin_list | 获取应用的管理员列表 |
ServiceApi | GetServiceAuthInfo | Post /service/get_auth_info | 获取企业授权信息 |
ServiceApi | GetServiceCorpToken | Post /service/get_corp_token | 获取企业凭证 |
ServiceApi | GetServicePermanentCode | Post /service/get_permanent_code | 获取企业永久授权码 |
ServiceApi | GetServicePreAuthCode | Get /service/get_pre_auth_code | 获取预授权码 |
ServiceApi | GetServiceSuiteToken | Post /service/get_suite_token | 获取第三方应用凭证 |
ServiceApi | GetserviceProviderToken | Post /service/get_provider_token | 获取服务商凭证 |
ServiceApi | SetServiceSessionInfo | Post /service/set_session_info | 设置授权配置 |
TagApi | AddTagUsers | Post /tag/addtagusers | 增加标签成员 |
TagApi | CreateTag | Post /tag/create | 创建内部标签 |
TagApi | DeleteTag | Get /tag/delete | 删除标签 |
TagApi | DeleteTagUsers | Post /tag/deltagusers | 删除标签成员 |
TagApi | GetTagList | Get /tag/list | 获取标签列表 |
TagApi | GetTagUsers | Get /tag/get | 获取标签成员 |
TagApi | UpdateTag | Post /tag/update | 更新内部标签名字 |
UserApi | AuthsuccUser | Get /user/authsucc | 二次验证 |
UserApi | ConvertUseridToOpenid | Post /user/convert_to_openid | userid与openid互换 |
UserApi | CreateUser | Post /user/create | 创建成员 |
UserApi | DeleteBatchUser | Post /user/batchdelete | 批量删除成员 |
UserApi | DeleteUser | Get /user/delete | 删除成员 |
UserApi | GetActiveStat | Post /user/get_active_stat | 获取企业活跃成员数 |
UserApi | GetUser | Get /user/get | 读取成员 |
UserApi | GetUserList | Get /user/list | 获取部门成员详情 |
UserApi | GetUserSimplelist | Get /user/simplelist | 获取部门成员 |
UserApi | InviteUser | Post /batch/invite | 邀请成员 |
UserApi | ReplaceBatchUser | Post /batch/replaceuser | 全量覆盖成员 |
UserApi | SyncBatchUser | Post /batch/syncuser | 增量更新成员 |
UserApi | UpdateUser | Post /user/update | 更新成员 |
Documentation For Models
- AddContactWayReq
- AddContactWayRsp
- AddCorpTagReq
- AddCorpTagRsp
- AddGroupWelcomeTemplateReq
- AddGroupWelcomeTemplateRsp
- AddMsgTemplateReq
- AddMsgTemplateRsp
- AddTagUsersReq
- ArticleMsg
- BaseResponse
- BatchCustomerExternalProfile
- BatchDeleteUserReq
- BatchGetresultParty
- BatchGetresultRsp
- BatchGetresultUser
- BatchReplacepartyReq
- BatchReplacepartyRsp
- BatchReplaceuserReq
- BatchReplaceuserRsp
- BatchSyncuserReq
- BatchSyncuserRsp
- Btn
- CloseTempChatReq
- ContactDetaiExternalContactObject
- ContactDetailFollowUserItem
- ContactDetailFollowUserTagItem
- ContactFollowUser
- ConvertOpengidToChatidReq
- ConvertOpengidToChatidRsp
- ConvertToOpenidReq
- ConvertToOpenidRsp
- CorpTag
- CorpTagGroup
- CreateAppchatReq
- CreateAppchatRsp
- CreateDepartmentReq
- CreateDepartmentRsp
- CreateMenuReq
- CreateMenuRsp
- CreateTagReq
- CreateTagRsp
- CreateUserReq
- DelContactWayReq
- DelCorpTagReq
- DeleteTagUsersReq
- Department
- EditCorpTagReq
- ExtAttr
- ExtAttrs
- ExternalContact
- ExternalContactItem
- ExternalProfile
- FileMsg
- FollowInfo
- GetActiveStatRsp
- GetAgentListRsp
- GetAgentPermListRsp
- GetAgentRsp
- GetApiDomainIpRsp
- GetAppchatReq
- GetContactWayReq
- GetContactWayRsp
- GetCorpTagListReq
- GetCorpTagListRsp
- GetDepartmentListRsp
- GetExternalContactBatchUserReq
- GetExternalContactBatchUserRsp
- GetExternalContactDetailRsp
- GetExternalContactListRsp
- GetFollowUserListRsp
- GetGroupchatReq
- GetGroupchatRsp
- GetGroupchatRspGroupChat
- GetGroupchatRspGroupChatAdminList
- GetGroupchatRspGroupChatItem
- GetGroupchatRspGroupChatItemInvitor
- GetGroupchatStatisticGroupByDayReq
- GetGroupchatStatisticGroupByDayRsp
- GetGroupchatStatisticReq
- GetGroupchatStatisticRsp
- GetGroupmsgListV2Req
- GetGroupmsgListV2Rsp
- GetGroupmsgSendResultReq
- GetGroupmsgSendResultRsp
- GetGroupmsgTaskReq
- GetGroupmsgTaskRsp
- GetJoinQrcodeRsp
- GetLinkedcorpDepartmentListReq
- GetLinkedcorpDepartmentListRsp
- GetLinkedcorpUserListReq
- GetLinkedcorpUserListRsp
- GetLinkedcorpUserReq
- GetLinkedcorpUserRsp
- GetLinkedcorpUserSimplelistReq
- GetLinkedcorpUserSimplelistRsp
- GetMenuRsp
- GetMomentCommentsReq
- GetMomentCommentsRsp
- GetMomentCustomerListReq
- GetMomentCustomerListRsp
- GetMomentListReq
- GetMomentListRsp
- GetMomentSendResultReq
- GetMomentSendResultRsp
- GetMomentTaskReq
- GetMomentTaskRsp
- GetServiceAdminListReq
- GetServiceAdminListRsp
- GetServiceAuthInfoReq
- GetServiceAuthInfoRsp
- GetServiceCorpTokenReq
- GetServiceCorpTokenRsp
- GetServicePermanentCodeReq
- GetServicePermanentCodeRsp
- GetServicePreAuthCodeReq
- GetServicePreAuthCodeRsp
- GetServiceProviderTokenReq
- GetServiceProviderTokenRsp
- GetServiceSuiteTokenReq
- GetServiceSuiteTokenRsp
- GetTagListRsp
- GetTagUsersRsp
- GetTransferResultReq
- GetTransferResultRsp
- GetUnassignedListReq
- GetUnassignedListRsp
- GetUserBehaviorDataReq
- GetUserBehaviorDataRsp
- GetUserRsp
- GroupMsgImage
- GroupMsgLink
- GroupMsgMiniprogram
- GroupMsgVideo
- GroupchatListChatDetail
- GroupchatListReq
- GroupchatListRsp
- GroupchatTransferReq
- GroupchatTransferRsp
- ImageMsg
- InviteReq
- InviteRsp
- LinkedcorpUserInfoAttrText
- LinkedcorpUserInfoAttrWeb
- ListUserRsp
- MarkCorpContactTagReq
- MarkdownMsg
- MediaUploadImgRsp
- MediaUploadRsp
- MiniProgramMsg
- MpArticleMsg
- MpNewsMsg
- NewsMsg
- ProfileMiniprogram
- ProfileText
- ProfileWeb
- ResignedTransferCustomerReq
- ResignedTransferCustomerRsp
- ResignedTransferResultReq
- ResignedTransferResultRsp
- SendMessageReq
- SendMessageRsp
- SendWelcomeMsgReq
- SendWelcomeMsgRsp
- SetAgentReq
- SetAgentRsp
- SetServiceSessionInfoReq
- SimplelistRsp
- TagListInfo
- TagUserInfo
- TaskcardMsg
- TextMsg
- TextcardMsg
- TokenRsp
- TransferCustomerReq
- TransferCustomerRsp
- UpdateAppchatReq
- UpdateContactWayReq
- UpdateDepartmentReq
- UpdateExternalContactRemarkReq
- UpdateTagReq
- UpdateTaskcardReq
- UpdateTaskcardRsp
- UpdateUserReq
- User
- VideoMsg
- VoiceMsg
- WebMsg
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