Cloud Storage Access through API - ASP.NET MVC 5 - C# (Part-1)
How to Enable Google Drive API v3 for your application?
2) Google Drive API - File Upload, View, Download & Delete
3) Google Drive API - Create folder, Upload file to folder, Show folder Contain.
4) Google Drive API - Move & Copy files between folders.
5) Google Drive API - Manage Share & Set User Role Permissions.
6) Google Drive API - View Share Users Permission Details.
1) What is Google REST API ?
How to Enable Google Drive API v3 for your application?
3) Google Drive API - Create folder, Upload file to folder, Show folder Contain.
4) Google Drive API - Move & Copy files between folders.
5) Google Drive API - Manage Share & Set User Role Permissions.
6) Google Drive API - View Share Users Permission Details.
1) What is Google REST API ?
Google REST APIs is a set of Application Programming Interfaces (APIs) developed by Google. Which allow communication with Google services and their integration with other services. Example of these includes Search, Gmail, Google Drive & much more.
1) What is REST API ?
Here REST stands for Representational State Transfer. This type of API relies on stateless, client-server, cacheable communication protocols. & Rest APIs commonly use HTTP protocols.
2) Introduction to Google Drive API Version 3
Google Drive API is one of the popular API. Users can integrate google drive with their apps through APIs. There are many apps available for collaborative document creating, editing(Google Docs, Sheets) & storage there personal or official documents.
So, Google Drive API enables you to store and access user data in from apps on any platform.
Generic Cloud API Diagram :
3) Difference between Google Drive API v2 vs v3.
Right Now, Google Drive API version 3 is the latest version. The difference between Drive API v3 with Drive API v2 is removed all of the duplicate functionality and mainly change the fields name.
4) Enable Google Drive API v3 for your Application.
Please follow these below steps.
Step 1: Login to your Google account.
Step 2: You need to register your application from Google API Console.
Go to this URL : https://console.developers.google.com/start/api?id=drive
Click on "Agree and continue" button.
Now API is enabled & you need to add credentials for Google API.
APIs & services credentials page appears. Now click on "Cancel" button.
Click on "OAuth consent screen" option on the menu. Now Your logged email address will appear & you need to type your product name in "Product name shown to users" text box. Here "DemoProject" is my product name. Now click on save button.
Click on "Credentials" option on menu & click on "Create Credentials" Dropdown.
Please select "OAuth client ID".
Select "other" application type. Type "Google API" in name text box & click on create button.
Now a popup window is appear and show your OAuth client ID & client secret id. click on "OK" button.
Google automatically save this OAuth 2.0 Client ID & Client secret id in a .json (JavaScript Object Notation) format file. Please download this .json file (client_secret.json).
Step 3: Keep this .json file into your virtual directory or project solution folder.
Now Right click -> Go to properties of the file -> Select "Copy always" in Copy to Output Directory option.
The contains of this files are clients information.
These are a) client id,
b) client secret id,
c) project_id
d) auth_uri,
e) token_uri
f) redirect_uris
These informations are extremely useful for every time your application communication with Google Drive APIs.
1) What is REST API ?
Here REST stands for Representational State Transfer. This type of API relies on stateless, client-server, cacheable communication protocols. & Rest APIs commonly use HTTP protocols.
2) Introduction to Google Drive API Version 3
Google Drive API is one of the popular API. Users can integrate google drive with their apps through APIs. There are many apps available for collaborative document creating, editing(Google Docs, Sheets) & storage there personal or official documents.
So, Google Drive API enables you to store and access user data in from apps on any platform.
Generic Cloud API Diagram :
3) Difference between Google Drive API v2 vs v3.
Right Now, Google Drive API version 3 is the latest version. The difference between Drive API v3 with Drive API v2 is removed all of the duplicate functionality and mainly change the fields name.
4) Enable Google Drive API v3 for your Application.
Please follow these below steps.
Step 1: Login to your Google account.
Step 2: You need to register your application from Google API Console.
Go to this URL : https://console.developers.google.com/start/api?id=drive
Click on "Agree and continue" button.
APIs & services credentials page appears. Now click on "Cancel" button.
Click on "OAuth consent screen" option on the menu. Now Your logged email address will appear & you need to type your product name in "Product name shown to users" text box. Here "DemoProject" is my product name. Now click on save button.
Click on "Credentials" option on menu & click on "Create Credentials" Dropdown.
Please select "OAuth client ID".
Select "other" application type. Type "Google API" in name text box & click on create button.
Now a popup window is appear and show your OAuth client ID & client secret id. click on "OK" button.
Google automatically save this OAuth 2.0 Client ID & Client secret id in a .json (JavaScript Object Notation) format file. Please download this .json file (client_secret.json).
Step 3: Keep this .json file into your virtual directory or project solution folder.
Now Right click -> Go to properties of the file -> Select "Copy always" in Copy to Output Directory option.
The contains of this files are clients information.
These are a) client id,
b) client secret id,
c) project_id
d) auth_uri,
e) token_uri
f) redirect_uris
These informations are extremely useful for every time your application communication with Google Drive APIs.
Thank you for reading this blogs.
Please subscribe my YouTube Channel & don't forget to like and share.
Please subscribe my YouTube Channel & don't forget to like and share.
YouTube : | https://goo.gl/rt4tHH |
Facebook : | https://goo.gl/hgpQsh |
Twitter : | https://goo.gl/nUwGnf |
Not informative
ReplyDeletehow to online publish this protect
ReplyDelete