Google Drive Api Refresh Token

Credential - I nteract with API using Access token. We're setting refresh token and creating a new instance of Google_Service_Drive with Google_Client instance from the service container. pageAction API to put icons in the main Google Chrome toolbar, to the right of the address bar. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected] Using mysqli_login_with_google. Get Access Token # Set the Google Auth parameters. Поскольку мы хотим работать с форматами G Suite, необходимо подключить к проекту библиотеку Google Drive API. Responses TokenResponse - 27 examples found. PM> Install-Package Google. NET desktop application is still a "native application". My offline token is getting authenticated every time without any problem. Engel Weihnachten Heilig Form Keksausstecher Teig Teig Plätzchen Fondant Scharf. Some API servers issue OAuth tokens that expire after a while. refresh_token: A token that you can use to obtain a new access token. When you get to step 3, click on step 2 again and you should see your refresh token. io application. Requesting access to the user's Google Drive data, obtaining a validation code, and exchanging the validation code for OAuth 2. Drive, DriveService. google-drive. io and go to the Google Drive tab. Follow the instructions below to create one. -Login URL : […]. createElement ('script');. You can continue to use "refresh token" got at part 2, until it's revoked. pythonでクラウドストレージを色々いじってみたらgoogledriveが一番簡単に操作できたので、紹介します。 準備 ・google apiに登録して「クライアントID」、「クライアントシークレット」を取得する。(以下参考) qiita. Latest version allows you to create your own apps and use only the Base G4G product to retrieve and refresh tokens! See documentation by clicking here. That happened to me as well on the first try, it is a little confusing, but I can walk you through it: On the first try you will need to deselect Refresh token. To get refresh token in advance (read more about offline access) few steps are required: Register application (client) in Google API Console - create Client ID for web applications - example:. Specifically, we need the username to get detailed listing information of the User's files on Google Drive. CHANGED: Amazon Drive drive size set to used bytes plus 100 TB. You can rate examples to help us improve the quality of examples. To access Google Drive Content we requires two things 1. Join the 200,000 developers using Yahoo tools to build their app businesses. Drive API | Google Developers. Apis Enums ETagAction. Seguindo os passos desse tutorial, eu consegui realizar o envio de um arquivo para o meu Google Drive via API, a prioridade é que o upload fosse realizado sem que o usuário realizasse a confirmação. In other words, Google Docs do not have their own file format or type, as Google Docs does not create "files" but rather creates symbolic links to the data that is your document in the cloud. File or use the Refresh Token that was previously stored in your token will be stored locally on the AppData directory, so. A session for Google Drive operations. Please see below for my code. DriveFile}; // here is where we Request the user to give us access, or use the Refresh Token that was previously stored in %AppData% UserCredential credential = GoogleWebAuthorizationBroker. The article from Montel Edwards linked above has instructions for this piece. identity API handles fetching an OAuth token for the logged-in user, so the hard work is done for us! Once we have a long-lived access token, the apps uses the Google Drive API to access the user's data. (Invalid request (refresh token not present). Have not yet obtained an access token from Google – you need to authorise or re-authorise your connection to Google Drive. 0 to Access Google APIs with Google API PHP Client. You can rate examples to help us improve the quality of examples. Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers. Search for your API there. The way the plugin works with Google's API makes the plugin inappropriate for users with many (hundreds and thousands) of. The Firebase SDKs for Cloud Storage add Google security to file uploads and downloads for your Firebase apps, regardless of network quality. To obtain a list of existing Refresh Tokens, call the List device credentials endpoint, specifying type=refresh_token with an Access Token containing read:device_credentials scope. How can I refresh it and refresh automatically?. Let’s see this sample API call:. once this token is expired to can get new AccessToken as long as you have obtained and saved RefreshToken (Returned to. Both tokens are now saved in the TinyDB object. Discussion List. Because in that way if one access_token is compromised it's only compromised until the next refresh :) I've now found out that refresh_token's are only issued to those requesting offline scope/permissions. Use from_credentials, from_access_token, from_service_account_key or from_config class method to construct a GoogleDrive::Session object. The GoogleWebAuthorizationBroker. You can now use your own Google Drive API client id and secret key when accessing Google Drive. 注意:获取Google Drive返回的token 部署方案2:使用rclone官方注册的API密钥。 (作者不会记录refresh_token,但为避免纠纷,建议. It's an old question but seems to me it wasn't completely answered, and I needed this information too so I'll post my answer. There are multiple ways for authorization, based on whom your code access Google on behalf of:. How to Refresh Your Google Calendar Access Token Using Refresh Tokens. configuration. Get started with Google Drive and Laravel This gist has moved! This gist was getting a lot of comments/questions, but since there are no notifications when someone replies to a gist, I've moved the setup instructions and a bunch of sample code to a dedicated Github repo. In step 1 on the left, scroll to "Drive API v3", expand it and check the first drive scope. Wrapped, Polyester Cord 34761110296. Connect your app to billions of cloud files. Token de acceso a la API de Google Drive y redirigir las preguntas de la URL; Crea una subcarpeta usando google-drive-api y devuelve la identificación con PHP; Permisos insuficientes de la API de Google que enumeran archivos; Cuenta de servicio de unidad de Google y "Cliente no autorizado o scope en solicitud" La carga de api de Google Drive falla. To get refresh token in advance (read more about offline access) few steps are required: Register application (client) in Google API Console - create Client ID for web applications - example:. # # Rules with sids 100000000 through 100000908 are under the GPLv2. your Google Drive API refresh token; your Google Drive API access token; Google Documents content is not stored by the Confluence Google Drive add-on. This token (X-Ms-Apim-Tokens) is the Base64 Url encoded value (see RFC 4648) of the following json string, and as you can see, the value includes the refresh token and id token of Google account. In your Zoho Developer Console homepage, click Build Connectors. Where you will enter client name and api scope and click authorize after click authorize. Before we can start scripting in Powershell we first need to get a ClientId, ClientSecret, AuthCode and finally the Access and Refresh tokens. How can I determine if my token was revoked? Both short-lived access tokens and long-lived refresh tokens will be revoked when a user changes their password. The first step is to provide the Request Token, Access Token and Refresh Token URLs from the Google server. I just get the other three response items. Even if the access token has expired, the user consent stage can be avoided if a refresh token is available. setCenter功能将当前位置设置为默认设置位置? php - Google Maps API v3:如何设置缩放级别和地图中心到用户提交的位置?. NEW: Google Drive. Save the settings. ” even though I went through all of the Drive Setup here. In your Zoho Developer Console homepage, click Build Connectors. requests import Request # If modifying these scopes, delete the file token. Follow the instructions below to create one. Refer below code. I use HWIO Bundle for google api and when I have response from google refreshToken = null why? How to refresh token oAuthToken = {HWI\Bundle\OAuthBundle\Security\Core\Authentication\Token\OAuthToken} [11] accessToken = "ya29. Microsoft has few build-in client for Microsoft, Twitter, Facebook, Google. The GoogleWebAuthorizationBroker. A new token will be granted when the user re-authenticates with their Google account username and. Test API-wrapping R packages with OAuth Tokens package to grab documents from Google drive in my rchie don’t get the auto-refresh. Refresh the access token using the long-lived. Google gives us an access to lots of welfare with the Google API. Open the file and find refresh_token in that. These are the top rated real world C# (CSharp) examples of Google. From the projects list, select a project or create a new one. js client library for accessing Google APIs. To revoke a Refresh Token using the Auth0 Management API, you need the id of the Refresh Token you wish to revoke. Headless Google Drive Uploads. 0 + JavaScript + NodeJS if an application wants to show you your latest shared files in the google drive you will have to provide your credentials of. Google OAuth Refresh Token tokens don't work with Google's APIs for more than an hour! Please advise how to properly use both Firebase and Google Drive (or any. -Login URL : […]. js - Google OAuth2 API Refresh Tokens I'm using the google-auth-library-nodejs library to integrate into a number of GMail accounts, to get lists of emails. 0, API Keys and JWT (Service Tokens) is included. How to Verify Google API OAuth Token Amit Agarwal is a web geek , ex-columnist for The Wall Street Journal and founder of Digital Inspiration , a hugely popular tech how-to website since 2004. If expired or will expire within 15 minutes, request a new token (you send the refresh token with this). We use cookies for various purposes including analytics. Кроме того, нам понадобится библиотека Google Sheets API, Google Docs API. I know how to code php. If you experiences frequent errors and delays please use your own API client id and secret key. The result is an authorization code, which the application can exchange for an access token and refresh token. Refresh Tokens are a secret - do not share it with others. This is a 45-60-minute tech talk introducing developers to coding new projects using Google APIs with Python. At runtime an instance gets injected into my controller's constructor, which I then store in a field named _googleDriveApi. In this article, we go through the steps that are necessary to have the Clipchamp video API upload videos to a folder on Google Drive. expires_in : long (optional) The time (in seconds) before the access_token expires, generally 3,600. If the application continues to request refresh tokens for the same Client/Account pair, once the 26th token is issued, the 1st refresh token that was previously issued will become invalid. Where you will enter client name and api scope and click authorize after click authorize. AuthorizeAsync(new ClientSecrets { ClientId = CLIENT_ID, ClientSecret = CLIENT_SECRET. How It Works. Ci8lA1JTu9CB. We were calling the method every time we made a. Get Access Token # Set the Google Auth parameters. When the OAuth2 three-legged authorization has successfully completed in the background thread, this property contains the access_token. Ich verwende eine Datei / ein Skript, um das Offline-Token zu erhalten, und dann eine Klasse, um mit der API zu arbeiten:. If you experiences frequent errors and delays please use your own API client id and secret key. 0にてアクセストークンを取得しAPIアクセスする方式でなければ今後公開されるであろうAPI群は利用できないはずですので、ここでOAuth2. Easily interact with Google Apps APIs such as GMail, Google Calendar, Google Contacts, Google Drive and Google Cloud Print from command lines or using ILE subprocedures on your IBM i!. Add salesforce document in google drive. Fitbit team, we are getting wrong status codes when Refreshing an invalid or expired token. Step 3: The credential can then be used to access Google services. One way to get an access token is to have a different kind of token - a refresh token. So it makes little sense to keep those stored after the authentication took place, as it is a security liability to keep security tokens stored when we don. C# (CSharp) Google. On the left, click Credentials. If you come from an IT Pro background like me, I have probably scared you off already by mentioning terms like Rest API, RegEx, JSON & OAuth. To make requests using OAuth 2. When it first connects to such a service, it redirects the users to the oAuth authorization page and then it stores the Access token and the Refresh token so that the application can access the Cloud service later. It only syncs one way at the time and works more like rsync than e. To use Google Drive API, you need first to obtain the access token by completing the following steps using Google Chrome: Go to the Google API Console and select an existing project or create a new one. Third-party mail apps like Apple ® Mail ® and Mozilla ® Thunderbird ® ―as well as other applications that use mail scopes to access a user’s mail―will stop syncing data upon password reset until a new OAuth 2. Step 3: The credential can then be used to access Google services. com Create apps that read, write, and sync files in Google Drive. So, you want to access data from a Google user in your application. com ・google apiのライブラリ「google-api-python…. Latest version allows you to create your own apps and use only the Base G4G product to retrieve and refresh tokens! See documentation by clicking here. 0 access token has expired, and a refresh token is not available. This will provide access to your files in Google Drive to your form. Some questions like this one: Get refresh token google api have said to use approval_prompt=force, but that doesn't work either and entirely defeats the purpose of having access_type=offline. Since OAuth 2. Get Access Token # Set the Google Auth parameters. io and go to the Google Drive tab. PM> Install-Package Google. Google Drive API. See the complete profile on LinkedIn and discover Ishita’s. Data in production instances of Confluence Google Drive is stored in Postgres databases in Amazon's cloud offering, protected by username/password credentials. Check token expiration date vs todays day 2. Sign in to use Google's Security Checkup to strengthen your online security. Primary Drive Belt replaces Murray 37X114. yaml etc), to enable access of my google drive account to my python scripts. or you need to Play around Google Playground from the refresh token. If you want a force access token refresh, you can do it by calling refreshToken: $drive->refreshToken($refreshToken); Beware, refresh_token will be returned only on the first $drive->authenticate(), you need to permanently store it. A more modern approach leverages token exchange, authenticated API calls, and standards such as OAuth2. In order to get a new refresh_token, you need to revoke your existing token and start auth process again. Search for your API there. Google has provided a. Google Apps Script is a Javascript-based scripting language hosted and run on Google servers, that extends the functionality of Google Apps. once this token is expired to can get new AccessToken as long as you have obtained and saved RefreshToken (Returned to. Viagra pill for woman. You'll need to create the application inside Google Console. The GoogleWebAuthorizationBroker. Consuming Google Drive API Using OAuth 2. Under APIs be sure to enable the Google Drive API and Google Drive SDK, as always don’t forget to add a product name and email address on the consent screen form. In other words, Google Docs do not have their own file format or type, as Google Docs does not create "files" but rather creates symbolic links to the data that is your document in the cloud. I wanted to quickly backup a compressed copy of my LibreNMS install and so I went looking for a super easy way to upload a file to Google Drive, and I found it with gdrive. Next we take a detour to obtain the User info from the Google people API, part of Google+. As mentioned before, OpenID Connect is based on the OAuth 2. AuthorizeAsync(new ClientSecrets { ClientId = CLIENT_ID, ClientSecret = CLIENT_SECRET. Drive API | Google Developers. Responses TokenResponse - 27 examples found. Google APIs Google Calendar Google Cloud Storage Google Drive Google Photos Google Sheets Google Tasks Gzip HTML-to-XML/Text: HTTP HTTP Misc IMAP JSON JSON Web Encryption (JWE) JSON Web Signatures (JWS) JSON Web Token (JWT) Java KeyStore (JKS) MHT / HTML Email MIME Microsoft Graph NTLM OAuth1 OAuth2 OneDrive OpenSSL Outlook PEM PFX/P12 POP3. Page actions represent actions that can be taken on the current page, but that aren't applicable to. Publish refresh token: Start the "Authorization Code Setup" dialog. Login to Google Account via OAuth 2. On the Sign in method tab, enable the Google sign-in method and click Save. Recipients are only eligible to receive this awa. Easily interact with Google Apps APIs such as GMail, Google Calendar, Google Contacts, Google Drive and Google Cloud Print from command lines or using ILE subprocedures on your IBM i!. how to upload image to Google Drive with outputstream writer? in How to get refresh token using Xamarin. 0 + JavaScript + NodeJS if an application wants to show you your latest shared files in the google drive you will have to provide your credentials of. The people at Google are very responsive whenever I have an issue and have been instrumental in making us successful. Enter the Client ID and Client Secret Key from the first step above. In order to provide its services, the Google Drive for Confluence app saves the following configuration data: Your confluence host key. configuration. 0 access token has expired, and a refresh token is not available. Tag: google-api,access-token,adsense-api From here: Google AdSense API asking for log in each time I tried and this worked the first time, but the next day, the script ran and got an error: Uncaught exception 'Google_Auth_Exception' with message 'The OAuth 2. 0 access tokens. The APIs are well documented on developer. The problem I am having is allowing the skill to stay connected through the use of a refresh token. See More Google Drive Examples at rest-examples. In step 1 on the left, scroll to "Drive API v3", expand it and check the first drive scope. js - Google OAuth2 API Refresh Tokens I'm using the google-auth-library-nodejs library to integrate into a number of GMail accounts, to get lists of emails. Uploading Videos from the Clipchamp HTML5 Video API to Google Drive. This plugin works with Google Drive, not Google Photos; you can upload to Google Photos with my Google Photos plugin (though be warned that Google's support for this is currently quite limited). This script is useful if you are using something like Little Software Stats, WordPress, or some other web application that utilizes a MySQL database. UserCredential extracted from open source projects. Because in that way if one access_token is compromised it's only compromised until the next refresh :) I've now found out that refresh_token's are only issued to those requesting offline scope/permissions. path from googleapiclient. The GoogleWebAuthorizationBroker. Google Drive API Part -1: Here Now onto the cool stuff - code. It's an old question but seems to me it wasn't completely answered, and I needed this information too so I'll post my answer. google php (2) Nachdem ich viel durchgemacht habe, habe ich das zum Laufen gebracht. Key features this app uses: AngularJS's autodetection for CSP; Render a list of files fetched from the Google Drive API. He completado los pasos de la autorización y obtiene el token de acceso y actualización de la ficha. In order to get a new refresh_token, you need to revoke your existing token and start auth process again. METHODS new(). I use google drive's OAuth Credentials (client_secrets, credentials, settings. Google Drive is Google’s Cloud-based file storage service, aimed at consumers and businesses alike. io application. refresh_token. Then, when I want to call it, I have a bit of code which retrieves the user's access token and refresh token from the database. Google OAuth 2: access data from a Google user in your application By Erwin Maas 17 June 2015 Code, oauth. This can be attained in many different ways. I’ve also tried uninstalling the plugin and reinstalling, that didn’t work either. Let’s see this sample API call:. I hope people can take ideas from the following example to do amazing stuffs with Google services. public Google. After landing to the console page, click Continue. Get started with Google Drive and Laravel This gist has moved! This gist was getting a lot of comments/questions, but since there are no notifications when someone replies to a gist, I've moved the setup instructions and a bunch of sample code to a dedicated Github repo. how to upload image to Google Drive with outputstream writer? in How to get refresh token using Xamarin. Google Cloud Platform Project and Enable API You need to create a new or use existing Google Cloud Platform project. Publish refresh token: Start the "Authorization Code Setup" dialog. Home > node. We were able to do the bulk of the code work in the app's setup. У меня вопрос по работе с сетью в Delphi С помощью REST library (с которой знаком поверхностно) подключаюсь к Google drive api в OAuth2Authenticator-е успешно получил Access и Refresh token-ы пы. You can use our SDKs to store images, audio, video, or other user-generated content. Drive, DriveService. Support for authorization and authentication with OAuth 2. configuration. When you use the Google Drive API to download Google Docs, you get “documents” that are really just links to data in the cloud. I guess, must some auth, but i have used refresh tokens to authenticate. Now we need to write a function for google authentication using the credentials we obtained upto this point. Google's implementation of OAuth 2. "expires_in": { time in seconds that the token remains valid }, "refresh_token": { new refresh token to use when the token has timed out }} A new refresh token will be issued for the user, Persist this new token and use it the next time you need to acquire a new access token for the user. Using mysqli_login_with_google. Unlike access tokens, refresh tokens last for a long time. 0 Client API. For example our apps can exchange data with google drive, use…. Google services are cool and you can build products and services around it. This sample application describes how your PHP application can connect to the user's Gmail account using the Google PHP client library and OAuth2. If you want to upload file to Google Drive, you will naturally gravitate towards the Google Drive API. Support for authorization and authentication with OAuth 2. This blog talks about integrating the Google Drive infrastructure in our Play Scala application as like Assembla and some others. In step 1 on the left, scroll to "Drive API v3", expand it and check the first drive scope. 2 google/apiclient:v2. I have already discussed about Login authentication with Google APIs , You can follow this link to get access token after successfully authentication with Google. 始めに 3記事について 説明しないこと 事前準備 筆者が使用した環境 Google APIsでプロジェクトを作成する 作成したプロジェクトにGoogle Drive APIの設定をする access token、refresh tokenの取得 参考記事 始めに この記事は3記事ある続き物の最初となる。. Access Token. GitHub Explore our sample apps or fork them to build your. Then enter the Refresh Token from the second step. If you're not careful, it will eat a large chunk of. Namespace Google. Support for authorization and authentication with OAuth 2. Even if the access token has expired, the user consent stage can be avoided if a refresh token is available. Google Cloud Platform では、Google と同じインフラストラクチャでアプリケーション、ウェブサイト、サービスを構築、導入、拡大することができます。. The APIs are split into Resources and the Methods that act on those resources. For customers using gray user tokens to all Facebook APIs, Business Manager offers an improved solution to support applications calling Facebook's APIs with a new mechanism called System Users. 0 introduces many advantages compared to OAuth 1. Authenticate with Firebase. ) (no_refresh_token) I authenticated with Google OK but reading the docs you have to login to the Google developer console and get API creds which is fine. The people at Google are very responsive whenever I have an issue and have been instrumental in making us successful. When the OAuth2 three-legged authorization has successfully completed in the background thread, this property contains the access_token. If you want to use the Google Api Client Library, then you just need to have an access token that includes the refresh token in it, and then - even though the access token will expire after an hour - the library will refresh the token for you automatically. Instead I want to ask you some architectural questions. Obtaining OAuth 2. Применение Google Drive API 4. I followed again THIS TUTORIAL to upload a file on Google Drive with php, directly from my REMOTE SERVER: so I have created new API Project from Google API Console, enabled Drive API service, requested OAuth Client ID and Client Secret, wrote them in a script, then upload it together with Google APIs Client Library for PHP folder to this http. The article from Montel Edwards linked above has instructions for this piece. 0 protocol, which is used by Google Drive. discovery import build from google_auth_oauthlib. Since March of this year, Google has supported OAuth 2. Кроме того, нам понадобится библиотека Google Sheets API, Google Docs API. Google has provided a. The All-in-One WP Migration plugin uses Google APIs to communicate with your Google Drive and store your backups. If one is not available, get a new refresh token and store it in the database; Outside of Salesforce, the stored refresh token is used to generate an access token every time an update is needing to be made in Salesforce using the Rest API; That access token is used only for the one call, never used again. Get started with Google Drive and Laravel This gist has moved! This gist was getting a lot of comments/questions, but since there are no notifications when someone replies to a gist, I've moved the setup instructions and a bunch of sample code to a dedicated Github repo. Overall, integrating Balsamiq Mockups with Google Drive was a breeze. Connection Test: Checks connection to Google Drive. Go to the security -> advanced setting-> manage api client access. Enable Sheets API in API Library. https://github. In step 1 on the left, scroll to "Drive API v3", expand it and check the first drive scope. Использование Google Drive API для управления хранилищем отчетов 2. The x_mode command is disabled by default, but when enabled via a command received from the DNS tunneling channel, it allows RogueRobin to receive a unique identifier and to get jobs by using Google Drive API requests. I still get “Have not yet obtained an access token from Google – you need to authorise or re-authorise your connection to Google Drive. Go to your project settings on form. The refresh token can be used to refresh an expired access token without needing the resource owner to be present for authentication once again. et voilà, we have successfully completed an OAuth 2. I am assuming that you have basic knowledge of Google Drive API. - googleapis/google-api-nodejs-client. How to properly refresh your OAuth2 access token in DFP API. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected] 0 token has been granted. Because in that way if one access_token is compromised it's only compromised until the next refresh :) I've now found out that refresh_token's are only issued to those requesting offline scope/permissions. The only thing stopping me from making it is my lack of knowledge of the Google Drive api. This token (X-Ms-Apim-Tokens) is the Base64 Url encoded value (see RFC 4648) of the following json string, and as you can see, the value includes the refresh token and id token of Google account. Typically, you'll include this step just once at the beginning of your SAS job. Check token expiration date vs todays day 2. In step 1 on the left, scroll to "Drive API v3", expand it and check the first drive scope. You can rate examples to help us improve the quality of examples. ¿Qué debo hacer a continuación para generar el token de acceso mediante la actualización de token que tengo guardados a través de google drive API?. Other unusual behaviour: the refresh_token is returned only one time for a user. Enter the Client ID and Client Secret Key from the first step above. You'll then retrieve a new token, refresh token and expiration date 3. Data in production instances of Confluence Google Drive is stored in Postgres databases in Amazon's cloud offering, protected by username/password credentials. The following code shows a refresh token flow:. The proxy runs in Google’s very secure App Engine. Loading data from Google Spreadsheets consists of the following steps: Authorize the Google account that has access to the Google spreadsheet you want to load. createElement ('script');. js - Google OAuth2 API Refresh Tokens I'm using the google-auth-library-nodejs library to integrate into a number of GMail accounts, to get lists of emails. The Access token has an expiration date of 15 minutes and the Refresh token helps you get in when the Access is expired. Click Allow. And want to receive push notifications/webhooks every time something changed in a connected drive account. On the Sign in method tab, enable the Google sign-in method and click Save. Consuming Google Drive API Using OAuth 2. refresh-token. As we have seen in the previous videos, Google Drive API comes with useful built-in objects. A session for Google Drive operations. Access Token(Valid for only one hour) 1. TokenResponse extracted from open source projects. TL;DR: Learn how Node. You can rate examples to help us improve the quality of examples. js - Google OAuth2 API Refresh Tokens I'm using the google-auth-library-nodejs library to integrate into a number of GMail accounts, to get lists of emails. I think I setup my Client ID and Secret. The Google Calendar API is used as an example to demonstrate the access using OAuth 2. Get you drive api by logging in to your Google Account and go to this website: Main menu How to get refresh token for google drive api. Once you know the API you then need to decide what methods you want to use. When it first connects to such a service, it redirects the users to the oAuth authorization page and then it stores the Access token and the Refresh token so that the application can access the Cloud service later. Google Drive Examples for C#. NET web application How to upload selected file from Google Drive to application server. Easily interact with Google Apps APIs such as GMail, Google Calendar, Google Contacts, Google Drive and Google Cloud Print from command lines or using ILE subprocedures on your IBM i!.