Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7591239
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T20:36:10+00:00 2026-05-30T20:36:10+00:00

I have built a windows phone 7 app with a sign in with google

  • 0

I have built a windows phone 7 app with a “sign in with google” function. Google library is not compatible with windows phone runtime so I choose RestSharp.

The app has successfully received a authentication code from Google, and the next step is to exchange the code for an access token and a refresh token. Here I encountered some problem.

var request = new RestRequest(this.TokenEndPoint, Method.POST);
request.AddParameter("code", code);
request.AddParameter("client_id", this.ClientId);
request.AddParameter("client_secret", this.Secret);
request.AddParameter("redirect_uri", "http://localhost");
request.AddParameter("grant_type", "authorization_code");
client.ExecuteAsync<???>(request, (response) =>
            {
                var passIn = response;
            }); // how to use this method?

I’m not sure how to use the client.ExecuteAsync<T> method (or any other would be helpful) to get the response from Google. Is there any other code pre-requested for me to use such method? Can anybody help me?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T20:36:11+00:00Added an answer on May 30, 2026 at 8:36 pm

    You need to bind a UI element to display the response. That seems to be the gist of the problem you’ve outlined.

    If you want to display the response in your application, you should have a UI element bound to an internal data structure.

    Displaying the response

    // in xaml, for example MainPage.xaml

    <TextBox x:Name="myResponseTextBox">
    

    // in the corresponding MainPage.xaml.cs

    client.ExecuteAsync(request, (response) =>
    {
    
       myResponseTextBox.text = response.Content; 
    
    }); 
    

    The Text box will display the result of the callback when it completes.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have built an app that works only when not run as a Windows
Once I have built an app for Windows Phone, how do I get a
I have been working with a Windows Mobile 6 app that is built with
I have a Windows Phone 7 application built in Silverlight. This application makes use
I have a solution with 2 projects: Windows Phone App and a Windows Phone
I have built a windows service application in VB.net 2008, and used the Setup
I have built a windows C++ application that I'd like to port to linux.
I am working on windows. I have built a twitter application using the twitter
Why should one go for Windows Installer XML (WiX) when we have in built
I have a Windows service built upon ATL 7's CAtlServiceModuleT class. This service serves

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.