smartsheet-api-1.1

Smartsheet Data Tracker: AttributeError: 'dict' object has no attribute 'append'

时光怂恿深爱的人放手 提交于 2019-12-11 12:14:07
问题 I am new to Python and I'm working with Smartsheet Data Tracker to update a sheet from a CSV file. I have problems about the array list management in Python; I don't know about this error, I was reading about this error on StackOverflow but I don't understand it: The error: "File "C:\Users\David\DataTraker\connectors\CSVCon.py", line 61, in __init__ self.csvData.append(readerRow) AttributeError: 'dict' object has no attribute 'append'" And my code: def __init__(self, sourceConfig): self

Setting a batch of parents/sibblings in one call

给你一囗甜甜゛ 提交于 2019-12-08 03:22:30
问题 I'm building an Google Script that automatically writes a Google Spreadsheet to Smartsheet, but with the parents/sibbling already formated, no need for manual indeting, since I already have to do this in the Spreadsheet, trough a numbered column. I managed to write to the Smartsheet, but I can't seem to figure out how to send a batch (600+) of lines with parents/sibblings set, which are in the same urlFetch call. Some questions which should solve my problem: Is it possible to determine

Setting a batch of parents/sibblings in one call

六月ゝ 毕业季﹏ 提交于 2019-12-06 15:49:30
I'm building an Google Script that automatically writes a Google Spreadsheet to Smartsheet, but with the parents/sibbling already formated, no need for manual indeting, since I already have to do this in the Spreadsheet, trough a numbered column. I managed to write to the Smartsheet, but I can't seem to figure out how to send a batch (600+) of lines with parents/sibblings set, which are in the same urlFetch call. Some questions which should solve my problem: Is it possible to determine/specify the "rowId" that I'm about to include? Is it possible to set "parentRowNumber" when providing the row

Update cells in smartsheet

雨燕双飞 提交于 2019-12-05 02:44:49
问题 I am trying to update some cells in an existing SmartSheet sheet with PHP. It's no problem to add new lines but I can't get the correct JSON for updating. My code at this moment: $ch = curl_init("https://api.smartsheet.com/1.1/sheet/1234567890/rows/"); $header = array("Authorization: Bearer xxxxxxxxxxx", "Content-Type: application/json", "Assume-User: xxxx%40xxxx.com"); $name = 'MyName'; $fields = '{"rowNumber":1, "columnId": 1234567890, "value": "'.$name.'", "displayValue": "'.$name.'"}';

Update cells in smartsheet

末鹿安然 提交于 2019-12-03 17:28:29
I am trying to update some cells in an existing SmartSheet sheet with PHP. It's no problem to add new lines but I can't get the correct JSON for updating. My code at this moment: $ch = curl_init("https://api.smartsheet.com/1.1/sheet/1234567890/rows/"); $header = array("Authorization: Bearer xxxxxxxxxxx", "Content-Type: application/json", "Assume-User: xxxx%40xxxx.com"); $name = 'MyName'; $fields = '{"rowNumber":1, "columnId": 1234567890, "value": "'.$name.'", "displayValue": "'.$name.'"}'; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HTTPHEADER, $header); curl