Skip to main content

Simple class that helps dealing with smarsheet api

Project description

smartsheet-helper

Simple class that helps dealing with smarsheet api, like dealing with columin ids and types

it uses environment variables for keys and ids:

SMARTSHEET_SHEET_ID=your_sheet_id
SMARTSHEET_ACCESS_TOKEN=your_secret_access_token

Danjgo webhook handler example

''' from django.views.decorators.http import require_http_methods from django.views.decorators.csrf import csrf_exempt from django.http import JsonResponse

@require_http_methods(["POST"]) @csrf_exempt def handleWebhook(request): #handle challenge if("Smartsheet-Hook-Challenge" in request.headers): res = {"smartsheetHookResponse": request.headers["Smartsheet-Hook-Challenge"]} return JsonResponse(res) data = json.loads(request.body) # data = { # "nonce":"6939c036-b01b-1111-2222-4e085ef1a5a0", # "timestamp":"2023-11-05T13:07:26.115+00:00", # "webhookId":6847500251111108, # "scope":"sheet", # "scopeObjectId":6817504622273380, # "events":[ # { # "objectType":"cell", # "eventType":"updated", # "rowId":5849931133364004, # "columnId":3996433355807364, # "userId":8583582333729092, # "timestamp":"2023-11-05T13:07:20.000+00:00" # } # ] # }

# do something

return JsonResponse({"result": "success"})

'''

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

smartsheet_helper-0.0.8.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

smartsheet_helper-0.0.8-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

Details for the file smartsheet_helper-0.0.8.tar.gz.

File metadata

  • Download URL: smartsheet_helper-0.0.8.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.2

File hashes

Hashes for smartsheet_helper-0.0.8.tar.gz
Algorithm Hash digest
SHA256 2c482497a2be7d6204ef4ad13feeee2477b0bf1061600b3d9cab590571c29d40
MD5 39fbc13f90b98ec8965d12d69e3da0f1
BLAKE2b-256 fdeb54213166740bad1e9c40ca62e09c55ef3ddf5dedbdf52a5c8d7b4c00493f

See more details on using hashes here.

File details

Details for the file smartsheet_helper-0.0.8-py3-none-any.whl.

File metadata

File hashes

Hashes for smartsheet_helper-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 4b5439cf774e27caaafa32a7ebcd6f2dc79ba03aa5fd09511387d158cf42e6bb
MD5 d3f9c0a51eca70b4933579f770a976cb
BLAKE2b-256 ee72165c6065471788467b72d3924e86038c8019091d17101be582b4557a216f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page