

Local $sAuthorizationCode = "4/AAAPXJOZ-Tz0s6mrx7JbV6nthXSfcxaszFh_aH0azVqHkSHkfiwE8uamcabn4eMbEWg1eAuUw7AU0PQ0XeWUFRo#" Local $sClientSecret = "cWalvFr3WxiE6cjUkdmKEPo8"

Let's now ask Google about our Access Token and Refresh Token Now you can thing is something wrong but all is ok, you need to copy all after code= . Next Google ask you to permission for access to your personal details by application Autoit Local $sRedirectUri = " oAuth2GetAuthorizationCode($sClientId, $sRedirectUri)įunction will execute default browser for ask you to permission. Now we need to call a some function to get access code. Now you received a file named client_id.json, it's how it look in Sublime Text: Last step on this website is download source with your credentials in *Json format. Next configure screen aplication, type some name and click Next. Type name of a new client id for oAuth 2.0 and click Create a new Client ID. Select Windows Interface (combobox), User credentials (radio) and click button what is need bla bla Take "Gmail" in search input and after click in found result.Ĭlick Enable interface, Google will working now. Next go to enable your API interface, we make if for Google

Google will working now, please wait until finish.

oAuth2RefreshAccessToken() -> Get current "access_token" using "refresh_token".Ĥ.2 Screenshots from authorization process (Polish language)Įnter name of you new project and click Create oAuth2GetAccessToken() -> Get "access_token" and "refresh_token" first time. oAuth2GetAuthorizationCode() -> Get Code for "grant". Description: UDF for authorize your app with oAuth 2.0 Google. In this UDF i show you how to pass first authorization process., this allow you to automate most of functions using API interface. You are able to connect into your Google accounts and manage documents. OAuth 2.0 is security system implemented by Google a few years ago.
