ClimateNetTumoLabs / ClimateNetTumoLabs/lambda-functions

Fix API Gateways

Đang mở
#3 1 bình luận 0 reaction 1 người được giao Được giao cho @areviksol Xem trên GitHub
Ngôn ngữ chính
Python
Star
0
Fork
0
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

API Endpoint:
https://mrecurtz89.execute-api.us-east-1.amazonaws.com/getData
Parameters:
device_id (required): Unique identifier for the device.
start_time (Not required): Start date and time for the weather data retrieval (format: YYYY-MM-DD).
end_time (Not required): End date and time for the weather data retrieval (format: YYYY-MM-DD).
Example Requests:
GET https://mrecurtz89.execute-api.us-east-1.amazonaws.com/getData?device_id=8&start_time=2023-11-10&end_time=2024-1-8
Retrieve Last 24 Hours Data:
If you use the following link without specifying start_time and end_time, you will receive the weather data for the last 24 hours.

https://mrecurtz89.execute-api.us-east-1.amazonaws.com/getData?device_id=8
Response:
The API returns weather data in JSON format, containing relevant information based on the provided parameters.

Usage:
Make a GET request to the API endpoint (https://mrecurtz89.execute-api.us-east-1.amazonaws.com/getData) with the parameters (device_id, start_time, end_time).
Parse the JSON response to extract the weather data.
Utilize the retrieved weather data in your application as needed, such as displaying it to users, performing analysis, or integrating it with other services.
Note: Ensure that you handle any errors gracefully, such as invalid parameters or network issues, to provide a seamless experience for your users.

Please use this doc and create same functionality

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.