Skip to content

Commit d81f19d

Browse files
committed
start DataManager class
1 parent 4badb6a commit d81f19d

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

flight-deals-start/data_manager.py

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
import requests
2+
import os
3+
from datetime import datetime
4+
25

36
class DataManager:
4-
#This class is responsible for talking to the Google Sheet.
5-
pass
7+
# This class is responsible for talking to the Google Sheet.
8+
def __init__(self):
9+
pass
10+
11+
def get_flights_from_google_sheet(self):
12+
SHEETY_API_URL = "https://api.sheety.co/----------/workoutTracking/flights"
13+
14+
headers = {
15+
'Authorization': f'Basic ---------'
16+
}
17+
18+
response = requests.post(SHEETY_API_URL, headers=headers)

0 commit comments

Comments
 (0)