-
Notifications
You must be signed in to change notification settings - Fork 8
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
Import Google Sheet document as a deck #8
Comments
Google Sheets does not have any usable API as far as I know. Google Drive API operates on the file-level, basically excluding any content manipulations. |
I'm going to take a look at it, see if it's possible. I think it would allow easier editing and sharing of decks, but like you said it might not work. |
I’ll probably list options available at this point. In the process of writing them down I decided that maybe it is time to revisit some of them. Anyway. GData Java ClientProvides APIs in the ready-to-use format, but essentially is deprecated in favour of Google APIs Client for Java. Google APIs Client for JavaKind of actively developed, but has two major downfalls.
Google Play ServicesIt is mostly nice and is used for the current backup file-based system. Unfortunately Drive API there operates only on file-level, i. e. I have no access to any structural data in either Docs, Sheets or whatever. ConversionBasically create a MS Office or OpenDocument sheet and upload or download it from Drive with conversion to or from the native Sheet. But this solution is not perfect as well—there are not many thin and not bloated Java libraries which afford sheet file creation and parsing. Plus, there are weird limitations, like both Dumb ConversionTreat each deck contents as a CSV file and all decks as a directory with CSV files. But I really, really hate this solution. One of main goals of Gambit is simplicity. This solution is against any end user good UX at all. Even personally I don’t want to know about any files when I can edit it either online or as a one modern format—like |
looks like you can use a combination of the Drive API (for deleting and creating files) the Sheets API for modifying data and there seems to be a API client to help, I'll have a go and make a pull request if i manage. Links: |
Import Google Sheet document as a deck.
First column is the question and second column is the answer with the rows representing one card per row
The text was updated successfully, but these errors were encountered: