Mercurial > altnet-hispano
comparison Agendas/trunk/src/Agendas.Twitter/oAuthTwitter.cs @ 112:0bca45e1e664
Pantalla de Perfil donde se puede asociar la cuenta de twitter al usuario existente
author | Nelo@Kenia.neluz.int |
---|---|
date | Sat, 11 Jun 2011 01:20:59 -0300 |
parents | 90ce239cfa6d |
children | 734d3f0853bf |
comparison
equal
deleted
inserted
replaced
111:90ce239cfa6d | 112:0bca45e1e664 |
---|---|
35 | 35 |
36 public string AccessTokenGet(string requestToken, string verifier) | 36 public string AccessTokenGet(string requestToken, string verifier) |
37 { | 37 { |
38 return _twitterAdapter.GetAccessToken(ConsumerKey, ConsumerSecret, requestToken, verifier); | 38 return _twitterAdapter.GetAccessToken(ConsumerKey, ConsumerSecret, requestToken, verifier); |
39 } | 39 } |
40 | |
41 public static string GetResponseContent(string response, string tagName) | |
42 { | |
43 var tagStart = "\"" + tagName + "\":"; | |
44 var tagEnd = ","; | |
45 | |
46 var start = response.IndexOf(tagStart) + tagStart.Length; | |
47 if (start > tagStart.Length) | |
48 { | |
49 var end = response.IndexOf(tagEnd, start); | |
50 if (end > 0) | |
51 { | |
52 return response.Substring(start + 1, end - start - 2); | |
53 } | |
54 } | |
55 return string.Empty; | |
56 } | |
40 } | 57 } |
41 } | 58 } |