static async Task Inbox_GoogleApiSimpleTestAsync()
    {
        string appSecret = "___________";

        if (false)
        {
            using (GoogleApi api = new GoogleApi("651284401399-d2bth85kk6rks1no1dllb3k0d6mrornt.apps.googleusercontent.com", appSecret))
            {
                if (false)
                {
                    string url = api.AuthGenerateAuthorizeUrl(Consts.OAuthScopes.Google_Gmail, "https://www.google.com/", "123");

                    url._Print();
                }
                else
                {
                    string code = "___________";

                    var x = await api.AuthGetAccessTokenAsync(code, "https://www.google.com/");

                    x._DebugAsJson();
                }
            }
        }
        else
        {
            string token = "___________";

            using (GoogleApi api = new GoogleApi("651284401399-d2bth85kk6rks1no1dllb3k0d6mrornt.apps.googleusercontent.com", appSecret, token))
            {
                GoogleApi.MessageList[] list = await api.GmailListMessagesAsync("is:unread label:inbox", maxCount : 100);

                foreach (var msg in list)
                {
                    if (msg.id._IsFilled())
                    {
                        var m = await api.GmailGetMessageAsync(msg.id);

                        //m._DebugAsJson();

                        Con.WriteLine("----------------------------");

                        Con.WriteLine($"date: " + m.internalDate._ToDateTimeOfGoogle());
                        Con.WriteLine($"subject: " + m.GetSubject());
                        Con.WriteLine($"from: " + m.GetFrom());
                        Con.WriteLine($"body: " + m.snippet);
                    }
                }
            }
        }
    }