| Age | Commit message (Collapse) | Author |
|
|
|
So I can put command line argument parsing in `main()`.
|
|
I'll set up my own error handling later.
|
|
|
|
In order to accept the event, we need to build an `Event` value with the
data that should be patched into the original. That value is then passed
in the `patch()` call to update the event.
The email address of the current user is required. I couldn't figure out
how best to get it, so I decided to keep the event `get()` call, and
grab the authenticated user's email address from there. This means it
requires two requests to accept the event, which is not ideal. Not sure
if there's a better way to get that information.
|
|
Doesn't change the response status, but does patch the event. Turns out
I'm not doing it correctly. I need to modify the event struct that gets
passed to `patch()`, not send the attendees as a param.
|
|
|
|
So we don't ask for authorisation on every run.
|
|
|
|
Try out the `calendar3` API to get a single event from Google Calendar.
Mostly copied the example code from the `google-calendar3`
documentation:
https://docs.rs/google-calendar3/2.0.4+20210327/google_calendar3/index.html#a-complete-example
Modified it to get a single event, and to use the OAuth2 secret from
`~/.google-service-cli/calendar3-secret.json`.
|
|
With:
$ cargo init --bin
|