请求方式:get
请求地址:api.zjkhzx.cn/api/yan/yd.php
返回格式:json
请求示例:api.zjkhzx.cn/api/yan/yd.php?city=2019-6-18
请求参数:
名称 | 必填 | 类型 | 说明 | |
---|---|---|---|---|
city | 否 | string | 输出为当前时间的语录 |
返回参数:
名称 | 类型 | 说明 | |
---|---|---|---|
ID | string | 返回的该信息条ID号 | |
data | string | 返回语录信息 | |
nick | string | 返回发布作者 | |
avatar | string | 返回该语录的配信的图片地址 |
返回示例:
{"total":2,"data":[{"id":8421,"data":"坦然点,你虽然不会招蜂引蝶,但你招蚊子。","at":1560787200000,"by":44619,"from":null,"to":null,"type":null,"taste":1,"view":88334,"like":165,"say":4,"forward":40,"factor":null,"createTime":1560681802000,"audit":1,"status":1,"writer":{"id":44619,"nick":"糖瘾少年Zero_","avatar":"http://tvax4.sinaimg.cn/crop.0.0.996.996.50/6ed01424ly8frfv3imwj9j20ro0ro762.jpg","msgCount":null},"actions":[],"format":1,"viewStr":"几万人"},{"id":8412,"data":"知道流星为什么飞那么快吗?因为它,根本不想知道你的愿望。","at":1560787200000,"by":1212,"from":null,"to":null,"type":null,"taste":1,"view":89519,"like":344,"say":10,"forward":55,"factor":null,"createTime":1560656853000,"audit":1,"status":1,"writer":{"id":1212,"nick":"( ⊙ o ⊙ )~Tu ~","avatar":"http://thirdwx.qlogo.cn/mmopen/vi_32/4kF5cFK9MN5RoMNlznbI1XGA37hecl722ebDtbao3ic6Mdq1tEHymTicQ36PVh5GictSFf91nK9NjOn0rQceGcamg/132","msgCount":null},"actions":[],"format":1,"viewStr":"几万人"}]}