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

Uploaded Python 3

File details

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

File metadata

  • Download URL: smartsheet_helper-0.0.7.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.7.tar.gz
Algorithm Hash digest
SHA256 e94aa2b1abfd77469a780f478b02c2a53c72a72a80c3b30b0417d6eeda7c463a
MD5 e6640c1ac5fe4437623bd6b64acbc6a9
BLAKE2b-256 69be55a09a16a89d4b225e6ddfffb8cd148466ec1ca47c9a9ec5c8fc5a491fe3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for smartsheet_helper-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 bb1575c8d6579cebdcb8d97b0b785cbea8b4d4a20aafa30a0a51677ed3161262
MD5 ca6c736a685f8bcb07134bb580f38256
BLAKE2b-256 bacd94b89a656b7e21d293c32fdfdf31fa539beaa8d9ec521f7cc01fff832729

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