-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Toast example #70
base: main
Are you sure you want to change the base?
Conversation
|
"clientId": "<clientID>", | ||
"clientSecret": "<clientSecret>", | ||
"userAccessType": "TOAST_MACHINE_CLIENT", | ||
"domain": "<domain>" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please follow the pattern, <YOUR_CLIENT_ID>, see other examples for ref.
import requests as rq | ||
import traceback | ||
import datetime | ||
import json | ||
import copy |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
requirements file is missing
to_ts = datetime.datetime.now(datetime.timezone.utc).isoformat("T", "milliseconds") | ||
if 'to_ts' in state: | ||
from_ts = state['to_ts'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can rename these variables for better code readability
Many customers are going to be asking for this for the Toast API. This is a very simple example and is not a replacement for the existing connector.