일단 여기에서 찾았다.. 지금 이글도 live Wrater로 이용하는중 우와 완전 좋다~
http://parkpd.egloos.com/2524085
이건 코드 테스트 ㅋㅋ use Code snippet
public static void GetRequestTokenAsync(string consumerKey, string consumerSecret, Action<OAuthTokenResponse, Exception> callback)
{
string baseUrl = RequestTokenUrl;
Dictionary<string, string> parameters = GenerateBaseParameters(consumerKey, consumerSecret);
AddSignatureToParameters(new Uri(baseUrl), parameters, "POST", consumerSecret, null);
WebClient wc = GetRequestWebClient("POST", parameters);
wc.UploadStringAsync(new Uri(baseUrl), "POST", string.Empty);
wc.UploadStringCompleted += (s, e) =>
{
if (e.Error != null)
{
callback(null, e.Error);
}
else
{
Match matchedValues = Regex.Match(e.Result, @"oauth_token=(?<token>[^&]+)&oauth_token_secret=(?<secret>[^&]+)");
OAuthTokenResponse resp = new OAuthTokenResponse();
resp.Token = matchedValues.Groups["token"].Value;
resp.TokenSecret = matchedValues.Groups["secret"].Value;
callback(resp, null);
}
};
}