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

Fix #780 and #781 - Google Sheets documentation #786

Merged
merged 2 commits into from
Feb 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/google.rst
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,8 @@ You can then create/modify/retrieve documents using instance methods:
sheets.append_to_sheet(sheet_id, people_with_cell_phones)
parsons_table = sheets.get_worksheet(sheet_id)

You may also want to share the document with your service or user account.

===
API
===
Expand Down
5 changes: 3 additions & 2 deletions parsons/google/google_sheets.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,14 +163,15 @@ def get_spreadsheet_permissions(self, spreadsheet_id):

def create_spreadsheet(self, title, editor_email=None, folder_id=None):
"""
Create a Google spreadsheet from a Parsons table. Optionally shares the new doc with
Creates a new Google spreadsheet. Optionally shares the new doc with
the given email address. Optionally creates the sheet in a specified folder.

`Args:`
title: str
The human-readable title of the new spreadsheet
editor_email: str (optional)
Email address which should be given permissions on this spreadsheet
Email address which should be given permissions on this spreadsheet.
Tip: You may want to share this file with the service account.
folder_id: str (optional)
ID of the Google folder where the spreadsheet should be created.
Tip: Get this from the folder URL.
Expand Down