Answer the question
In order to leave comments, you need to log in
How to track data changes in a third-party API?
Hello!
Guys, please tell me which way to dig, if you need to track changes in data in third-party APIs, for example, there is a weather service API, you need to trigger a notification (for example, in a cart once when changing). Infa will be updated approximately 1 time per minute, and when the temperature changes up or down, an alert should be triggered. Is it necessary to use some kind of database in order to record the last sent data there and not repeat the notification with each update?
Maybe someone has a similar source to study? I would appreciate it :)
Thank you!
Answer the question
In order to leave comments, you need to log in
If you receive data from a third-party API, then write it to a temporary variable on your own and compare it with the new result, and the output of a notification by condition can be made elementaryif else
if(newResult! = prevResult)
showPopup();
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question