com.sinsz.wxpn.support.Constant Maven / Gradle / Ivy
package com.sinsz.wxpn.support;
/**
* 全局常量
* @author chenjianbo
* @date 2018-11-13
*/
public interface Constant {
String GRANT_TYPE = "client_credential";
String CHECK_OPERATOR = "DEFAULT";
String CHECK_ACTION = "all";
int TIME_OUT = 10000;
/**
* 获取用户同意授权Code
*/
String OAUTH_2_AUTHORIZE = "https://open.weixin.qq.com/connect/oauth2/authorize";
/**
* 获取用户授权信息
*/
String OAUTH_2_TOKEN = "https://api.weixin.qq.com/sns/oauth2/access_token";
/**
* 授权token接口
*/
String ACCESS_TOKEN = "https://api.weixin.qq.com/cgi-bin/token";
/**
* 获取微信服务器IP
*/
String CALLBACK_IP = "https://api.weixin.qq.com/cgi-bin/getcallbackip";
/**
* 检测网络
*
* POST
*
*/
String IP_CHECK = "https://api.weixin.qq.com/cgi-bin/callback/check?access_token=";
/**
* 根据模板编号获取模板ID
*
* POST
*
*/
String API_ADD_TEMPLATE = "https://api.weixin.qq.com/cgi-bin/template/api_add_template?access_token=";
/**
* 获取我的所有模板
*/
String GET_ALL_PRIVATE_TEMPLATE = "https://api.weixin.qq.com/cgi-bin/template/get_all_private_template";
/**
* 删除指定模板
*
* POST
*
*/
String DEL_PRIVATE_TEMPLATE = "https://api.weixin.qq.com/cgi-bin/template/del_private_template?access_token=";
/**
* 模板消息发送
*
* POST
*
*/
String TEMPLATE_MESSAGE_SEND = "https://api.weixin.qq.com/cgi-bin/message/template/send?access_token=";
/**
* 创建菜单
*
* POST
*
*/
String CREATE_MENU = "https://api.weixin.qq.com/cgi-bin/menu/create?access_token=";
/**
* 查询菜单
*/
String GET_MENUS = "https://api.weixin.qq.com/cgi-bin/menu/get";
/**
* 删除菜单
*/
String DEL_MENUS = "https://api.weixin.qq.com/cgi-bin/menu/delete";
/**
* 获取素材列表
*
* POST
*
*/
String BATCHGET_MATERIAL = "https://api.weixin.qq.com/cgi-bin/material/batchget_material?access_token=";
/**
* 新增永久素材
*
* POST
*
*/
String ADD_MATERIAL = "https://api.weixin.qq.com/cgi-bin/material/add_material?access_token=";
/**
* 获取永久素材
*
* POST
*
*/
String GET_MATERIAL = "https://api.weixin.qq.com/cgi-bin/material/get_material?access_token=";
/**
* 删除永久素材
*
* POST
*
*/
String DEL_MATERIAL = "https://api.weixin.qq.com/cgi-bin/material/del_material?access_token=";
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy