package com.bcxin.ins.weixin.util.weixin.util;

/**
 * 参数API类
 *
 * @author ivhhs
 * @date 2014.10.16
 */
public class ConstantWeiXin {
	// token
	public static String TOKEN = "abc123";
	// 随机戳
	public static String encodingAESKey = "V4KgSns4uI6XWr0FrjeMMildap1rx2dgyb3yrEJdR7t";
	// 你的企业号ID
	public static String CORPID = "wxd54dc4c0b0645984";   //wx0776f6866271707a
	// 管理组的凭证密钥，每个secret代表了对应用、通讯录、接口的不同权限；不同的管理组拥有不同的secret
	public static String SECRET = "dd761fa88e6cbfd159218e956a8c7ca7";//d4624c36b6795d1d99dcf0547af5443d
	// OAuth2 回调地址
	public static String REDIRECT_URI = "http://shaxinxi.com/login";

	//获取code
	public static  String GET_CODE = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=CORPID&redirect_uri=REDIRECT_URI&response_type=code&scope=snsapi_base&state=a123#wechat_redirect";

	//获取oppenid
	public static  String GET_OPPPENID="https://api.weixin.qq.com/sns/oauth2/access_token?appid=CORPID&secret=SECRET&code=CODE&grant_type=authorization_code";


	//获取token  需要放配置文件 access_token的有效期目前为2个小时，需定时刷新
	public static  String GET_TOKEN = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=CORPID&secret=SECRET";


	//创建菜单
	public static  String  CREATE_MENU="https://api.weixin.qq.com/cgi-bin/menu/create?access_token=ACCESS_TOKEN";


	//创建短链接
	public static  String  URL_TO_SHORT="https://api.weixin.qq.com/cgi-bin/shorturl?access_token=ACCESS_TOKEN";


	//创建标签   https://api.weixin.qq.com/cgi-bin/tags/create?access_token=ACCESS_TOKEN
	public static  String  CRATE_TAG="https://api.weixin.qq.com/cgi-bin/tags/create?access_token=ACCESS_TOKEN";


	//为用户打标签
	public static  String  JOIN_TAG_USER="https://api.weixin.qq.com/cgi-bin/tags/members/batchtagging?access_token=ACCESS_TOKEN";


	//创建永久二维码
	public  static  String   QRCODE_CREATE="https://api.weixin.qq.com/cgi-bin/qrcode/create?access_token=ACCESS_TOKEN";

	//获取用户信息(判断用户是否已经关注了公众号)  http请求方式: GET
	public  static  String   USER_INFO="https://api.weixin.qq.com/cgi-bin/user/info?access_token=ACCESS_TOKEN&openid=OPENID&lang=zh_CN";


    //获取微信js分享接口
	public static String APITICKETURL = "https://api.weixin.qq.com/cgi-bin/ticket/getticket?access_token=ACCESS_TOKEN&type=jsapi";
}
