Hackers caught targeting vietnam government portals

     

*
OverviewIn partnership with Firebase, we"re making the public Hacker News data available in near real time. Firebase enables easy access from Android, iOS & the website. Servers aren"t left out.

Bạn đang xem: Hackers caught targeting vietnam government portals

If you can use one of the many Firebase client libraries, you really should. The libraries handle networking efficiently and can raise events when things change. Be sure to kiểm tra them out.

Please email api
ycombinator.com if you find any bugs.

URI và Versioning

We hope to lớn improve sầu the API over time. The changes won"t always be backward compatible, so we"re going to use versioning. This first iteration will have sầu URIs prefixed with https://hacker-news.firebaseio.com/v0/ và is structured as described below. There is currently no rate limit.

For versioning purposes, only removal of a non-optional field or alteration of an existing field will be considered incompatible changes. Clients should gracefully handle additional fields they don"t expect, và simply ignore them.

Design

The v0 API is essentially a dump of our in-memory data structures. We know, what works great locally in memory isn"t so hot over the network. Many of the awkward things are just the way Thành Phố Hà Nội works internally. Want to know the total number of comments on an article? Traverse the tree và count. Want to know the children of an item? Load the thành quả & get their IDs, then load them. The newest page? Starts at chiến thắng maxid and walks backward, keeping only the top màn chơi stories. Same for Ask, Show, etc.

I"m not saying this to lớn defover it - It"s not the ikhuyến mãi public API, but it"s the one we could release in the time we had. While awkward, it"s possible khổng lồ implement most of HN using it.

Items

Stories, comments, jobs, Ask HNs và even polls are just items. They"re identified by their ids, which are chất lượng integers, and live sầu under /v0/item/.

All items have some of the following properties, with required properties in bold:

FieldDescription
idThe item"s quality id.
deletedtrue if the công trình is deleted.
typeThe type of item. One of "job", "story", "comment", "poll", or "pollopt".
byThe username of the item"s author.
timeCreation date of the cửa nhà, in Unix Time.
textThe comment, story or poll text. HTML.
deadtrue if the vật phẩm is dead.

Xem thêm: Top 6 Cầu Thủ Fifa Online 3, Cau Thu Chi So Ao Trong Fifa Online 3

parentThe comment"s parent: either another phản hồi or the relevant story.
pollThe pollopt"s associated poll.
kidsThe ids of the item"s comments, in ranked display order.
urlThe URL of the story.
scoreThe story"s score, or the votes for a pollopt.
titleThe title of the story, poll or job. HTML.
partsA danh sách of related pollopts, in display order.
descendantsIn the case of stories or polls, the total comment count.

For example, a story: https://hacker-news.firebaseio.com/v0/item/8863.json?print=pretty


comment: https://hacker-news.firebaseio.com/v0/item/2921983.json?print=pretty


ask: https://hacker-news.firebaseio.com/v0/item/121003.json?print=pretty


job: https://hacker-news.firebaseio.com/v0/item/192327.json?print=pretty


poll: https://hacker-news.firebaseio.com/v0/item/126809.json?print=pretty


và one of its parts: https://hacker-news.firebaseio.com/v0/item/160705.json?print=pretty


"by" : "pg", "id" : 160705, "poll" : 160704, "score" : 335, "text" : "Yes, ban them; I"m tired of seeing Valleywag stories on News.YC.", "time" : 1207886576, "type" : "pollopt"

Users

Users are identified by case-sensitive ids, & live sầu under /v0/user/. Only users that have public activity (comments or story submissions) on the site are available through the API.

FieldDescription
idThe user"s unique username. Case-sensitive. Required.
createdCreation date of the user, in Unix Time.
karmaThe user"s karma.
aboutThe user"s optional self-mô tả tìm kiếm. HTML.
submittedList of the user"s stories, polls & comments.

Xem thêm: Hướng Dẫn Up Rom Quốc Tế Cho Sony Z4 Quốc Tế ) Giá Tốt Nhất Hà Nội

For example: https://hacker-news.firebaseio.com/v0/user/jl.json?print=pretty


"about" : "This is a test", "created" : 1173923446, "delay" : 0, "id" : "jl", "karma" : 2937, "submitted" : < 8265435, 8168423, 8090946, 8090326, 7699907, 7637962, 7596179, 7596163, 7594569, 7562135, 7562111, 7494708, 7494171, 7488093, 7444860, 7327817, 7280290, 7278694, 7097557, 7097546, 7097254, 7052857, 7039484, 6987273, 6649999, 6649706, 6629560, 6609127, 6327951, 6225810, 6111999, 5580079, 5112008, 4907948, 4901821, 4700469, 4678919, 3779193, 3711380, 3701405, 3627981, 3473004, 3473000, 3457006, 3422158, 3136701, 2943046, 2794646, 2482737, 2425640, 2411925, 2408077, 2407992, 2407940, 2278689, 2220295, 2144918, 2144852, 1875323, 1875295, 1857397, 1839737, 1809010, 1788048, 1780681, 1721745, 1676227, 1654023, 1651449, 1641019, 1631985, 1618759, 1522978, 1499641, 1441290, 1440993, 1436440, 1430510, 1430208, 1385525, 1384917, 1370453, 1346118, 1309968, 1305415, 1305037, 1276771, 1270981, 1233287, 1211456, 1210688, 1210682, 1194189, 1193914, 1191653, 1190766, 1190319, 1189925, 1188455, 1188177, 1185884, 1165649, 1164314, 1160048, 1159156, 1158865, 1150900, 1115326, 933897, 924482, 923918, 922804, 922280, 922168, 920332, 919803, 917871, 912867, 910426, 902506, 891171, 807902, 806254, 796618, 786286, 764412, 764325, 642566, 642564, 587821, 575744, 547504, 532055, 521067, 492164, 491979, 383935, 383933, 383930, 383927, 375462, 263479, 258389, 250751, 245140, 243472, 237445, 229393, 226797, 225536, 225483, 225426, 221084, 213940, 213342, 211238, 210099, 210007, 209913, 209908, 209904, 209903, 170904, 165850, 161566, 158388, 158305, 158294, 156235, 151097, 148566, 146948, 136968, 134656, 133455, 129765, 126740, 122101, 122100, 120867, 120492, 115999, 114492, 114304, 111730, 110980, 110451, 1084đôi mươi, 107165, 105150, 104735, 103188, 103187, 99902, 99282, 99122, 98972, 98417, 98416, 98231, 96007, 96005, 95623, 95487, 95475, 95471, 95467, 95326, 95322, 94952, 94681, 94679, 94678, 94420, 94419, 94393, 94149, 94008, 93490, 93489, 92944, 92247, 91713, 90162, 90091, 89844, 89678, 89498, 86953, 86109, 85244, 85195, 85194, 85193, 85192, 84955, 84629, 83902, 82918, 76393, 68677, 61565, 60542, 47745, 47744, 41098, 39153, 38678, 37741, 33469, 12897, 6746, 5252, 4752, 4586, 4289 >

9130260

< 9129911, 9129199, 9127761, 9128141, 9128264, 9127792, 9129248, 9127092, 9128367, ..., 9038733 >

< 9127232, 9128437, 9130049, 9130144, 9130064, 9130028, 9129409, 9127243, 9128571, ..., 9120990 >

Changed Items và Profiles

The thành tựu & protệp tin changes are at /v0/updates.


Chuyên mục: Tin Tức
12Bet Mobile