Upgrade Google API v1 Method to Google API v3 Method
$10-30 USD
Fermé
Publié il y a plus de 9 ans
$10-30 USD
Payé lors de la livraison
On November 17, 2014 Google deprecated the v1 and v2 methods of their API service.
I am trying to get the v3 method to work.
**Here's what I have done so far:**
1. crated a project in Google Developer Console
2. turned on API access to Google Calendar in Google Developer Console
3. created an OAuth 2.0 Client ID and Secret in Google Developer Console per online help that I found
4. created a Publis Access Key in Google Developer Console
5. used GitHub to install "Google APIs Client Library for PHP"
6. added the install path to my [login to view URL] file include_path()
7. restarted apache
8. revised my PHP script to try to move from my v1 method to v3 method
I am getting these errors:
Please visit: [login to view URL] Please enter the auth code:
Notice: Use of undefined constant STDIN - assumed 'STDIN' in /home/abc123/public_html/app/mods/googleCalendar_3.0/[login to view URL] on line 137
Warning: fgets() expects parameter 1 to be resource, string given in /home/abc123/public_html/app/mods/googleCalendar_3.0/[login to view URL] on line 137
Fatal error: Uncaught exception 'Google_Auth_Exception' with message 'Invalid code' in /usr/local/lib/php/google-api-php-client/src/Google/Auth/[login to view URL] Stack trace: #0 /usr/local/lib/php/google-api-php-client/src/Google/[login to view URL](120): Google_Auth_OAuth2->authenticate('') #1 /home/abc123/public_html/app/mods/googleCalendar_3.0/[login to view URL](140): Google_Client->authenticate('') #2 /home/abc123/public_html/app/mods/googleCalendar_3.0/[login to view URL](26): buildEventList(Array, 'America/Los_Ang...') #3 {main} thrown in /usr/local/lib/php/google-api-php-client/src/Google/Auth/[login to view URL] on line 88
Please provide an budget estimate and a timeframe to solve this.