NuGit package VS. Downloading

Aug 24, 2013 at 1:38 PM
Your download documentation says that you need to update the Exampleinvi with personal keys and tokens. Does anything similar need to be done when implementing via NuGit?
Coordinator
Aug 24, 2013 at 2:28 PM
Edited Sep 1, 2013 at 2:26 PM
Hello,

Unfortunately I cannot provide any Token information directly in the Twitter API. At least until I have more information from the Twitter team concerning this subject.

Examplinvi is getting a Token from the App.config file where you have to enter the credentials you want to use.
It creates a Token with the following code :
IToken token = new Token(
ConfigurationManager.AppSettings["token_AccessToken"],
ConfigurationManager.AppSettings["token_AccessTokenSecret"],
ConfigurationManager.AppSettings["token_ConsumerKey"],
ConfigurationManager.AppSettings["token_ConsumerSecret"]);
_
The nuget package does not contain Examplinvi (which is in fact your application at this point).

To get Token credentials from Twitter please follow this steps : Documentation > Create your Twitter application

To create a Token (which is required for any operation in Tweetinvi) use the Token class constructor :
IToken token = new Token("userKey", "userSecret", "consumerKey", "consumerSecret");
_
Or use the TokenCreator class.
ITokenCreator creator = new TokenCreator("ConsumerKey", "ConsumerSecret");
IToken newToken = creator.CreateToken(url => {
  int captcha = xxxx;
  return captcha;
});
_

Finally to understand how you can use your Token in Tweetinvi please read TokenScope.

Please let me know if this solve your problem.
Sincerely,
Linvi
Marked as answer by linvi on 1/16/2014 at 2:30 AM