Skip to content

YIhad/google-drive-sdk-api-php-insert-file-parent-example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

google-drive-sdk-api-php-insert-file-parent-example

Small and very simple well commented example of a server-side PHP application where you can log in and insert files to Google Drive through their API. Also about creating parent folders and instering the file there.

  1. Go to Google Developers Console (https://console.developers.google.com) and create your own project.
  2. Enable Drive API and SDK for your project
  3. Go to APIs & Auth / Consent screen and name your project, also select an email address
  4. Go to APIs & Auth / Credentials and create a new OAuth 2.0 Client ID.
  5. Set your origins to localhost:yourporthere (or your domain)
  6. Set your Redirect URI to localhost:yourporthere/fileUpload.php (or your domain)
  7. Download the information in a JSON (press the button), and place it like {document root}/conf/googleClientId.json
  8. Comment, star and ask questions! And best of all, learn.

About

Small and very simple commented example of a server-side application where you can log in and insert files to Google Drive through their API. Also about creating folders and logging in though google.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%