Skip to content
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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

fivetran-clgritton
Copy link
Collaborator

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.

Copy link

height bot commented Jan 8, 2025

Link Height tasks by mentioning a task ID in the pull request title or commit messages, or description and comments with the keyword link (e.g. "Link T-123").

💡Tip: You can also use "Close T-X" to automatically close a task when the pull request is merged.

Comment on lines +2 to +5
"clientId": "<clientID>",
"clientSecret": "<clientSecret>",
"userAccessType": "TOAST_MACHINE_CLIENT",
"domain": "<domain>"
Copy link
Collaborator

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.

Comment on lines +6 to +10
import requests as rq
import traceback
import datetime
import json
import copy
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

requirements file is missing

Comment on lines +48 to +50
to_ts = datetime.datetime.now(datetime.timezone.utc).isoformat("T", "milliseconds")
if 'to_ts' in state:
from_ts = state['to_ts']
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants