文档
测试

获取headlines

POST
/news/get_headlines_list

接口描述

获取headlines数据

请求参数

参数名
类型
描述
必填
cat_id
int
(非必选)分类id
必填
country
string
us/国家;默认us
必填
order
string
publish(发布时间)/create(创建时间)/ 其中如果有置顶数据可以通过sort来进行排序(后台使用)
必填
total
int
返回条数;默认20
必填
page
int
页码;默认20
必填
callback
string
(非必选)jsonp使用
必填
type
string
(非必选)只能传rand,随机抽取数据,和cat_id不能共存
必填
channel_id
id
(非必选)渠道ID,后台可查看,每个广告渠道固定的ID
必填
channel_name
string
(非必选)渠道名称,后台可查看,他和channel_id只需传其中一个即可
必填

返回值

``` { "code": 200, "msg": "\u83b7\u53d6\u6210\u529f", "total": 99, "list": [{ "id": 1073, "cat_id": 1, "title": "No booze for United pilots for 12 hours before flights, airline says - NJ.com", "keywords": null, "description": "The change in policy comes just one week after two pilots were arrested on suspicion of being under the influence of alcohol or drugs before a scheduled flight to Newark Airport.", "content": "United Airlines has changed its policy on how soon before a flight its pilots can have a drink.\r\nThe airlines pilots are now not allowed to have an alcoholic beverage for 12 hours before flights; a four hour increase over the previous limit.\r\nThe policy was revised on Aug. 10, a United Airlines spokeswoman told NJ Advance Media Tuesday night.\r\nPilots are not allowed to fly with a blood-alcohol content at or above 0.04 percent, which is half the legal limit for drivers, according to the FAA.\r\nFAA guidelines state that pilots must go eight hours from bottle to throttle.\"\r\nThe change comes just one week after United Airlines two pilots were arrested on suspicion of being under the influence of alcohol or drugs before a scheduled flight from Glasgow Airport in Scotland to Newark Airport on Aug. 3.\r\nThe flight, United Airlines 162, was due to leave Glasgow Airport at 9 a.m., but was canceled after the arrests.\r\nThe United spokesman did not respond to a question asking if the policy was changed specifically because of the arrest of the two pilots.\r\nPolice Scotland said the 61-year-old and 45-year-old pilots were held under the section of a transportation safety law that covers on the job intoxication and impairment for aviation.\r\nThe pilot, Glendon Gulliver was charged under the Railways and Transport Safety Act, but did not enter a plea when he appeared in court on Aug. 6. He was granted bail by a judge at Paisley Sheriff Court near Glasgow.\r\nThe other pilot was released without charge before Tuesdays hearing.\r\nThis article contains material from the Associated Press.\r\nChris Sheldon may be reached at csheldon@njadvancemedia.com. Follow him on Twitter @chrisrsheldon Find NJ.com on Facebook.\r\nHave a tip? Tell us. nj.com\/tips\r\nGet the latest updates right in your inbox. Subscribe to NJ.coms newsletters.", "author": "Chris Sheldon | NJ Advance Media for NJ.com", "source": "Nj.com", "source_url": "https:\/\/www.nj.com\/news\/2019\/08\/no-booze-for-united-pilots-for-12-hours-before-flights-airline-says.html", "img_url": "https:\/\/www.nj.com\/resizer\/h9ycQ_fxAlmDMUIlVo8XnMXUx2s=\/1200x0\/arc-anglerfish-arc2-prod-advancelocal.s3.amazonaws.com\/public\/VTCFEDCQBRBIZPQZTVJ7DXDXMA.jpg", "click": 0, "good": null, "bad": null, "country": "us", "publish_time": "2019-08-14 03:59:00" }, { "name": "adx", "url": "", "img_url": null, "content": "<div id='div-gpt-ad-1561345181096-0' style='height:50px; width:320px;'>\r\n <script>\r\n googletag.cmd.push(function() { googletag.display('div-gpt-ad-1561345181096-0'); });\r\n <\/script>\r\n <\/div>", "position": 1, "ident": "ad" // 标识是广告 }, { "id": 1074, "cat_id": 1, "title": "FAA issues flight ban on 2015 MacBook Pros with faulty batteries - Engadget", "keywords": null, "description": "You can't fly with a recalled 2015 MacBook Pro until you get its battery replaced.", "content": "The agency told Bloomberg in a statement that it's \"aware of the recalled batteries that are used in some Apple MacBook Pro laptops.\" It has already alerted major airlines about it, telling them to adhere to the agency's 2016 safety instructions for devices with recalled batteries. As such, you can't take an affected laptop in your carry-on, and you can't check it in as cargo either. You can, however, take it on a flight once its battery has been replaced. \r\nBloomberg says four airlines based in the UK, Italy and Canada managed by Total Cargo Expertise recently implemented the same ban. The company already announced that the MacBook Pro model is no longer allowed in any of its airlines and said its personnel will remind passengers at the gate and before takeoff.", "author": "Mariella Moon", "source": "Engadget", "source_url": "https:\/\/www.engadget.com\/2019\/08\/13\/faa-flight-ban-2015-macbook-pro\/", "img_url": "https:\/\/o.aolcdn.com\/images\/dims?thumbnail=1200%2C630&quality=80&image_uri=https%3A%2F%2Fo.aolcdn.com%2Fimages%2Fdims%3Fcrop%3D1600%252C1013%252C0%252C0%26quality%3D85%26format%3Djpg%26resize%3D1600%252C1013%26image_uri%3Dhttps%253A%252F%252Fs.yimg.com%252Fos%252Fcreatr-uploaded-images%252F2019-08%252F47584aa0-be3a-11e9-bd4f-c10586327900%26client%3Da1acac3e1b3290917d92%26signature%3D29ae596d5e02894fdadfdeaa82531cc5de15c391&client=amp-blogside-v2&signature=10bf2216a02b778f22a739207d54f98750910e2c", "click": 0, "good": null, "bad": null, "country": "us", "publish_time": "2019-08-14 03:58:00" }, { "name": "adx", "url": "", "img_url": null, "content": "<div id='div-gpt-ad-1561345181096-0' style='height:50px; width:320px;'>\r\n <script>\r\n googletag.cmd.push(function() { googletag.display('div-gpt-ad-1561345181096-0'); });\r\n <\/script>\r\n <\/div>", "position": 1, "ident": "ad" }, { "name": "google-622", "url": "", "img_url": null, "content": "<script async src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script>\r\n <!-- \u81ea\u9002\u5e945 -->\r\n <ins class=\"adsbygoogle\"\r\n style=\"display:block\"\r\n data-ad-client=\"ca-pub-4346628638667717\"\r\n data-ad-slot=\"8020967509\"\r\n data-ad-format=\"auto\"\r\n data-full-width-responsive=\"true\"><\/ins>\r\n <script>\r\n (adsbygoogle = window.adsbygoogle || []).push({});\r\n <\/script>", "position": 5, "ident": "ad" }] } ```