comparison Agendas/trunk/src/Agendas.Twitter/oAuthTwitter.cs @ 110:a456eb519e23

Lanzando twitts desde el sitio con la cuenta de AltNetHispanoDESA
author Nelo@Kenia.neluz.int
date Wed, 08 Jun 2011 07:33:14 -0300
parents 1ee5711256db
children 90ce239cfa6d
comparison
equal deleted inserted replaced
109:6bd9be78caa0 110:a456eb519e23
6 { 6 {
7 public class OAuthTwitter 7 public class OAuthTwitter
8 { 8 {
9 private string ConsumerKey 9 private string ConsumerKey
10 { 10 {
11 get { return ConfigurationManager.AppSettings["consumerKey"]; } 11 get { return ConfigurationManager.AppSettings["consumerKeyAppSignIn"]; }
12 } 12 }
13 13
14 private string ConsumerSecret 14 private string ConsumerSecret
15 { 15 {
16 get { return ConfigurationManager.AppSettings["consumerSecret"]; } 16 get { return ConfigurationManager.AppSettings["consumerSecretAppSignIn"]; }
17 } 17 }
18 18
19 public Uri AuthorizationLinkGet(string callbackAddress) 19 public Uri AuthorizationLinkGet(string callbackAddress)
20 { 20 {
21 // Obtain a request token 21 // Obtain a request token
28 } 28 }
29 29
30 public string AccessTokenGet(string requestToken, string verifier) 30 public string AccessTokenGet(string requestToken, string verifier)
31 { 31 {
32 OAuthTokenResponse accessToken = OAuthUtility.GetAccessToken(ConsumerKey, ConsumerSecret, requestToken, verifier); 32 OAuthTokenResponse accessToken = OAuthUtility.GetAccessToken(ConsumerKey, ConsumerSecret, requestToken, verifier);
33
33 if (accessToken!=null) 34 if (accessToken!=null)
34 { 35 {
35 var tokens = new OAuthTokens 36 var tokens = new OAuthTokens
36 { 37 {
37 AccessToken = accessToken.Token, 38 AccessToken = accessToken.Token,