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

com.zopen.wechat.work.service.WechatWorkHttpUrl Maven / Gradle / Ivy

There is a newer version: 1.0.5
Show newest version
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";

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy