diff options
Diffstat (limited to 'samples/OAuthConsumer/GoogleApps2Legged.aspx.cs')
-rw-r--r-- | samples/OAuthConsumer/GoogleApps2Legged.aspx.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/samples/OAuthConsumer/GoogleApps2Legged.aspx.cs b/samples/OAuthConsumer/GoogleApps2Legged.aspx.cs index 217a09c..8ecea2c 100644 --- a/samples/OAuthConsumer/GoogleApps2Legged.aspx.cs +++ b/samples/OAuthConsumer/GoogleApps2Legged.aspx.cs @@ -9,6 +9,7 @@ using System.Configuration; using DotNetOpenAuth.OAuth; using DotNetOpenAuth.OAuth.Messages; + using DotNetOpenAuth.Messaging; public partial class GoogleApps2Legged : System.Web.UI.Page { private InMemoryTokenManager TokenManager { @@ -30,7 +31,9 @@ protected void Page_Load(object sender, EventArgs e) { var google = new WebConsumer(GoogleConsumer.ServiceDescription, this.TokenManager); string accessToken = google.RequestNewClientAccount(); - string tokenSecret = google.TokenManager.GetTokenSecret(accessToken); + ////string tokenSecret = google.TokenManager.GetTokenSecret(accessToken); + MessageReceivingEndpoint ep = null; // set up your authorized call here. + google.PrepareAuthorizedRequestAndSend(ep, accessToken); } } }
\ No newline at end of file |