Giter VIP home page Giter VIP logo

gplus-quickstart-php's Introduction

gplus-quickstart-php's People

Contributors

cam8001 avatar cartland avatar dotku avatar efrag avatar fabpot avatar gguuss avatar ianbarber avatar pborreli avatar rowan-m avatar scarygami avatar silvolu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gplus-quickstart-php's Issues

User login information

Hi,
I've implement this code into my localhost.
But I can't get the user login information. I've to write this data into my SESSION variable for login.
Please help me to get user information like name,email, contact no etc in PHP.

Thanks in advance.

JavaScript don't retrieve your profile

When I sign up with my Google + account in the page signin.php nothing happens. Theoretically the application uses the JavaScript client to retrieve your profile and uses the PHP client library to retrieve the people visible to the app. but this is not happening.

multiple functions throws error

Hello,

I am using this library to make requests to various parts of different libraries, so far i am using the Google Plus and the Youtube Data API.

Running each example by itself works great, but when i want to execute both function in a batch i get

Fatal error: Cannot redeclare class Google_ActivitiesServiceResource in C:\XAMPP\htdocs\blog\wp-content\themes\blog\includes\google\contrib\Google_PlusService.php on line 88

my code is:

class socialSearch {

  private $google_key;
  private $client;

  public function __construct()
  {
    $this->result = array();
    $this->google_key = "******";
    $this->client = new Google_Client();
    $this->client->setDeveloperKey($this->google_key);
  }

function youtube_semantic_search($keyword) {
  require_once ('google/contrib/Google_YoutubeService.php');

  $youtube = new Google_YoutubeService($this->client);
  $searchResponse_semantic = $youtube->search->listSearch('id,snippet', array(
    'topicId' => $this->getFreebaseConcept($keyword),
    'order' => 'viewCount',
    'maxResults' => 5
    ));
    if (isset($searchResponse_semantic)) {     
    foreach ($searchResponse_semantic["items"] as $video) {
      $this->result["youtube"][] =  $video;
    }
  }
}

function google_plus($keyword) {
  require_once ('google/contrib/Google_PlusService.php');

  $plus = new Google_PlusService($this->client);
  $searchResponse = $plus->activities->search($keyword);  
  $this->result["google_plus"][] =  $searchResponse;
}

so each function by itself works fine, but apparently when chained something happened .. i have even tried to pass a new client for each function but i got the same error as well ..

thanks in advance

Pure PHP example

Its kinda useless using Twig and Silex. Why isn't there a pure PHP example?

Sample app does not work on php 5.3.25

Hi,

I used the code from the sample app on a server with PHP 5.4 and that worked just fine. Turns out the code just won't work on the production server which has PHP 5.3.25. The sample app does not run on it. The page does not load (http://beta.magicmarks.in/google/signin.php) Chrome console shows an error 'Failed to load resource: net::ERR_EMPTY_RESPONSE'.

My gut feeling is that it's just that the library requires PHP 5.4 or higher. But then I tried it on two other servers with 5.3.20 and 5.3.3 and they worked fine. The requirements stated here are 5.3 or higher so i guess 5.3.25 should be supported. I'm quite clueless what's wrong. I've tried enabling the curl extension as well.

Upgrading the PHP in production is a long process so that's my last resort if nothing else works.

Any advice would be much appreciated!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.