public static enum OAuth2Tools.EScope extends Enum<OAuth2Tools.EScope>
Enum Constant and Description |
---|
SNSAPI_BASE
不弹出授权页面,直接跳转,只能获取用户openid
|
SNSAPI_USERINFO
弹出授权页面,可通过openid拿到昵称、性别、所在地。并且, 即使在未关注的情况下,只要用户授权,也能获取其信息
|
Modifier and Type | Method and Description |
---|---|
String |
toString() |
static OAuth2Tools.EScope |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OAuth2Tools.EScope[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OAuth2Tools.EScope SNSAPI_BASE
public static final OAuth2Tools.EScope SNSAPI_USERINFO
public static OAuth2Tools.EScope[] values()
for (OAuth2Tools.EScope c : OAuth2Tools.EScope.values()) System.out.println(c);
public static OAuth2Tools.EScope valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String toString()
toString
in class Enum<OAuth2Tools.EScope>
Copyright © 2020. All rights reserved.