com.github.sd4324530.fastweixin.company.api
类 QYOauthAPI
java.lang.Object
com.github.sd4324530.fastweixin.company.api.QYBaseAPI
com.github.sd4324530.fastweixin.company.api.QYOauthAPI
public class QYOauthAPI
- extends QYBaseAPI
企业号身份授权
====================================================================
上海聚攒软件开发有限公司
-------------------------------------------------------------------
- 从以下版本开始:
- 1.3.6
====================================================================
- 版本:
- 1.0.beta
- 作者:
- Nottyjay
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QYOauthAPI
public QYOauthAPI(QYAPIConfig config)
- 构造方法,设置apiConfig
- 参数:
config - 微信API配置对象
getOauthPageUrl
public String getOauthPageUrl(String redirectUrl,
OauthScope scope,
String state)
- 生成回调url,这个结果要求用户在微信中打开,即可获得token,并指向redirectUrl
- 参数:
redirectUrl - 用户自己设置的回调urlscope - 授权作用域state - 用户自带参数
- 返回:
- 回调url,用户在微信中打开即可开始授权
Copyright © 2017. All rights reserved.