Timeline for Request and compare API Reponses in Oraclize call
Current License: CC BY-SA 4.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 16, 2018 at 22:50 | vote | accept | Serdar Nur | ||
Nov 16, 2018 at 22:50 | comment | added | Serdar Nur | Ok had that solution in my head. Thought there would be another possiblity. Thank you @shane ! | |
Nov 16, 2018 at 22:47 | comment | added | Shane Fontaine |
Set an isReceived flag after each Oracle call return.
|
|
Nov 16, 2018 at 22:45 | comment | added | Serdar Nur | Thanks for the example of code. But i think you did not understand my question. As example i want to know, if it really rained in London at the 10th of November 2018. To avoid single point of failure, i want to request at least 3 APIs. Requesting these three APIs is no problem. And comparing their results is no problem too. My question is: How can i know, that all 3 Responses are received so i can compare their results? | |
Nov 16, 2018 at 22:42 | history | edited | Shane Fontaine | CC BY-SA 4.0 |
Add example code
|
Nov 16, 2018 at 22:39 | comment | added | Shane Fontaine | That simply depends on what you are comparing. You would have to create a function that compares the results, yes. I will add a small example to the code. | |
Nov 16, 2018 at 22:36 | comment | added | Serdar Nur | Thanks for your fast answer. Saving them is no problem. But how i do now, that all 3 Requests gave me an answer so i can call a method to compare the results? | |
Nov 16, 2018 at 22:31 | history | answered | Shane Fontaine | CC BY-SA 4.0 |