Authentication
owner, repo, branch = "dolthub", "private-db", "main"
query = """SELECT * FROM testtable"""
res = requests.get(
"https://www.dolthub.com/api/v1alpha1/{}/{}/{}".format(owner, repo, branch),
params={"q": query},
headers={ "authorization": "token [TOKEN YOU COPIED]" },
)
res.json()Last updated
Was this helpful?