com.zopen.wechat.work.service.WechatWorkHttpUrl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zopen-ato-starter Show documentation
Show all versions of zopen-ato-starter Show documentation
Alibaba Tencent And Others For Spring Boot.
package com.zopen.wechat.work.service;
/**
* 请求地址
*
* @author [email protected]
* @since 2020/06/04
*/
public class WechatWorkHttpUrl {
// 企业微信 - 获取接口访问用的 access_token(参数:corpid、corpsecret)
public static final String WORK_GET_ACCESS_TOKEN = "https://qyapi.weixin.qq.com/cgi-bin/gettoken?corpid=%s&corpsecret=%s";
// 企业微信 - Oauth2 授权跳转,用于获取 code(参数:corp_id、redirect_uri、state)
public static final String OAUTH2_AUTHORIZE_BASE = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=%s&redirect_uri=%s&response_type=code&scope=snsapi_base&state=%s#wechat_redirect";
// 企业微信 - 获取用户ID(参数:access_token、code)
public static final String WORK_GET_USER_INFO = "https://qyapi.weixin.qq.com/cgi-bin/user/getuserinfo?access_token=%s&code=%s";
}