Skip to content

Commit

Permalink
Fix #780 and #781 - Google Sheets documentation (#786)
Browse files Browse the repository at this point in the history
* Update docstring for Google Sheets

* Update documentation for Google Sheets
  • Loading branch information
ethyoo authored Feb 21, 2023
1 parent 4b6190c commit 6398b79
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
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

0 comments on commit 6398b79

Please sign in to comment.