Create gmail account without phone number using c#

Rahul Patil 26 Reputation points
2023-04-10T04:40:17.87+00:00

I am working on desktop application. and I want to implement gmail account without phone number using c#. I search on google but not find any help. I spend a lot of time on google but not find any solution to create a gmail account without phone number. now I am thinking it is possible to create a gmail account without phone number it is possible? Code:

    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Login_Click(object sender, EventArgs e)
        {
            string discoveryUri = "https://www.google.com/accounts/o8/id";
            OpenIdRelyingParty openid = new OpenIdRelyingParty();
            //var b = new UriBuilder(Request.Url) { Query = "" };
            var req = openid.CreateRequest(discoveryUri);
            req.RedirectToProvider();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            //OpenIdAjaxRelyingParty rp = new OpenIdAjaxRelyingParty();
            //var r = rp.GetResponse();
            //if (r != null)
            //{
            //    switch (r.Status)
            //    {
            //        case AuthenticationStatus.Authenticated:
            //            NotLoggedIn.Visible = false;
            //            Session["GoogleIdentifier"] = r.ClaimedIdentifier.ToString();
            //            Response.Redirect("Default2.aspx");
            //            break;
            //        case AuthenticationStatus.Canceled:
            //            lblAlertMsg.Text = "Cancelled.";
            //            break;
            //    }
            //}
        }
    }

and I am using below article :

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,924 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,342 questions
{count} vote

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.