googleapis / elixir-google-api

Elixir client libraries for accessing Google APIs.

Home Page:https://hex.pm/users/google-cloud

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Google Calendar events `calendar_events_watch` method doesn't match documentation

lollar opened this issue · comments

Thanks for stopping by to let us know something could be better!

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.

Is this a client library issue or a product issue? We will only be able to assist with issues that pertain to the behaviors of this library. If the issue you're experiencing is due to the behavior of the product itself, please visit the Support page to reach the most relevant engineers.

If the support paths suggested above still do not result in a resolution, please provide the following details.

Environment details

  • Programming language: Elixir
  • OS: MacOS Big Sur 11.5.2
  • Language runtime version: elixir 1.12.1-otp-24 & erlang 24.0.2
  • Package version: :google_api_calendar, "0.21.5"

Steps to reproduce

  1. token = "your-token-here"
  2. connection = GoogleApi.Calendar.V3.Connection.new(token)
  3. {:ok, events} = GoogleApi.Calendar.V3.Api.Events.calendar_events_list(connection, "primary") # Verify token is working
  4. GoogleApi.Calendar.V3.Api.Events.calendar_events_watch(connection, "primary") # Results in an error, follows hexdocs
  5. GoogleApi.Calendar.V3.Api.Events.calendar_events_watch(connection, "primary", [id: "unique-uuid-for-this", type: "webhook", address: "https://tiempozone.herokuapp.com/webhook/address"]) # Results in an error, follows Google Documentation

Making sure to follow these steps will guarantee the quickest resolution possible.

Thanks!

Any updates on this?

I am hitting this as well. Any fix?

@jsmestad not that I've seen, I just wrote an HTTP request without the wrapper.