Quantcast
Channel: Tweetinvi a friendly Twitter C# library
Viewing all articles
Browse latest Browse all 4126

New Post: Searching Tweets of protected account

$
0
0
Sorry for my broken English, first.

I tried to use Search class to get tweets of my friend's screenname.

but when I try to get protected friend's tweet, variable 'temp' below returns 0.
TwitterCredentials.SetCredentials(userAccessToken, userAccessSecret, consumerKey, consumerSecret);

var temparameter = Search.GenerateTweetSearchParameter("from:"+userscreenname);
 temparameter.Since = till.Subtract(TimeSpan.FromHours(10));
temparameter.MaximumNumberOfResults = 100;

var temp = Search.SearchTweets(temparameter);

return temp;
this also happens when I protected my account and put screenname of mine.
I set credential for application before search it.


Is there a way to solve this problem?

Or, is there another way to get protected friend's tweet?

Viewing all articles
Browse latest Browse all 4126

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>