Example #1
0
 /// <summary>
 /// 转换为微博访问令牌
 /// </summary>
 /// <param name="value">授权结果</param>
 /// <returns></returns>
 public static WeiboAccessTokenResult ToWeiboToken(this AuthorizationResult value)
 {
     value.CheckNotNull(nameof(value));
     return(!value.Success ? null : value.Result.ToObject <WeiboAccessTokenResult>());
 }