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

watch_event is so diff from official docu #2816

Open
gamesover opened this issue Feb 28, 2021 · 3 comments
Open

watch_event is so diff from official docu #2816

gamesover opened this issue Feb 28, 2021 · 3 comments
Labels
type: question Request for information or clarification. Not an issue.

Comments

@gamesover
Copy link

PLEASE READ: If you have a support contract with Google, please create an issue in the support console instead of filing on GitHub. This will ensure a timely response.

def watch_event(calendar_id, channel_object = nil, always_include_email: nil, i_cal_uid: nil, max_attendees: nil, max_results: nil, order_by: nil, page_token: nil, private_extended_property: nil, q: nil, shared_extended_property: nil, show_deleted: nil, show_hidden_invitations: nil, single_events: nil, sync_token: nil, time_max: nil, time_min: nil, time_zone: nil, updated_min: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)

defined the method def watch_event(calendar_id, channel_object = nil, always_include_email: nil, which takes a so long arguments
However, in official docu https://developers.google.com/calendar/v3/reference/events/watch, it only takes 6 arguments

I noticed in git history, this method has not been updated for 6 years. Is it still valid?

@dazuma
Copy link
Member

dazuma commented Feb 28, 2021

That's interesting. Yes, this should still be valid. The API legitimately has not changed in a long time. The official API definition (https://calendar-json.googleapis.com/$discovery/rest?version=v3) lists the same arguments that the library has. I do not know why the documentation lists a different set.

Have you actually tried the method in the library? Does it not work?

@dazuma dazuma added the type: question Request for information or clarification. Not an issue. label Feb 28, 2021
@gamesover
Copy link
Author

not yet test, but will do.

The issue is arguments in https://developers.google.com/calendar/v3/reference/events/watch

{
  "id": string,
  "token": string,
  "type": string,
  "address": string,
  "params": {
    "ttl": string
  }
}

are completely diff from code in

def watch_event(calendar_id, channel_object = nil, always_include_email: nil, i_cal_uid: nil, max_attendees: nil, max_results: nil, order_by: nil, page_token: nil, private_extended_property: nil, q: nil, shared_extended_property: nil, show_deleted: nil, show_hidden_invitations: nil, single_events: nil, sync_token: nil, time_max: nil, time_min: nil, time_zone: nil, updated_min: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)

I cannot see any argument is overlapped

@bajajneha27
Copy link
Contributor

Hi @gamesover
Thanks for reporting this and thank you for your patience. I'm checking internally on what could be the reason behind this. I'll get back as soon as I have some response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: question Request for information or clarification. Not an issue.
Projects
None yet
Development

No branches or pull requests

3 participants