Note that there are some explanatory texts on larger screens.

plurals
  1. POGranting Access For Blogger in OAUTH 2
    primarykey
    data
    text
    <p>I am new to Google Oauth 2.I saw google documentation and got the below php library</p> <pre><code>&lt;?php require_once 'google-api-php-client/src/Google_Client.php'; require_once 'google-api-php-client/src/contrib/Google_PlusService.php'; session_start(); $client = new Google_Client(); $client-&gt;setApplicationName('Google+ PHP Starter Application'); $client-&gt;setClientId('...'); $client-&gt;setClientSecret('....'); $client-&gt;setRedirectUri('http://photoapp.biz/0/blogger/test.php'); $client-&gt;setDeveloperKey('....'); $plus = new Google_PlusService($client); if (isset($_GET['code'])) { $client-&gt;authenticate(); $_SESSION['token'] = $client-&gt;getAccessToken(); $redirect = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']; header('Location: ' . filter_var($redirect, FILTER_SANITIZE_URL)); } if (isset($_SESSION['token'])) { $client-&gt;setAccessToken($_SESSION['token']); } if ($client-&gt;getAccessToken()) { $activities = $plus-&gt;activities-&gt;listActivities('me', 'public'); print 'Your Activities: &lt;pre&gt;' . print_r($activities, true) . '&lt;/pre&gt;'; $_SESSION['token'] = $client-&gt;getAccessToken(); } else { $authUrl = $client-&gt;createAuthUrl(); print "&lt;a href='$authUrl'&gt;Connect Me!&lt;/a&gt;"; } ?&gt; </code></pre> <p>From above code My authentication works fine and i am able to get the Token.But This code allows access for Google Plus .I need To authenticat Blogger with Oauth.Google documentation did not help me.Can some one please guide me .Thanks.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload