Suitescript Function to fetch web-view links of files from a Shared Drive on the Google Drive storage using the file name

Suitescript function for fetching the web-view link of a file in a Shared Drive inside Google Drive using the file name. Please note that this only works when filenames are unique. /**         * Function to get Google Drive link for a file         * @param {string} accessToken Access token… Continue reading Suitescript Function to fetch web-view links of files from a Shared Drive on the Google Drive storage using the file name

Google Drive API request to generate access token

Use the following request to generate a new access token for the Google Drive API: Request type: POST URI: ‘https://accounts.google.com/o/oauth2/token’ In the body section, choose ‘x-www-form-urlencoded’ “Request Body”:  {     client_id: {Your client ID here},     client_secret: {Your client secret value here},     refersh_token: {refersh token},     grant_type: refresh_token,  }

Google Drive API request to generate refresh token

Refresh tokens can be used to generate access tokens for API requests. Use the following steps: Step1: Generate access code You can create an access code through the Google OAuth 2.0 Playgrounds website. If you are doing this through browser URL with redirect link as ‘localhost’, you will get:  http://localhost/?state=state_parameter_passthrough_value&code={actual_code_here}&scope=https://www.googleapis.com/auth/drive.file Step2: Send API request via… Continue reading Google Drive API request to generate refresh token

Google Drive API request to create a new folder

Use the following request to create a new foder on the Google Drive: Request type: POST URI: ‘https://www.googleapis.com/drive/v3/files’ Headers: “Authorization”: `Bearer ${accessToken}` Use the access token generated using the access credentials “Content-Type”: “application/json” “Request Body”:  “{ “name”: “folderName”,     “mimeType”: “application/vnd.google-apps.folder”,     “parents”: [“{parentFolderID}”],  }” To get the folder ID of any folder in Google Drive easily, open… Continue reading Google Drive API request to create a new folder

How to generate Google Drive API credentials

You need an active Google account with Google Drive service as a prerequisite for generating Google Drive API credentials. First, register your Google account on the Google Cloud Platform. Navigate to ‘Google Cloud Paltform’ You might need to provide your Credit card details to complete the registration. Now, create a new Project from the menu.… Continue reading How to generate Google Drive API credentials

Building a Django Application with Google Routing and Geocoding API

In the realm of web development, incorporating mapping functionalities into applications has become increasingly popular. Google Maps APIs provide a powerful toolkit for developers to integrate mapping, geocoding, and routing capabilities seamlessly into their web applications. In this article, we will explore how to leverage Django, a high-level Python web framework, along with Google Routing… Continue reading Building a Django Application with Google Routing and Geocoding API

Google Cloud Storage API Reference

Solution Cloud Storage API reference: Cloud Storage JSON API overview  |  Google Cloud Create Bucket to insert an object (file) : Buckets: insert  |  Cloud Storage  |  Google Cloud Buckets can also be created through cloud console UI: Create buckets  |  Cloud Storage  |  Google Cloud The files can be transferred through objects : Objects:… Continue reading Google Cloud Storage API Reference