com.belerweb.social.weixin.bean
Class AccessToken

java.lang.Object
  extended by com.belerweb.social.bean.JsonBean
      extended by com.belerweb.social.weixin.bean.AccessToken

public class AccessToken
extends JsonBean

网页授权接口调用凭证


Constructor Summary
AccessToken()
           
 
Method Summary
 Long getExpiresIn()
          access_token接口调用凭证超时时间,单位(秒)
 String getOpenId()
          用户唯一标识,请注意,在未关注公众号时,用户访问公众号的网页,也会产生一个用户和公众号唯一的OpenID
 String getRefreshToken()
          用户刷新access_token
 Scope getScope()
          用户授权的作用域,使用逗号(,)分隔
 String getToken()
          网页授权接口调用凭证,注意:此access_token与基础支持的access_token不同
static AccessToken parse(org.json.JSONObject jsonObject)
           
 void setExpiresIn(Long expiresIn)
           
 void setOpenId(String openId)
           
 void setRefreshToken(String refreshToken)
           
 void setScope(Scope scope)
           
 void setToken(String token)
           
 
Methods inherited from class com.belerweb.social.bean.JsonBean
getJsonObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccessToken

public AccessToken()
Method Detail

getToken

public String getToken()
网页授权接口调用凭证,注意:此access_token与基础支持的access_token不同


setToken

public void setToken(String token)

getExpiresIn

public Long getExpiresIn()
access_token接口调用凭证超时时间,单位(秒)


setExpiresIn

public void setExpiresIn(Long expiresIn)

getRefreshToken

public String getRefreshToken()
用户刷新access_token


setRefreshToken

public void setRefreshToken(String refreshToken)

getOpenId

public String getOpenId()
用户唯一标识,请注意,在未关注公众号时,用户访问公众号的网页,也会产生一个用户和公众号唯一的OpenID


setOpenId

public void setOpenId(String openId)

getScope

public Scope getScope()
用户授权的作用域,使用逗号(,)分隔


setScope

public void setScope(Scope scope)

parse

public static AccessToken parse(org.json.JSONObject jsonObject)


Copyright © 2014. All Rights Reserved.