Spaces:
Running
on
Zero
Running
on
Zero
File size: 404 Bytes
565ab19 |
1 2 3 4 5 6 7 8 9 10 11 12 |
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() |