All Downloads are FREE. Search and download functionalities are using the official Maven repository.

me.chanjar.weixin.cp.constant.WxCpApiPathConsts Maven / Gradle / Ivy

There is a newer version: 4.6.7.B
Show newest version
package me.chanjar.weixin.cp.constant;


/**
 * 
 *  企业微信api地址常量类
 *  Created by BinaryWang on 2019-06-02.
 * 
* * @author Binary Wang */ public final class WxCpApiPathConsts { public static final String DEFAULT_CP_BASE_URL = "https://qyapi.weixin.qq.com"; public static final String GET_JSAPI_TICKET = "/cgi-bin/get_jsapi_ticket"; public static final String GET_AGENT_CONFIG_TICKET = "/cgi-bin/ticket/get?&type=agent_config"; public static final String MESSAGE_SEND = "/cgi-bin/message/send"; public static final String GET_CALLBACK_IP = "/cgi-bin/getcallbackip"; public static final String BATCH_REPLACE_PARTY = "/cgi-bin/batch/replaceparty"; public static final String BATCH_REPLACE_USER = "/cgi-bin/batch/replaceuser"; public static final String BATCH_GET_RESULT = "/cgi-bin/batch/getresult?jobid="; public static final String JSCODE_TO_SESSION = "/cgi-bin/miniprogram/jscode2session"; public static final String GET_TOKEN = "/cgi-bin/gettoken?&corpid=%s&corpsecret=%s"; public static class Agent { public static final String AGENT_GET = "/cgi-bin/agent/get?agentid=%d"; public static final String AGENT_SET = "/cgi-bin/agent/set"; public static final String AGENT_LIST = "/cgi-bin/agent/list"; } public static class OAuth2 { public static final String GET_USER_INFO = "/cgi-bin/user/getuserinfo?code=%s&agentid=%d"; public static final String GET_USER_DETAIL = "/cgi-bin/user/getuserdetail"; public static final String URL_OAUTH2_AUTHORIZE = "https://open.weixin.qq.com/connect/oauth2/authorize"; } public static class Chat { public static final String APPCHAT_CREATE = "/cgi-bin/appchat/create"; public static final String APPCHAT_UPDATE = "/cgi-bin/appchat/update"; public static final String APPCHAT_GET_CHATID = "/cgi-bin/appchat/get?chatid="; public static final String APPCHAT_SEND = "/cgi-bin/appchat/send"; } public static class Department { public static final String DEPARTMENT_CREATE = "/cgi-bin/department/create"; public static final String DEPARTMENT_UPDATE = "/cgi-bin/department/update"; public static final String DEPARTMENT_DELETE = "/cgi-bin/department/delete?id=%d"; public static final String DEPARTMENT_LIST = "/cgi-bin/department/list"; } public static class Media { public static final String MEDIA_GET = "/cgi-bin/media/get"; public static final String MEDIA_UPLOAD = "/cgi-bin/media/upload?type="; public static final String IMG_UPLOAD = "/cgi-bin/media/uploadimg"; public static final String JSSDK_MEDIA_GET = "/cgi-bin/media/get/jssdk"; } public static class Menu { public static final String MENU_CREATE = "/cgi-bin/menu/create?agentid=%d"; public static final String MENU_DELETE = "/cgi-bin/menu/delete?agentid=%d"; public static final String MENU_GET = "/cgi-bin/menu/get?agentid=%d"; } public static class Oa { public static final String GET_CHECKIN_DATA = "/cgi-bin/checkin/getcheckindata"; public static final String GET_CHECKIN_OPTION = "/cgi-bin/checkin/getcheckinoption"; public static final String GET_APPROVAL_DATA = "/cgi-bin/corp/getapprovaldata"; public static final String GET_DIAL_RECORD = "/cgi-bin/dial/get_dial_record"; } public static class Tag { public static final String TAG_CREATE = "/cgi-bin/tag/create"; public static final String TAG_UPDATE = "/cgi-bin/tag/update"; public static final String TAG_DELETE = "/cgi-bin/tag/delete?tagid=%s"; public static final String TAG_LIST = "/cgi-bin/tag/list"; public static final String TAG_GET = "/cgi-bin/tag/get?tagid=%s"; public static final String TAG_ADD_TAG_USERS = "/cgi-bin/tag/addtagusers"; public static final String TAG_DEL_TAG_USERS = "/cgi-bin/tag/deltagusers"; } public static class TaskCard { public static final String UPDATE_TASK_CARD = "/cgi-bin/message/update_taskcard"; } public static class Tp { public static final String JSCODE_TO_SESSION = "/cgi-bin/service/miniprogram/jscode2session"; public static final String GET_CORP_TOKEN = "/cgi-bin/service/get_corp_token"; public static final String GET_PERMANENT_CODE = "/cgi-bin/service/get_permanent_code"; public static final String GET_SUITE_TOKEN = "/cgi-bin/service/get_suite_token"; } public static class User { public static final String USER_AUTHENTICATE = "/cgi-bin/user/authsucc?userid="; public static final String USER_CREATE = "/cgi-bin/user/create"; public static final String USER_UPDATE = "/cgi-bin/user/update"; public static final String USER_DELETE = "/cgi-bin/user/delete?userid="; public static final String USER_BATCH_DELETE = "/cgi-bin/user/batchdelete"; public static final String USER_GET = "/cgi-bin/user/get?userid="; public static final String USER_LIST = "/cgi-bin/user/list?department_id="; public static final String USER_SIMPLE_LIST = "/cgi-bin/user/simplelist?department_id="; public static final String BATCH_INVITE = "/cgi-bin/batch/invite"; public static final String USER_CONVERT_TO_OPENID = "/cgi-bin/user/convert_to_openid"; public static final String USER_CONVERT_TO_USERID = "/cgi-bin/user/convert_to_userid"; public static final String GET_USER_ID = "/cgi-bin/user/getuserid"; public static final String GET_EXTERNAL_CONTACT = "/cgi-bin/crm/get_external_contact?external_userid="; } public static class ExternalContact { public static final String GET_EXTERNAL_CONTACT = "/cgi-bin/crm/get_external_contact?external_userid="; public static final String LIST_EXTERNAL_CONTACT = "/cgi-bin/externalcontact/list?userid="; public static final String GET_FOLLOW_USER_LIST = "/cgi-bin/externalcontact/get_follow_user_list"; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy