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"})
'''
Metadata
Release files for smartsheet-helper 0.0.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| smartsheet_helper-0.0.8.tar.gz | 7.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| smartsheet_helper-0.0.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 17.4 kB
Release files / smartsheet_helper-0.0.8.tar.gz
| Download URL | smartsheet_helper-0.0.8.tar.gz |
|---|---|
| Size | 7.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2c482497a2be7d6204ef4ad13feeee2477b0bf1061600b3d9cab590571c29d40
|
|
BLAKE2b-256 checksum How to use checksums |
fdeb54213166740bad1e9c40ca62e09c55ef3ddf5dedbdf52a5c8d7b4c00493f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.13.2
|
Release files / smartsheet_helper-0.0.8-py3-none-any.whl
| Download URL | smartsheet_helper-0.0.8-py3-none-any.whl |
|---|---|
| Size | 9.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4b5439cf774e27caaafa32a7ebcd6f2dc79ba03aa5fd09511387d158cf42e6bb
|
|
BLAKE2b-256 checksum How to use checksums |
ee72165c6065471788467b72d3924e86038c8019091d17101be582b4557a216f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.13.2
|