Hi, I am Xoma,
in this Guide, we will learn how to get data from API which is also know as “Application programming Interface” using WEB component. It it might be difficult for new users, so we will understand everything one by one.
Here I have done a very simple button, I have took a button, a label and WEB component.
We have some blocks and some methods to follow.
First we need to initialize a variable to store the data got from WEB.
When the value is got, we will set the Variable “JSON” value to the response content got from text. We shouldn’t store it without decoding the JSON got from WEB.
We will use get value for key block in the dictionary or look up in pairs block from list, any of them is okay.
Here our key is “password” and dictionary is the index of the list of variable “JSON”
In this API you get 9 index values. If you use this api then you can use any index from 1 to 9.
After all this we will connect the block to set.Label1.Text.
Now, it’s all done, so you should give a like and a comment if it helped to this topic. Any suggestion or recommendations are appreciated.