You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See #49. I'm not planning on supporting Google Sheets anytime soon.
Google made my (work) life a pain when they kept changing their APIs and behaviors without warning. I used to use Ruby to connect to Google Spreadsheets, but they made it way more difficult to do it right without the security hole of turning on link sharing. Technically, the feature you're using is undocumented and unsupported by Google, which means Squib could break at any time if I ship with it. Instead, we can just keep code snippets like this around with the understanding that Google does what Google does.
If you don't like having code like that in your main Squib source code, you can always just declare a Ruby method and put it in another file. I like to have a squib_helpers.rb in my code, like this:
Just looking for some quick and dirty google sheets support.
If you have a doc that has Link Sharing on, you can get a CSV download link from a fairly trivial URL transform:
I'm using the following hack right now to load this data, but it'd be nice if I could just say
data = Squib.google_sheet(url: "...")
The text was updated successfully, but these errors were encountered: