how to use Google Drive ‘Save to Drive’ button on your website

Google Drive allows us to save and organize the files (videos, photos, documents etc) in the Google’s cloud and access them anywhere on any device. If you go to drive.google.com you will see list of your files in Google drive. To know more about what Google Drive is, I will recommend watch these introductory videos as I am going to  focus more on its implementation and integration in your apps i.e We will be diving in Google Drive APIs.

Have a look at Introduction to Google Drive API.

Lets start with ‘Save to Drive’ button. It is same like you have seen +1 button on sites. If you are running a photos blog and wants your users to save the photos in their Google Drive. You can create a ‘Save to Drive’ button under each photo and share your photos with them. Following is the code to use on your website.


 

You will see a ‘Save’ button with Drive icon below and this button is generated by using above code. Click on it and see how it behaves 😉

 

If you have some different use of ‘Save to Drive’ button in your mind, please share with us in comments below. We love to hear your thoughts.

Thanks!!

Posted on
Deprecated: Creation of dynamic property WP_Term::$cat_ID is deprecated in /home/testadnan/adnan.pk/innovator/wp-includes/category.php on line 378

Deprecated: Creation of dynamic property WP_Term::$category_count is deprecated in /home/testadnan/adnan.pk/innovator/wp-includes/category.php on line 379

Deprecated: Creation of dynamic property WP_Term::$category_description is deprecated in /home/testadnan/adnan.pk/innovator/wp-includes/category.php on line 380

Deprecated: Creation of dynamic property WP_Term::$cat_name is deprecated in /home/testadnan/adnan.pk/innovator/wp-includes/category.php on line 381

Deprecated: Creation of dynamic property WP_Term::$category_nicename is deprecated in /home/testadnan/adnan.pk/innovator/wp-includes/category.php on line 382

Deprecated: Creation of dynamic property WP_Term::$category_parent is deprecated in /home/testadnan/adnan.pk/innovator/wp-includes/category.php on line 383
Categories Uncategorized

Deprecated: Creation of dynamic property WP_Query::$comments_by_type is deprecated in /home/testadnan/adnan.pk/innovator/wp-includes/comment-template.php on line 1528

5 thoughts on “how to use Google Drive ‘Save to Drive’ button on your website”

  1. Dear Adnan Bi Thanks about this post i’ll try this code in my CMS but one thing how i fetch all record of images in Google Drive?
    Thanks.

Leave a Reply

Your email address will not be published.