Description
- Description of the calendar widget
Interface version
Version number |
Writer |
Date |
Description |
1.0 |
Qin Zhitian |
June 29, 2021 |
initial release |
IP address
http:
API list
Name |
Description |
set |
set attributes |
get |
get attributes |
1. set
Description of request parameters
Parameter Name |
Type |
Description |
attr |
string |
attribute |
attr.action |
string |
action:data-‘set the date to be displayed’; |
attr.day |
int |
parameter:day |
attr.month |
int |
parameter:month |
attr.year |
int |
parameter:year |
Call example
{
"wid": "s1",
"cmd" : "set",
"attr": {
"action": "data",
"day": 29,
"month": 6,
"year": 2021
}
}
Note: set the date of the calendar to 2021-6-29;
{
"code": 0
}
Description of return parameters
Parameter Name |
Type |
Description |
result |
string |
result information |
result.code |
int |
error code |
Error Code
2. get
Description of request parameters
Parameter Name |
Type |
Description |
Call example
{
"wid": "s1",
"cmd" : "get"
}
Return example
{
"month": 6,
"day": 29,
"year": 2021,
"code": 0
}
Description of return parameters
Parameter Name |
Type |
Description |
result |
string |
result information |
result.code |
int |
error code |
result.month |
int |
month |
result.day |
int |
day |
result.year |
int |
year |
Error Code
文档更新时间: 2021-08-18 21:37 作者:plj