logo

NJP

#Part 10 Get Deaths Cases and Country- Covid-19 Dashboard

Import · Jun 07, 2020 · video

hello everyone so in this video what we are going to do basically we are going to send another question you know how to get the dead cases and also the country it's going to be exactly the same request the rest request you're going to send on one more time once we have the response we are going to pass it we are going to use the same script nothing is going to change except few information I will just show you what we have to change so it's not going to be a big changes because we are going to apply the same logic only we are going to create a few different array different objects so let's get started so this is my rest request get summary to the same information okay so it's done now let's create our script so first summary - response body you have to input stated status code and response body so we're gonna have you same script so what we are going to change here we are going to have another array instead of having summary one array I have summary to Eric and we will have summary two objects so the value that we retrieve here is dead cases instead of confirm that we have death and also the countries I would create a new one somebody to object country and I will take it from dot data dot name so if you see the JSON response here you can see data and then you have name where we have the value both countries can you stand here so let's continue with our changes in our script so summary to erase somebody to object summary to here for my output and somebody to error okay so the same logic the only thing that we are changing here is just the name of the area name of the object and the value of the territory and we are creating here our output variable so summary to array so that case is an int country is a string say that and let's create our output variable for our action okay so exactly the same thing that we have done in a previous step nothing is changing this one this time we are creating a summary to array instead of having this summary want okay let's worry of we are doing exactly the same operation okay and taking the value for our Ted cases and also the country okay so we have now our in on our right side the summary to area object so that we are going to use sorry to somebody to date appeal and we are going to take that one just drag and drop it into our action output variable okay having here country exit mode summary - so I have some mistakes here to find the logic is is the same here so we have done pretty much with our get request and the past was process script let's see what we are going to have as a result so this is what you should get another response and where we have all the countries and also the death cases thank you for watching

View original source

https://www.youtube.com/watch?v=30LuTJpO5-U