Free Support Forum - aspose.com

Gmail Imap OAuth2 - what is 929645059575.apps.googleusercontent.com

In this article http://www.aspose.com/docs/display/emailnet/Access+SMTP+and+IMAP+Server+using+OAuth in particular this code, what is 929645059575.apps.googleusercontent.com? Is it unique to the aspose demo or a fixed webaddress for gmail?

internal static string GetAccessToken(string authorizationCode)
{
string actionUrl = “https://accounts.google.com/o/oauth2/token;
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(actionUrl);
request.CookieContainer = new CookieContainer();
request.Method = “POST”;
request.ContentType = “application/x-www-form-urlencoded”;
string encodedParameters = string.Format(
“client_id={1}&code={0}&client_secret={2}&redirect_uri={3}&grant_type={4}”,
HttpUtility.UrlEncode(authorizationCode),
HttpUtility.UrlEncode(929645059575.apps.googleusercontent.com),
HttpUtility.UrlEncode(“USnH5eQRsC4XrjJbpGG7WVq5”),
HttpUtility.UrlEncode(“urn:ietf:wg:oauth:2.0:oob”),
HttpUtility.UrlEncode(“authorization_code”)
);

Hi Dominic,


Thank you for your inquiry.

The highlighted string refers to the Client Id generated in “Google Developer’s Console” and is different for each user. You may refer to our documentation section, Creating Project in Google Developer Console, for this purpose if required.