foreword
It also uses the "Today in History" data interface for development. Aggregation gives me a limited number of times, and poverty once again enhances my hands-on ability. When I first started using it, I thought about how to write an interface, but I was lazy and didn't write it. There is no way, the number of accesses to the interface is enough, and I don't have the money to become a member, so I can only resort to this!
At present, the interface is also placed on my server, and it is placed on the same server as the previous ID card interface. Under normal circumstances the server will be on, unless it is off (emmmmm).
text
Request address:
Request a list of today's informationAddress : http://jiahengfei.cn:33550/port/historyParameter : dispose: select the query method: detail or easy, detailed query or simple query key: future limit parameters, currently fixed "jiahengfei" month: month, such as " 12", "6" day: day, such as "25", "8" Example : http://jiahengfei.cn:33550/port/ history ?dispose=easy&key=jiahengfei&month=4&day=1 Request details based on event idAddress : http://jiahengfei.cn:33550/port/historyParameters : dispose: fixed "select" key: limited parameters in the future, currently fixed "jiahengfei" id: event id Example : http://jiahengfei.cn:33550 /port/history?dispose=select&key=jiahengfei&id=[event id] |
Return result:
One: detail returns { "code" : 1 , "data" : [ { "id" : 3184 , "lunar" : "February 25, Wuyin Year" , "pic" : " http://juheimg.oss-cn-hangzhou.aliyuncs.com/toh/201106/3/5B22944849. jpg " , "title" : "British physiologist Harvey's birthday" , "year" : "1578" } , { "id" : 3185 , "lunar" : "February 13, Bingshen Year" , "pic" : "" , "title" : "Birthday of the outstanding French mathematician Sophia Gilman" , "year" : " 1776" } , { "id" : 3186 , "lunar" : "February 17, Jisi Year" , "pic" : " http://juheimg.oss-cn-hangzhou.aliyuncs.com/toh/200404/1/99112155440. jpg " , "title" : "Gogol's birthday" , "year" : "1809" } ,...(omitted) ] , "msg" : "Request succeeded" } 2: easy returns { "code" : 1 , "data" : [ { "id":3184, "title":"英国生理学家哈维诞辰", "year":"1578" }, { "id":3185, "title":"法国杰出女数学家索菲娅·吉尔曼诞辰", "year":"1776" }, { "id":3186, "title":"果戈理诞辰", "year":"1809" },...(省略) ], "msg":"请求成功" } 三:详情返回 { "code":1, "data":{ "day" : "25" , "des" : "On today, 197 years ago, on March 25, 1821 (the 22nd day of the second lunar month), the Greek people revolted against the rule of the Ottoman Empire." , "id" : 3000 , "lunar" : "February 22, Xinsi Year" , "month" : "3" , "pic" : "" , "title" : "Greek people rebelled against the Ottoman Empire" , "year" : "1821" } , "msg" : "Request successful" } |
如果没有服务器的话只是做做测试可以联系我,我帮你打开,不要钱的
数据的话我应该是可以到处sql语句,需要自己搭建的话也可以找我要,毕竟能省点事就省点事,这玩意虽然简单,但是耗时啊,我弄出来也算是分享一下,有需要的找我要!
QQ:2757525207
wechat:jy271613
phone:17515250730