public LinqtoTwitter(string pathToAccessCredentialXml) { var accessCredentials = new AccessCredentials(pathToAccessCredentialXml); var authorization = LinqToTwitterAuthorizer.DoSingleUserAuth(accessCredentials); _twitterContext = new TwitterContext(authorization); //Console.WriteLine("Rate Limit Remaining: {0}", _twitterContext.ResponseHeaders["X-FeatureRateLimit-Remaining"]); }
public LinqtoTwitter(IAccessCredentials accessCredentials) { var authorization = LinqToTwitterAuthorizer.DoSingleUserAuth(accessCredentials); _twitterContext = new TwitterContext(authorization); }