logo

NJP

#6 Rest Request To Get The Historical Coin Data and Parse Step In Flow Designer

Import · Jul 17, 2020 · video

hello hi everyone so in this video we are going to create our rest request in order to get the uh coin history then we will create our parse step and just take the script that we have in our excel file sheet and paste it here and finally we will test if our request if it is going to give us some result or not okay so let's get started so click on the plus button here look for rest and then give it a title for connection select define connection inline the base url is the following one and the second part that you see here this is our resource path and make sure that you drag and drop the data bill right in between coin and history select enable to try policy and select the default http retry policy save all changes now click on plus again this time select script and then give it a title so we will create three input variables so the first one is going to be status underscore code and drag and drop the data and then create a response body and then also drag and drop the response body data and then also create coin underscore id data pro and drag and drop the coin id so in here in the script part we are going to just take the script that we have in our excel file sheet copy that one and then put it here so as you can see here we have eight output variables coina coins are a b c d e f g h so we are going to create them okay so you can click on create variable and then put out sorry coins array a that's the label and the name is going to be the same and the type is going to be array.object and then this is our object so rename it to coin.a object and now we are going to create our price variable and then also timestamp okay so from now all you need to do is to repeat the same thing for all of the coins so now we are going to create our output variable for our action so it's going to be exactly the same thing so you create coins array a array object and then you're going to have coins area a object and then price and then timestamp so you do exactly the same thing for all the coins so coinary b c d e f and g h so now we are done with the action outputs click on exit edit mode and then just drag and drop all the data that you can see in the past response body historical data step okay several changes and then now we are going to test um our rest request okay so so click on test for example we can let's see for for the coin id number one which is bitcoin if we get the result or not we go so we have the result for bitcoin here so you can press for other coins so you can put 30 in here and then run test and then see see the result so here we have the result for dash and then we are going to test for one more coin 59 and we have the result here for chain link thanks for watching hope you enjoyed bye

View original source

https://www.youtube.com/watch?v=pIlb9BaiU-k