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

字段摘要
 
从类 com.github.sd4324530.fastweixin.company.api.QYBaseAPI 继承的字段
BASE_API_URL, config
 
构造方法摘要
QYOauthAPI(QYAPIConfig config)
          构造方法,设置apiConfig
 
方法摘要
 String getOauthPageUrl(String redirectUrl, OauthScope scope, String state)
          生成回调url,这个结果要求用户在微信中打开,即可获得token,并指向redirectUrl
 
从类 com.github.sd4324530.fastweixin.company.api.QYBaseAPI 继承的方法
executeGet, executePost, executePost, isSuccess
 
从类 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 - 用户自己设置的回调url
scope - 授权作用域
state - 用户自带参数
返回:
回调url,用户在微信中打开即可开始授权


Copyright © 2017. All rights reserved.