smartsheet-api

How to create a project sheet via the python SDK

我只是一个虾纸丫 提交于 2019-12-24 21:22:38
问题 I'm trying to create new project sheets in a folder, however I can't find a way to ensure the sheet is a project sheet. Here is my code so far: def create_resource_sheet(name): """ Create a new resource sheet. :param name: :return: """ folder_id = get_resource_folder_id() # TODO: Find and delete existing sheet with this name resource_sheet = SS.models.Sheet({ 'name': name, # 'gantt_enabled': True, # This was added as an attempt to force it to a project sheet, but error 1032 'columns': [{

Smartsheet - add row with multiple values in cell using c# sdk

怎甘沉沦 提交于 2019-12-24 12:17:54
问题 One of columns has 'Contact List' type with checked 'Allow multiple contacts per cell' see example. I tried to add row using smartsheet-csharp-sdk(v2.3). Cell object: new Cell { ColumnId = 111111, Value = "Test@test.com", Strict = false } and I got the next error: { "errorCode": 1235, "message": "Value is not supported for this column type. Use objectValue instead.", "refId": "163zew9slvgfq", "detail": { "index": 0 } Then I tried to find how to pass ObjectValue and found only how pass

Updating cell format using Smartsheet API (Python SDK)

点点圈 提交于 2019-12-24 09:28:43
问题 I'm trying to write both values and display formatting to a smartsheet. I access the sheet with: import os import re import logging import smartsheet file_pssw = open('path2accesstoken/smsht.txt','r') aux = file_pssw.readlines() access_token = re.findall(r"'(.*?)'", aux[0].strip())[0] #ID of your sheet to update sheet_id = XXXXXXXXXXXXXXXX # Initialize client ss = smartsheet.Smartsheet(access_token) # Load entire sheet sheet = ss.Sheets.get_sheet(sheet_id, include=['format'],page_size=206) I

How to find a row ID or column ID in smartsheet?

寵の児 提交于 2019-12-22 12:41:07
问题 I've been working with and reading the smartsheet API for a few hours now and I notice that in all the requests I have to make, I will need either a row ID or a column ID. I must be missing something easy here, but where do I find these IDs? Are they found through a query or somewhere on the actual view-able sheet? Currently I am trying create a json object to send to me sheet and this is the code I have: MySS = smartsheet.Smartsheet('*****************') headers = {"Authorization": "Bearer **

How to find a row ID or column ID in smartsheet?

荒凉一梦 提交于 2019-12-22 12:40:37
问题 I've been working with and reading the smartsheet API for a few hours now and I notice that in all the requests I have to make, I will need either a row ID or a column ID. I must be missing something easy here, but where do I find these IDs? Are they found through a query or somewhere on the actual view-able sheet? Currently I am trying create a json object to send to me sheet and this is the code I have: MySS = smartsheet.Smartsheet('*****************') headers = {"Authorization": "Bearer **

Error: adding rows with smartsheet API

丶灬走出姿态 提交于 2019-12-22 10:55:26
问题 I can't seem to get a add row(s) to work. I get the following error, but I believe the data is formatted correctly. Thanks in advance! {"errorCode":1008,"message":"Unable to parse request. The following error occurred: Request body must be either a JSON object or JSON array."} POST https://api.smartsheet.com/1.1/sheet/{sheetId}/rows ContentType=application/json [ { "toBottom" : true, "cells" : [ {"columnId" : "328984295696260", "value" : 888.0}, {"columnId" : 4832583923066756, "value" : 100.0

Error while trying to use an API. java.lang.NoSuchFieldError: INSTANCE

◇◆丶佛笑我妖孽 提交于 2019-12-17 20:06:39
问题 I am trying to connect to the smartsheet api using a java program. Initially I had problems with the site certificate which was resolved by adding it to the java keystore. Now when I am trying to run my code, I get the following error. Exception in thread "main" java.lang.NoSuchFieldError: INSTANCE at org.apache.http.conn.ssl.SSLConnectionSocketFactory.<clinit>(SSLConnectionSocketFactory.java:144) at org.apache.http.impl.client.HttpClientBuilder.build(HttpClientBuilder.java:955) at org.apache

ClassNotFoundException during smartsheet login

江枫思渺然 提交于 2019-12-14 04:04:45
问题 I'm trying to login to smartsheet using their api but I'm encountering a NoClassDefFoundError caused by a ClassNotFound Exception. import java.util.ArrayList; import java.util.Properties; import java.util.Set; import java.util.HashSet; import java.util.List; import java.io.InputStream; import java.io.FileInputStream; import com.smartsheet.api.Smartsheet; import com.smartsheet.api.SmartsheetFactory; import com.smartsheet.api.models.Cell; import com.smartsheet.api.models.Column; import com

how to request auth code from Smartsheet via Postman

二次信任 提交于 2019-12-11 14:55:43
问题 so I am trying to request an authorization code from smartsheet using postman. I created a new app on my smartsheet with the following url: app url: https://localhost:3000/ redirect url: https://localhost:3000/callback so I tried to use the GET https://app.smartsheet.com/b/authorize and input my client id, scope, repsonse_type, and state in postman the result says there is an error and it did not direct me to a page where I am able to allow authorization. I am expecting something similar to

get smartsheet row id by searching column values

爱⌒轻易说出口 提交于 2019-12-11 13:22:30
问题 Is there a way to use the Smartsheet API to search a sheet and get back the IDs of rows where column A = {something} and column B = {something else}? If this were SQL, it'd be a simple SELECT id FROM sheet WHERE A = 'something' and B = 'something else'; But the documentation for the Smartsheet API makes it seem as if you can only do a blunt text search across the entire sheet. 回答1: Unfortunately, there is no way to query / filter by specific column values today. This is definitely something