1.
For the first time, the full amount of data is obtained according to the entry parameter id loop (the first call to the entry parameter id is empty by default, and the subsequent entry parameter id is the maximum id of the previous return data +1)
2.
Determine that total=0 or results is empty, and the acquisition of the full data is completed (record the maximum update time in the full data updated_at)
3.
The acquisition of full data is completed, and subsequent incremental updates are updated.
4.
Incremental update, obtain changing data according to the entry time loop (the first call to entry time is the maximum update time recorded in step 2 updated_at+1, the same as above, the subsequent entry time is the maximum update time of the previous return data updated_at+1)
5.
Total=0 or results are empty, incremental update ends (record maximum update time updated_at)
6.
Keep incremental updates (1min/time)
[When incrementally update time parameter query, will the total number of returned data be greater than the limit? 】
time query, because there are multiple pieces of data at the same update time, and data at the same update time are returned synchronously, so the number of interface returns is in the range of the limit limit number;
limit is mainly used for id query. Since id is unique, the maximum return number is limit;
Time query, limit is only possible by default, no need to use it