Skip to content

Instantly share code, notes, and snippets.

@arun7379
arun7379 / google-drive-upload-pdf.php
Created Nov 12, 2015 — forked from hubgit/google-drive-upload-pdf.php
Upload a PDF file to Google Drive
View google-drive-upload-pdf.php
<?php
require 'google-api/apiClient.php';
require 'google-api/contrib/apiOauth2Service.php';
require 'google-api/contrib/apiDriveService.php';
$pdfFile = 'test.pdf';
// API Console: https://code.google.com/apis/console/
// Create an API project ("web applications") and put the client id and client secret in config.ini.
You can’t perform that action at this time.