Contact Us
Go to ...
Go to ...
Home
Category
Php
Jquery
Sql
WordPress
Laravel
CSS
Ajax
Bootstrap
Magento
Linux
AngularJs
Contact Us
Recent Posts
Upload file in Google Drive using API
Fix specified key was too long issue in laravel
Install Swagger in Laravel 9
Print File From Api in Angular
Download File From Api in Anuglar
Google Drive API tagged posts
Upload file in Google Drive using API
Create Auth URL
$clientId = ""; $clientSecret = ""; $redirectUri = ""; $client = new \Google_Client(); $client->setClientId($clientId); $client->setClientSecret($clientSecret); //$client->setAuthConfig('client_secret.json'); $client->addScope("https://www.googleapis.com/auth/drive.file"); $client->setRedirectUri($redirectUri); // offline access will give you both an access and refresh token so that // your app can refresh the access token without user interaction. $client->setAccessType('offline'); // Using "consent" ensures that your application always receives a refresh token. // If you are not using offline access, you can omit this...
Posted in 
Laravel
,
Php
,
Wordpress
No comments
July 22, 2023
Read More
Tweet