summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.AspNet/Clients/OAuth/TwitterClient.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2012-03-05 21:51:18 -0800
committerAndrew Arnott <andrewarnott@gmail.com>2012-03-05 21:51:18 -0800
commit88923c0bb173b3e77e0b72737c74fd8583889a9e (patch)
treec6ed043510dcd91fb7430c7bda9d08688796548f /src/DotNetOpenAuth.AspNet/Clients/OAuth/TwitterClient.cs
parent5fcf14c67ba2a9f95ed9685b8ab519394be2c2f5 (diff)
parent68dc64e8a1a1b2fb85e3a3b3214d04a78be51ee9 (diff)
downloadDotNetOpenAuth-88923c0bb173b3e77e0b72737c74fd8583889a9e.zip
DotNetOpenAuth-88923c0bb173b3e77e0b72737c74fd8583889a9e.tar.gz
DotNetOpenAuth-88923c0bb173b3e77e0b72737c74fd8583889a9e.tar.bz2
Merge branch 'master' of github.com:AArnott/dotnetopenid
Diffstat (limited to 'src/DotNetOpenAuth.AspNet/Clients/OAuth/TwitterClient.cs')
-rw-r--r--src/DotNetOpenAuth.AspNet/Clients/OAuth/TwitterClient.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/DotNetOpenAuth.AspNet/Clients/OAuth/TwitterClient.cs b/src/DotNetOpenAuth.AspNet/Clients/OAuth/TwitterClient.cs
index ad1a556..66a6a95 100644
--- a/src/DotNetOpenAuth.AspNet/Clients/OAuth/TwitterClient.cs
+++ b/src/DotNetOpenAuth.AspNet/Clients/OAuth/TwitterClient.cs
@@ -80,11 +80,12 @@ namespace DotNetOpenAuth.AspNet.Clients {
string userName = response.ExtraData["screen_name"];
string profileRequestUrl = "http://api.twitter.com/1/users/show.xml?user_id="
- + MessagingUtilities.EscapeUriDataStringRfc3986(userId);
+ + MessagingUtilities.EscapeUriDataStringRfc3986(userId);
var profileEndpoint = new MessageReceivingEndpoint(profileRequestUrl, HttpDeliveryMethods.GetRequest);
HttpWebRequest request = this.WebWorker.PrepareAuthorizedRequest(profileEndpoint, accessToken);
var extraData = new Dictionary<string, string>();
+ extraData.Add("accesstoken", accessToken);
try {
using (WebResponse profileResponse = request.GetResponse()) {
using (Stream responseStream = profileResponse.GetResponseStream()) {