-
-
Save TheMuellenator/974c39779ec516c4c60e918c001e48ba to your computer and use it in GitHub Desktop.
Day 38 Step 5 L335 - Solution
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#No Authentication | |
sheet_response = requests.post(sheet_endpoint, json=sheet_inputs) | |
#Basic Authentication | |
sheet_response = requests.post( | |
sheet_endpoint, | |
json=sheet_inputs, | |
auth=( | |
YOUR USERNAME, | |
YOUR PASSWORD, | |
) | |
) | |
#Bearer Token Authentication | |
bearer_headers = { | |
"Authorization": f"Bearer {YOUR TOKEN}" | |
} | |
sheet_response = requests.post( | |
sheet_endpoint, | |
json=sheet_inputs, | |
headers=bearer_headers | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
" req_body = {
"workout" : {
"date": date,
"time": current_time,
"exercise": exercise.title(),
"duration": duration,
"calories": calories
}
}