All Questions
Tagged with google-oauth php
95
questions
21
votes
3
answers
21k
views
Google Calendar API v3 - authenticate with hardcoded credentials
I am writing a PHP application that's supposed to allow users to add certain events to a private Google Calendar. The calendar is owned by me, and I need a way for PHP to communicate with the calendar ...
16
votes
6
answers
23k
views
Google Calendar API Service Account Error
Im getting this error
{ "error":
{ "errors":
[
{ "domain": "calendar", "reason": "forbiddenForServiceAccounts", "message": "Service accounts cannot invite attendees ...
1
vote
2
answers
4k
views
Google+ login via Javascript and PHP
Can you tell me please, how can I get user data(name, email) via Google+ Javascript/Php api? I go according this tutorial, which describes how to get authResult['code'] via Javascript.
Thats ok I ...
7
votes
8
answers
28k
views
Implementing Oauth2 login, Fatal error: Class 'Google_Service' not found
I am updating my website's login system from LightOpenID to Google's Oauth 2.0.
When I require the Client.php and the Service/Oauth2.php I get an error
Fatal error: Class 'Google_Service' not ...
3
votes
1
answer
4k
views
Google Calendar API v3 - Not Creating Event (Server-to-Server Authentication)
So after digging around for several hours, I'm at a loss for a solution. I'm attempting to create an event on my primary calendar using v3 of Google's Calendar API, but I'm not experiencing the ...
1
vote
2
answers
4k
views
How to Create an anti-request forgery state token In google+ server side sign-up
<?php
require_once '/google-api-php-client/src/Google_Client.php';
require_once '/google-api-php-client/src/contrib/Google_PlusService.php';
session_start();
// Create a state ...
1
vote
2
answers
3k
views
Allow my user to add meeting in my calendar with Google Calendar API with PHP without auth
I am working on a app that allows my users to schedule/reschedule Calendar events using one of my Google calendars, where I don’t need the users to authenticate themselves with Google. What i need to ...
11
votes
1
answer
7k
views
Use OAuth Refresh Token to Obtain New Access Token - Google API
My app is simple, it connects to the Google+ API to authenticate the user, and if successful, it retrieves the user's email and then performs a series of operations on a given database based on the ...
10
votes
1
answer
14k
views
Google OAuth 2.0 refresh token for web application with public access
I'm getting the following error:
The OAuth 2.0 access token has expired, and a refresh token is not available. Refresh tokens are not returned for responses that were auto-approved
I have a web ...
6
votes
1
answer
7k
views
Using a Service Account, getAccessToken() is returning null
I am running the following PHP code, using the client libraries found here: https://code.google.com/p/google-api-php-client/. I do not get any errors for any of this code, but when I call ...
4
votes
2
answers
17k
views
Google Calendar API - PHP
I am currently using the Google Calendar API for a web application. However, every hour, I am prompted with a link to verify quickstart access. Does anyone know how to fix this?
Details:
I have ...
3
votes
1
answer
3k
views
Google OAuth2 Login - Get YouTube nickname and real email address
Is there any way to get the users youtube nickname together with his REAL (*@gmail.com) email address?
Whenever I ask google to authenticate the user with "youtube.readonly" scope, the email address ...
2
votes
1
answer
2k
views
Submitting file to Google drive
I was trying to submit file to Google Drive. Though the file is uploaded to drive, I am getting error after hitting accept button.
<?php
require_once 'google-api-php-client/src/Google_Client.php';
...
18
votes
1
answer
24k
views
Google API PHP offline access, "invalid_grant: Code was already redeemed"
How to authorize a Google Client permanently until the user revokes authorization?
I am trying to make an app that connects to Google Calendar. It has to run in PHP and therefore I am using the ...
16
votes
2
answers
3k
views
Google OAuth for websites in embedded browsers
Google no longer allowing embedded webviews as it is a disallowed_useragent for OAuth sign in. For most situations, this is completely fine and there is a workaround. However, I have run into a ...