接口路径(新):http://api.okayapi.com/api/App/Task/Push
接口路径(旧):http://api.okayapi.com/?s=App.Task.Push
接口描述: 推送将要执行的任务(即url链接),可以指定执行的时机为现在、多少秒后、或指定具体的时间点。任务url链接须支持80端口访问,支持带参数,指定请求方法。支持高并发批量任务推送,如果需要定时固定的计划任务,可进入小白开放平台计划任务管理面板配置。
Parameter | Type | Required | Default | Note | Description |
---|---|---|---|---|---|
HTTP_APPKEY | String | Required | MIN: 32 | Common Put Your APPKEY | |
url | String | Required | 待请求的链接,必须是以http://或https://开头,且使用80端口 | ||
params | ArrayJSON Format | Optaion | [] | 请求链接时的更多参数,为JSON格式 | |
method | Enum | Optaion | GET | Range: GET/POST | 通过HTTP执行任务链接时的请求方式 |
time | Int | Optaion | 0 | 计划任务的执行时间,分为以下三种情况:
|
KEY | Type | Description |
---|---|---|
err_code | Int | 操作码,0表示成功,正数表示业务失败场景,负数表示系统失败场景 |
err_msg | String | 错误提示信息,err_code非0时参考此提示信息 |
Power by OkayAPI.com Contact us (WA: okayapi OR Email: chanzonghuang@gmail.com).
Timezone: America/New_York Apr/19/2024 22:00:44