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

add google calendar export back #8

Open
cjquines opened this issue Dec 5, 2022 · 13 comments
Open

add google calendar export back #8

cjquines opened this issue Dec 5, 2022 · 13 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@cjquines
Copy link
Member

cjquines commented Dec 5, 2022

this is tricky. we can't do google calendar export directly on scripts, because we can't sign up for the google api on the mit domain. i'm not sure what the best solution to this is.

one thought i had was that someone can set up an external service, on their own domain, that takes calendar info from an html querystring, generates the google calendar, then exports it. that way the export to google calendar button can link to that external service. that's a bigger project, but it doesn't need google access on the mit domain.

@dolphingarlic
Copy link
Contributor

What if the website instead generates some .ics file and the user has to add it themselves

@cjquines
Copy link
Member Author

cjquines commented Jan 5, 2023

u know how bad people are at following instructions

@gabrc52
Copy link
Contributor

gabrc52 commented Jan 17, 2023

https://webapps.stackexchange.com/a/47153
You can email them an ICS file to their Gmail, perhaps

I remember there existing a URL that you could use to import ical things.

Maaybe it's this one:
https://calendar.google.com/calendar/render?cid= [ics url]

I keep trying to find it, maybe it's somewhere in that stackexchange

@cjquines
Copy link
Member Author

cjquines commented Jan 23, 2023

not sure if the ics url is going to work, because it's subscribing to a webcal, which means that it'll get polled ever so often? i'm not sure what'll happen if you try to generate a temporary link and then pull it down later, but we can test that. it also seems to have a length limit if we wanted to try encoding in the url or anything fancy like that.

emailing sounds like it's a lot better, actually. @gabrc52 , you've set up emailing through scripts before, right? how is it done

@SuperC03 SuperC03 self-assigned this Jan 23, 2023
@cjquines
Copy link
Member Author

it also looks like we can add individual events by generating a url, but not whole calendars: https://github.com/InteractionDesignFoundation/add-event-to-calendar-docs/blob/main/services/google.md

@AnhadSawhney
Copy link

Can you add a way to export the ics? While gcal export is broken it would be nice to at least have some way of getting it in my gcal for the spring semester.

@Li357
Copy link
Contributor

Li357 commented Feb 4, 2023

one thought i had was that someone can set up an external service, on their own domain, that takes calendar info from an html querystring, generates the google calendar, then exports it

i'm down to work on this. maybe sending over a compact representation of gapi events objects? one concern is general url limit

@gabrc52
Copy link
Contributor

gabrc52 commented Feb 4, 2023

You can do a POST request instead of a GET request so there's no maximum length to worry about

@Li357
Copy link
Contributor

Li357 commented Feb 4, 2023

but iirc this external service has to present a pop up to the user to login to their google account, so they have to be navigated to this external page, i.e. clicking a link with querystring. if you do a post request to the external service, it can't present the popup for user action

@AnhadSawhney
Copy link

Given that the spring semester is in two days 😳 is it possible to quickly enable ics export for now while gcal support gets developed later? I would really like to not have to add my classes manually 👉👈

@Li357
Copy link
Contributor

Li357 commented Feb 5, 2023

I think #22 should be good to go soon

cjquines pushed a commit that referenced this issue Feb 5, 2023
Temporary fix for #8 

(My code is horrible, I know)
@cjquines
Copy link
Member Author

cjquines commented Feb 6, 2023

closed by #22

@cjquines cjquines closed this as completed Feb 6, 2023
@cjquines cjquines reopened this Feb 6, 2023
@cjquines
Copy link
Member Author

cjquines commented Feb 6, 2023

wait i lied

@cjquines cjquines added enhancement New feature or request help wanted Extra attention is needed labels Sep 12, 2023
@SuperC03 SuperC03 removed their assignment Oct 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

6 participants