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.6.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.6-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: smartsheet_helper-0.0.6.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.6.tar.gz
Algorithm Hash digest
SHA256 7b3ce805e4279a1cfab4b6558a74083ae80999169bb59b9cb00f3b91019fd160
MD5 e49b90476a3e8527f5ab7b8c54f392e9
BLAKE2b-256 7821033f821f96f391074d2410c70010ba6c8a09aab9dca9363ec4e1b68f250a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for smartsheet_helper-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 ca1994f49004d4c852519f3230459350dfbee1d1d119b0835225cf76e010acb8
MD5 f3d01aeb1a5fe94d2447e508c03f7f8d
BLAKE2b-256 beddc5b5dc43f01b1ab7a7cff17011b02e3b899879b63ef23d95fe4ae7f1993d

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