wonjsohn / google-glass-api

Automatically exported from code.google.com/p/google-glass-api
0 stars 0 forks source link

Google_Client problem developing Glass app #599

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Create one Google_Client object
2.Create other Google_Client object

What is the expected output? What do you see instead?
The expected is to have two different Google_Client objects working. When I 
creates the second one, the fist object get broken.

What version of the product are you using? On what operating system?
Where in the code i can see what version is? 

Please provide any additional information below.

I'm trying to create two Google_MirrorService objects on the same script: one 
to send a timeline card to one user and other so update other user timeline 
card. The problem is that when I create those objects, i have to use two 
different Google_Client objects. When I create the second Google_Client object, 
then the first Google_MirrorService get broken. After trying to discover what's 
happening, I discover that Google_Client uses static vars (static $auth, static 
$io, static $cache and static $useBatch). I think that's the problem because 
second Google_Client object overwrites those static vars on first object.

Original issue reported on code.google.com by javi....@gmail.com on 29 Aug 2014 at 12:19

Attachments:

GoogleCodeExporter commented 8 years ago
Hello,

Thanks for the report! However, your issue seems more related to the PHP client 
library rather than the Mirror API itself.
I would advise checking the client library's issue tracker and eventually 
filing an new issue there:
  https://github.com/google/google-api-php-client/issues

Best,
Alain

Original comment by ala...@google.com on 29 Aug 2014 at 4:48