내가 zithrey하는 의견을 충분히 명성을 가지고 있지 않지만 나는 또한 동의 linq2twitter의 시작하기 문서 아파 프로젝트에 오류가 그것을 실행 불가하게로드. 희망이 사람을 도움이 될 것입니다 - 그것은 PIN 인증을 사용
static void Main(string[] args)
{
string ckey = "consumerkey";
string csecret = "consumersecret";
var auth = new PinAuthorizer()
{
Credentials = new InMemoryCredentials
{
ConsumerKey = ckey,
ConsumerSecret = csecret
},
GoToTwitterAuthorization = pageLink => Process.Start(pageLink),
GetPin =() =>
{
Console.WriteLine(
"\nAfter authorizing this application, Twitter " +
"will give you a 7-digit PIN Number.\n"
);
Console.Write("Enter the PIN number here: ");
return Console.ReadLine();
}
};
auth.Authorize();
var twitterCtx = new TwitterContext(auth);
twitterCtx.UpdateStatus("This status has been created from a C# console app!");
}
@ stupid-phil - 이것을 사용했습니다! 아주 아주 좋은! 이 사람에게 담당자를 줘! –
LINQ를 사용하는 솔루션에 +1 : – James
감사합니다. Phil! 지금 : linq 무엇입니까? –