View Javadoc
1   package com.foxinmy.weixin4j.qy.type;
2   
3   /**
4    * URL常量类
5    * 
6    * @className URLConsts
7    * @author jinyu(foxinmy@gmail.com)
8    * @date 2014年12月3日
9    * @since JDK 1.6
10   * @see
11   */
12  public final class URLConsts {
13  	/**
14  	 * 
15  	 */
16  	public static final String BASE_URL = "https://qyapi.weixin.qq.com/cgi-bin";
17  	/**
18  	 * 企业号获取token的url
19  	 */
20  	public static final String ASSESS_TOKEN_URL = BASE_URL + "/gettoken?corpid=%s&corpsecret=%s";
21  	/**
22  	 * 企业号提供商获取token的url
23  	 */
24  	public static final String PROVIDER_TOKEN_URL = BASE_URL + "/service/get_provider_token";
25  	/**
26  	 * 企业号jssdk获取token的url
27  	 */
28  	public static final String JS_TICKET_URL = BASE_URL + "/get_jsapi_ticket?access_token=%s";
29  	/**
30  	 * 应用套件oauth授权
31  	 */
32  	public static final String SUITE_OAUTH_URL = "https://open.work.weixin.qq.com/3rdapp/install?suite_id=%s&pre_auth_code=%s&redirect_uri=%s&state=%s";
33  	/**
34  	 * 企业号获取ticket的url
35  	 */
36  	public static final String SUITE_TICKET_URL = BASE_URL + "/ticket/get?access_token=%s&type=%s";
37  	/**
38  	 * 企业号第三方应用套件获取token的url
39  	 */
40  	public static final String SUITE_TOKEN_URL = BASE_URL + "/service/get_suite_token";
41  
42  	/**
43  	 * 企业号第三方应用套件获取预授权码的url
44  	 */
45  	public static final String SUITE_PRE_CODE_URL = BASE_URL + "/service/get_pre_auth_code?suite_access_token=%s";
46  
47  	/**
48  	 * 企业号第三方应用套件获取企业号access_token的url
49  	 */
50  	public static final String TOKEN_SUITE_URL = BASE_URL + "/service/get_corp_token?suite_access_token=%s";
51  }