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

com.dingtalk.spring.boot.DingTalkAccessTokenProvider Maven / Gradle / Ivy

There is a newer version: 2.7.x.20240823.RELEASE
Show newest version
package com.dingtalk.spring.boot;

import com.taobao.api.ApiException;

public interface DingTalkAccessTokenProvider {

    /**
     * 根据corpId获取企业内部开发access_token
     * https://open.dingtalk.com/document/isvapp-server/obtain-the-access_token-of-an-enterprise-s-internal-applications
     * @param corpId  企业ID
     * @param appKey    企业Id
     * @return the AccessToken
     * @throws ApiException if get AccessToken Exception
     */
    String getAccessToken(String corpId, String appKey) throws ApiException;

    /**
     * 获取钉钉开放应用的ACCESS_TOKEN
     * @param corpId  企业ID
     * @param appId   企业应用Id
     * @return the AccessToken
     * @throws ApiException if get AccessToken Exception
     */
    String getSnsAccessToken(String corpId, String appId) throws ApiException;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy