Spaces:
Running
on
Zero
Running
on
Zero
File size: 404 Bytes
1f074d8 |
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() |