The skeleton for making API call

var requestOptions =
 {
    url : "http://yourapi.com/api/path",
    method : "GET", json : {},
    qs : { offset : 20
 } };
request(requestOptions, function(err, response, body) {
    if (err) {
      console.log(err);
   } else if (response.statusCode === 200) {
  console.log(body);
 } else {
 console.log(response.statusCode); }
});

Nhận xét

Bài đăng phổ biến từ blog này

Tạo phím tắt Format code HTML, CSS trong Sublime text

Cách học tiếng anh qua Anki + google image + GoldenDict + cách ghi chép hợp lí.

Hiểu nhanh về mạng máy tính, phân biệt TCP/IP UDP/IP và một số vấn đề liên quan.