skishore119 / google-api-php-client

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

Catchable fatal error: Argument 2 passed to Google_MembersServiceResource::insert() must be an instance of Google_Member #395

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I am trying to add a user to an email group using the Directory API..  I have 
the groups and user scopes, and can login fine.

I have two variables filled correctly..  
1) the group ID, and 2) the User ID.

It is asking for the second parameter to be a Google_Member instance.

This is what I am doing: 

$directory->members->insert( $groupID, $userID );

Which displays the error:

Catchable fatal error: Argument 2 passed to 
Google_MembersServiceResource::insert() must be an instance of Google_Member

What am I doing wrong?

Original issue reported on code.google.com by yyefet...@gmail.com on 11 Sep 2013 at 11:33

GoogleCodeExporter commented 8 years ago
This issue tracker is now closing. Development on the Google PHP client library 
moved to GitHub with the release of the 1.0.0-alpha, and now the 1.0 branch has 
reached beta status there will be no further releases of the 0.6 branch of the 
library. 

Please take a look at the latest version on 
https://github.com/google/google-api-php-client

For information on migrating, please take a look at this guide: 
https://developers.google.com/api-client-library/php/guide/migration

For general library support please ask a question on StackOverflow: 
http://stackoverflow.com/questions/tagged/google-api-php-client

If you are looking for support with a specific API, please contact the team 
working with that API via StackOverflow or their preferred support mechanism. 

If your issue still exists with the new version of the library, please raise a 
bug in the GitHub issue tracker with a minimal code sample. 

Thanks!

Original comment by ianbar...@google.com on 22 Jan 2014 at 4:53