示例#1
0
        public Task <IList <TwitterProfile> > GetUsersAsync(params string[] screenNames)
        {
            string joinedScreenNames = ArrayUtils.Join(screenNames);

            return(this.restTemplate.GetForObjectAsync <IList <TwitterProfile> >(this.BuildUrl("users/lookup.json", "screen_name", joinedScreenNames)));
        }
示例#2
0
        public RestOperationCanceler GetUsersAsync(string[] screenNames, Action <RestOperationCompletedEventArgs <IList <TwitterProfile> > > operationCompleted)
        {
            string joinedScreenNames = ArrayUtils.Join(screenNames);

            return(this.restTemplate.GetForObjectAsync <IList <TwitterProfile> >(this.BuildUrl("users/lookup.json", "screen_name", joinedScreenNames), operationCompleted));
        }
示例#3
0
        public Task <IList <TwitterProfile> > GetUsersAsync(params long[] userIds)
        {
            string joinedIds = ArrayUtils.Join(userIds);

            return(this.restTemplate.GetForObjectAsync <IList <TwitterProfile> >(this.BuildUrl("users/lookup.json", "user_id", joinedIds)));
        }
示例#4
0
        public RestOperationCanceler GetUsersAsync(long[] userIds, Action <RestOperationCompletedEventArgs <IList <TwitterProfile> > > operationCompleted)
        {
            string joinedIds = ArrayUtils.Join(userIds);

            return(this.restTemplate.GetForObjectAsync <IList <TwitterProfile> >(this.BuildUrl("users/lookup.json", "user_id", joinedIds), operationCompleted));
        }