fastapi_django_main_live / controllers /ai /line_data_retriever.py
kenken999's picture
test
565ab19
raw
history blame
404 Bytes
import requests
class LineDataRetriever:
def __init__(self, line_api_token):
self.line_api_token = line_api_token
def retrieve_data(self):
# Replace with your Line API endpoint
url = "https://api.line.me/v2/messages"
headers = {"Authorization": f"Bearer {self.line_api_token}"}
response = requests.get(url, headers=headers)
return response.json()