I am trying to print a calendar to pdf using the API and am stuck on using the "get_sheet_as_pdf". I attached the code below that I used and am getting the titular error, I went into the sheets.py file to see if I was missing something but there doesn't seem to exist a method "save_to_file".
Also, is it possible to ensure the view will be printed in the Calendar View? I'd like to just have that one.
import smartsheet
# smartsheet access token
access_token = 'XXXXXXXXXXX'
smartsheet_client = smartsheet.Smartsheet(access_token)
sheet_id = 'XXXXXXXXXXXXXX'
path = r'C:\path\to\folder'
smartsheet_client.Sheets.get_sheet_as_pdf(
sheet_id,
path,
'A4',
'test_pdf.pdf'
)