Hello. Help please with php script. It is necessary to obtain data from the form on the site and record it in a free row in the Excel spreadsheet on Google Drive.

  • 3
    Give the code that does not work for you - ArchDemon
  • 1. Installed through the composer "google-api-php-client" and "php-google-spreadsheet-client". Connected require 'vendor / autoload.php'; In console.developers.google.com created a “service account” for your google account. I took a function from the Wiki to get a token: goo.gl/8BHDpD Then I use the token with the following calls: $ serviceRequest = new DefaultServiceRequest ($ accessToken); ServiceRequestFactory :: setInstance ($ serviceRequest); (I do everything according to the instructions with GitHab regarding these libraries). In response from "php-google-spreadsheet-client" I get "Invalid token" :( - AlexNikitin

0