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

Commented Unassigned: How to use application authentication [2573]

$
0
0
Hi

I have set up my application with twitter and i used TweetInvi to connect to twitter. Everything works just fine, but the rate limit for Search is 180 while i expect it to be 450.

Below is how i authenticate
TwitterCredentials.SetCredentials(userAccessToken, userAccessSecret, consumerKey, consumerSecret);

var rateLimits = RateLimit.GetCurrentCredentialsRateLimits();

rateLimits.SearchTweetsLimit.Limit is giving 180.

I am using tweetinvi version 0.9.4.1.

Is this how i should use the authentication mechanism to activate application authentication? Can you please help me figure out why the user level rate limit is applied even though i am using an application level key.

BTW Fantastic API. Thanks so much for making it available for every one to use.

Thanks
S.
Comments: ** Comment from web user: srawther **

Hi Linvi

Thanks for the super quick response. Good to know that you are planning to implement this feature soon.

Thanks for the example code, Looks like i will do some thing based on your example to achieve what i am trying to do.

One question, Can I create the credentials using CredentialsCreator.GenerateApplicationCredentials as shown here and then call TwitterCredentials.SetCredentials to set the newly created credentials and then use the functions like i used to do before, instead of using ExecuteQueryWithTemporaryCredentials?

Once again thank you very much for the help.
S


Viewing all articles
Browse latest Browse all 4126

Trending Articles



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