I have copied the code in their documentation on this site: here.
I have changed the JSON on these below. I have generated a fresh files on API on the composer, but I am still having some issues. I'm not sure what have I done wrong. Does this mean their API is way too buggy?
Here is the demo link: demo
define('APPLICATION_NAME', 'Ashima');
define('CREDENTIALS_PATH', '/mycredentials.json');
define('CLIENT_SECRET_PATH', __DIR__ .'/mysecret.apps.googleusercontent.com.json');
Error:
Fatal error: Uncaught exception 'InvalidArgumentException' with message 'file does not exist' in /var/www/mysite/googleapi2/vendor/google/apiclient/src/Google/Client.php:839 Stack trace: #0 /var/www/mysite/googleapi2/quick.php(32): Google_Client->setAuthConfig('/var/www/payrol...') #1 /var/www/mysite/googleapi2/quick.php(80): getClient() #2 {main} thrown in /var/www/mysite/googleapi2/vendor/google/apiclient/src/Google/Client.php on line 839