You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to upload spreadsheet via google drive in cakephp.I am using google-api-php-client to generate access token and php-google-spreadsheet-client to access the sheets.Code is as follows:
`
function test() {
require_once '../vendors/google-api-php-client-2.1.1/vendor/autoload.php';
$client = new \Google_Client();
$client->setApplicationName("spreadsheet");
$client->setDeveloperKey("//My developerkey");
$client = new Google_Client();
$client->setAuthConfig('client_id.json');
if( !isset($_GET['code']) ) {
I need to upload spreadsheet via google drive in cakephp.I am using google-api-php-client to generate access token and php-google-spreadsheet-client to access the sheets.Code is as follows:
`
function test() {
require_once '../vendors/google-api-php-client-2.1.1/vendor/autoload.php';
$client = new \Google_Client();
$client->setApplicationName("spreadsheet");
$client->setDeveloperKey("//My developerkey");
$client = new Google_Client();
$client->setAuthConfig('client_id.json');
if( !isset($_GET['code']) ) {
`
But I get the error that access token is invalid as shown in following image:
What is it that I am doing wrong?
The text was updated successfully, but these errors were encountered: