Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resource Object Functions Need Modification #6

Open
samterfa opened this issue Oct 29, 2017 · 1 comment
Open

Resource Object Functions Need Modification #6

samterfa opened this issue Oct 29, 2017 · 1 comment

Comments

@samterfa
Copy link

As always, thanks SO much for creating this API and its progeny!

I've found when using Member() for googleadmindirectoryv1.auto and Event() for googlecalendarv3.auto that I've had to modify the functions to get them to not throw errors when creating members using the Google AdminDirectory API and events using the Google Calendar API. One modification has been removing the "kind = admin#directory#member" and "kind = calendar#event" from each otherwise I receive the error "object 'admin#directory#member' not found" and "object 'admin#directory#event' not found". Perhaps double quotes could fix this but removing the parameter has worked fine too.

Also, the Event() function has several parameters defaulting to false and true (without quotes) which I've replaced with FALSE and TRUE because of similar "object not found" errors.

Finally, the Event() transparency parameter defaults to opaque which I replace with "opaque".

I've found easy workarounds so no big deal. Thanks!

@MarkEdmondson1234
Copy link
Owner

Thats great feedback thanks :) Yes some auto-generated functions fail since they are aimed at Java instead but hopefully still worth doing, I find the documentation of the arguments the biggest time saver. I will see if I can incorporate the above though in the next version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants