C# 클래스 DevZH.AspNetCore.Authentication.Baidu.BaiduHelper

Contains static methods that allow to extract user's information from a JObject instance retrieved from Baidu after a successful authentication process.
파일 보기 프로젝트 열기: noliar/MoreAuthentication 1 사용 예제들

공개 메소드들

메소드 설명
GetId ( Newtonsoft.Json.Linq.JObject user ) : string

获取百度账号 ID

GetName ( Newtonsoft.Json.Linq.JObject user ) : string

获取百度账号昵称

GetPortrait ( Newtonsoft.Json.Linq.JObject user ) : string

获取百度账号标识,一般用来获取头像

메소드 상세

GetId() 공개 정적인 메소드

获取百度账号 ID
public static GetId ( Newtonsoft.Json.Linq.JObject user ) : string
user Newtonsoft.Json.Linq.JObject
리턴 string

GetName() 공개 정적인 메소드

获取百度账号昵称
public static GetName ( Newtonsoft.Json.Linq.JObject user ) : string
user Newtonsoft.Json.Linq.JObject
리턴 string

GetPortrait() 공개 정적인 메소드

获取百度账号标识,一般用来获取头像
public static GetPortrait ( Newtonsoft.Json.Linq.JObject user ) : string
user Newtonsoft.Json.Linq.JObject
리턴 string