4.2.1-Weather Forecast Plugin (Example)
1. Overview
Interface name: Weather forecast plugin (example)
Version number: v1.0.0
2. Information
Request URL:User Configuration
Request method: POST
3. Request parameters
Refer to the description in "Introduction to Plugin"
4. Response field description
Refer to the description in "Introduction to Plugin"
5. Example
Request Example:
curl '<user configuration URL>' \
-H 'Content-Type: application/json' \
-X POST -d '{
"address": "Beijing"
}'Response example:
{
"raw": {
"Day weather": "Sunny",
"Night weather": "Sunny",
"Day temperature": "10 degrees Celsius",
"Night temperature": "-6 degrees Celsius",
"Wind": "Level 1-3",
"Date": "2024-01-11"
},
"markdown": "...",
"type": "markdown",
"desc": "According to the weather forecast, the weather conditions in Beijing on 2024-01-11 are as follows:\n- Daytime weather: sunny\n- Nighttime weather: sunny\n- Daytime temperature: 10 degrees Celsius\n- Nighttime temperature: -6 degrees Celsius\n- Wind: Level 1-3\n\nPlease arrange your activities reasonably. Pay attention to adding clothes in time. If there are any other questions, I can continue to help you."
}