-
Notifications
You must be signed in to change notification settings - Fork 81
List Sheet in folder #117
Comments
Can you enable logging and post a sanitized log of the JSON response? |
I activated the log in the past
The issue is But the Log has the information. mylog file has the information: |
Hi,
I am trying to list all the sheets that I have in a folder, however I have the following issue:
`C:\Python27\python.exe "C:/Python27/Labs/Cisco Smartsheet/SS_LIST_Sheet.py"
You are Working on folder : Dev Leer Smart-Sheet
Traceback (most recent call last):
File "C:/Python27/Labs/Cisco Smartsheet/SS_LIST_Sheet.py", line 17, in
print response._sheets
File "C:\Python27\lib\site-packages\smartsheet\types.py", line 82, in str
return json.dumps(self._store)
File "C:\Python27\lib\site-packages\openpyxl-2.4.0a1-py2.7.egg\json_init.py", line 244, in dumps
return _default_encoder.encode(obj)
File "C:\Python27\lib\site-packages\openpyxl-2.4.0a1-py2.7.egg\json\encoder.py", line 207, in encode
chunks = self.iterencode(o, _one_shot=True)
File "C:\Python27\lib\site-packages\openpyxl-2.4.0a1-py2.7.egg\json\encoder.py", line 270, in iterencode
return _iterencode(o, 0)
File "C:\Python27\lib\site-packages\openpyxl-2.4.0a1-py2.7.egg\json\encoder.py", line 184, in default
raise TypeError(repr(o) + " is not JSON serializable")
TypeError: <smartsheet.models.sheet.Sheet object at 0x02AEB610> is not JSON serializable
Process finished with exit code 1
`
My code is this:
`# -- coding: utf-8 --
!/usr/bin/python
import pprint
import json
import smartsheet
access_token = 'MyToken'
ss_client = smartsheet.Smartsheet(access_token)
#response = ss_client.Sheets.list_sheets(include_all=True)
response = ss_client.Folders.get_folder(
7197610382518148)
print "You are Working on folder : " + response._name
print response._sheets`
The text was updated successfully, but these errors were encountered: