Esempio n. 1
0
        /// <summary>
        ///     OAuth授权之后,获取授权用户的UID
        /// </summary>
        /// <returns>JSON</returns>
        public string GetUID()
        {
            var result = JObject.Parse(api.GetUID());

            if (result["uid"] != null)
            {
                return(result["uid"].ToString());
            }
            else
            {
                return(string.Empty);
            }
        }
Esempio n. 2
0
 /// <summary>
 /// OAuth授权之后,获取授权用户的UID
 /// </summary>
 /// <returns>JSON</returns>
 public dynamic GetUID()
 {
     return(DynamicJson.Parse(api.GetUID()));
 }