... change these if you need a different scope or if the APIs get upgraded.
$api['gapis']['oauth']['grant_type'] = 'urn:ietf:params:oauth:grant-type:jwt-bearer';
$api['gapis']['oauth']['token'] = 'https://www.googleapis.com/oauth2/v4/token';
$api['gapis']['drive']['scope' ...
... of the file you just uploaded
$GAPIS = 'https://www.googleapis.com/';
function uploadFile($access_token, $file, $mime_type, $name) {
global $GAPIS;
$ch1 = curl_init();
// don' ...
We use cookies to improve your experience on our website. By browsing this website, you agree to our use of cookies. Read more about our Privacy Policy.