😁How to recursively fetch data from paginated API then combine into one array (ok)

https://stackoverflow.com/questions/72420288/how-to-recursively-fetch-data-from-paginated-api-then-combine-into-one-array

D:\working\smarthr\code.js (lấy dữ liệu phần phân trang)

var settings = {
  "url": "https://55527790b6cf51206c3580fb.daruma.space/api/v1/crews/?page=1&access_token=jYM4cw3oWKXUjtbXboFkhB9vZgbshdEx",
  "method": "GET",
  "timeout": 0,
  "headers": {
    "Content-Type": "application/json"
  },
};
$.ajax(settings).done(function(response) {
  console.log(response);
});

D:\working\smarthr\test.html

D:\working\smarthr\code.js

Last updated

Was this helpful?