smartsheet-api

Require is not defined nodejs

筅森魡賤 提交于 2021-01-02 08:14:39
问题 Trying to use this smartsheet api: http://smartsheet-platform.github.io/api-docs/?javascript#node.js-sample-code and its telling me to do this for nodejs: var client = require('smartsheet'); var smartsheet = client.createClient({accessToken:'ACCESSTOKEN'}); So i do this in my main.js file but I get the error: Uncaught ReferenceError: require is not defined I think its because im new to nodejs/npm but I cannot find it anywhere where to actually put this require function. I think i need to mess

Require is not defined nodejs

被刻印的时光 ゝ 提交于 2021-01-02 08:13:27
问题 Trying to use this smartsheet api: http://smartsheet-platform.github.io/api-docs/?javascript#node.js-sample-code and its telling me to do this for nodejs: var client = require('smartsheet'); var smartsheet = client.createClient({accessToken:'ACCESSTOKEN'}); So i do this in my main.js file but I get the error: Uncaught ReferenceError: require is not defined I think its because im new to nodejs/npm but I cannot find it anywhere where to actually put this require function. I think i need to mess

Smartsheet pyinstaller Not Allowing Connection to API

南楼画角 提交于 2020-08-26 13:36:45
问题 I'm new to pyinstaller and trying to package a script I wrote that connects to Smartsheet. The code runs fine in PyCharm, but when I go to run the executable that it outputs the client object is just treated as a string and won't let me access any attributes. ImportError! Could not load api or model class Users Traceback (most recent call last): File "filename.py", line XX, in <module> AttributeError: 'str' object has no attribute 'get_current_user' [1480] Failed to execute script filename

Smartsheet pyinstaller Not Allowing Connection to API

此生再无相见时 提交于 2020-08-26 13:32:48
问题 I'm new to pyinstaller and trying to package a script I wrote that connects to Smartsheet. The code runs fine in PyCharm, but when I go to run the executable that it outputs the client object is just treated as a string and won't let me access any attributes. ImportError! Could not load api or model class Users Traceback (most recent call last): File "filename.py", line XX, in <module> AttributeError: 'str' object has no attribute 'get_current_user' [1480] Failed to execute script filename

including smartsheet sdk in a bundled app via pyinstaller

流过昼夜 提交于 2020-04-21 19:47:42
问题 I developed a Python 2.7 app using the smartsheet SDK and it works fine on y machine. Then I bundle it into an app via PyInstaller and I get this error when I run it: DEBUG:smartsheet.smartsheet:try loading api class Home DEBUG:smartsheet.smartsheet:try loading model class Home DEBUG:smartsheet.smartsheet:ImportError! Cound not load api or model class Home Exception in Tkinter callback Traceback (most recent call last): File "lib-tk/Tkinter.py", line 1536, in __call__ File "pacers.py", line

Is there a way to show the sheet has been updated remotely via the API?

帅比萌擦擦* 提交于 2020-02-08 10:24:15
问题 When Smartsheet is updated by another used using the GUI, another user viewing the sheet will get visual notification that the sheet has been updated - requiring a save and/or refresh. Is there a way to trigger this functionality from the API. I'm using the Python SDK 2.0 and Python 3.5 Thanks. Craig 回答1: The sheet version is incremented every time the sheet changes. You can use get_sheet_version(sheet_id) to get a baseline version, then check again to see if it has changed. This is a very

Differentiate dropdown multi select (without options defined) with regular text columns

前提是你 提交于 2019-12-25 01:55:30
问题 Is there any way to differentiate columns that are of type drop down multi select from regular text columns : This is supposed to be a multi select drop down list without any option : "id": 5414087443146628, "version": 2, "index": 2, "title": "Column3", "type": "TEXT_NUMBER", "validation": false, "width": 150 Same question goes for multi contact list without contact options defined. 回答1: If you think of multi-contact or multi-dropdown as new versions of the various GET requests, then its