示例#1
0
文件: Listing.cs 项目: a1lic/Mystique
        /// <summary>
        /// Get lists you following
        /// </summary>
        /// <param name="provider">credential provider</param>
        /// <param name="userScreenName">target user id</param>
        public static IEnumerable <TwitterList> GetFollowingListsAll(this CredentialProvider provider, string userScreenName)
        {
            var partialUri = "lists/list.json";
            var para       = new List <KeyValuePair <string, string> >();

            if (!String.IsNullOrEmpty(userScreenName))
            {
                para.Add(new KeyValuePair <string, string>("screen_name", userScreenName));
            }
            return(provider.GetListsAll(partialUri, para));
        }