gdgmad / gdgmadevents

Let's Build together! gdgmadevents is a repository for our database of events and any software that YOU choose to make around it. Check out our readme!
MIT License
7 stars 4 forks source link

Google form Integration #18

Open nikhil-thakkar opened 5 years ago

nikhil-thakkar commented 5 years ago

This relates to #16.

The ask here is to automatically trigger a google form creation as soon as a event is inserted into Firebase DB. Make sure the form url is not exposed before we actually host the meetup for that month.

preetjdp commented 5 years ago

Google App Script seems to be the way to go here.. Created a simle app https://script.google.com/macros/s/AKfycbwVxSW8bPgmAOpg6x00MjN6ha7z_M2spREJu8NAtIcNwQ6SUDc/exec We can build out an api out of this. Also have we dropped that idea of using a Raspberry Pi from #6

nikhil-thakkar commented 5 years ago

Hey @preetjdp, I'm not able to access the link. Can you make one script that generates the form we send out every month? Something like this https://goo.gl/forms/3mJ5SKeRriCpvAel2. Regarding the meetup api integration, we are thinking to move the work to a service worker which can do the background sync. We are still investigating the feasibility for the same. Having a raspberry pi is a last option open.

preetjdp commented 5 years ago

@nikhil-thakkar Created the Script, currently using dummy data, but every time you hit this link a new Form is created (under my account) and the link to the form is displayed on the page. I will create a way to pass the event data. LINK - https://script.googleusercontent.com/macros/echo?user_content_key=LNF52X8zK9apUwFJxFll_vPwfqBJcSwWJTUJDNESM_y-fa2aT9M4kEqS52BSo0zbfh1GufnExSFm9SY0n4LYyPNLQYjt5mXAm5_BxDlH2jW0nuo2oDemN9CCS2h10ox_1xSncGQajx_ryfhECjZEnFRvA2dKE0MqUQ8yBLYVOydr8qSrAjY6pLA64kR-tiNwrTsU6_kVHqMh4XCbKchLy6V-rV9yhQ38&lib=M9JqF_R0Enu9yV3gWqxpqsKP3W5k7qA10

nikhil-thakkar commented 5 years ago

Awesome @preetjdp, Could you please create a folder at root of this repo named scripts and push your code there and raise a PR afterwards?