1
00:00:00,240 --> 00:00:04,770
OK, so now what we'll do is we'll try to try and get blocks.

2
00:00:05,460 --> 00:00:10,680
And inside that will be fetching the data and we'll fetching the arrows inside the catch.

3
00:00:11,310 --> 00:00:19,080
So we'll divide that by block first by and side is that it will be.

4
00:00:20,850 --> 00:00:27,870
A constant and that will be the response, basically, and that will be storing all of the response

5
00:00:28,170 --> 00:00:30,960
which we are getting from that particular pain point.

6
00:00:31,530 --> 00:00:36,540
Who will ride to the concert and will try to respond?

7
00:00:37,790 --> 00:00:38,480
Response.

8
00:00:40,260 --> 00:00:40,800
And.

9
00:00:42,140 --> 00:00:43,430
We are viewing this.

10
00:00:43,670 --> 00:00:49,100
Why are we doing this over it and then we'll fetch fetch?

11
00:00:49,430 --> 00:00:57,350
And third, this will write Dural basically to right now I'm just writing that you are ill and I'm not

12
00:00:57,350 --> 00:00:58,220
writing this.

13
00:00:58,220 --> 00:01:00,440
So it's dumb because.

14
00:01:01,920 --> 00:01:08,660
Or I can even just write data, so basically the search term is what it's available, which is odd.

15
00:01:09,180 --> 00:01:17,160
So it really was like whatever we will type inside the the search box and that will be stored in a particular

16
00:01:17,160 --> 00:01:24,960
variable and that variable will be parsed who are point after this, after this call to sign that will

17
00:01:24,960 --> 00:01:26,730
be passed here and.

18
00:01:28,310 --> 00:01:32,660
Then the surge would be made using that particular end point.

19
00:01:33,020 --> 00:01:39,620
So we can't make it a static thing because we want to start to different, different things and that

20
00:01:39,620 --> 00:01:41,000
needs to be dynamic.

21
00:01:41,480 --> 00:01:44,120
And that is why I am doing it.

22
00:01:44,720 --> 00:01:47,030
Like I'd just left it till here and next.

23
00:01:47,300 --> 00:01:49,070
After this, the part will be done.

24
00:01:49,220 --> 00:01:52,040
So let me, first of all, just create another hook.

25
00:01:52,310 --> 00:01:54,170
And that will be concert.

26
00:01:55,820 --> 00:01:56,870
Search term.

27
00:01:59,750 --> 00:02:02,420
And that search term.

28
00:02:07,410 --> 00:02:08,400
That search term.

29
00:02:11,850 --> 00:02:12,480
And.

30
00:02:14,110 --> 00:02:14,810
U.S.

31
00:02:15,640 --> 00:02:25,840
State and in the initial, I will keep it as as like when we know the page, so it will basically just

32
00:02:25,930 --> 00:02:32,200
as and after this, there will be this alphabet or we will not have an empty.

33
00:02:33,520 --> 00:02:40,150
Home page, basically, because we want to display some things on the screen, and that will be this

34
00:02:40,150 --> 00:02:44,740
as though that is what we are going to do here and.

35
00:02:45,980 --> 00:02:48,350
That is what we are going to put in the Fed.

36
00:02:49,130 --> 00:02:50,900
We'll try this, you are OK.

37
00:02:51,530 --> 00:02:53,240
So inside diabetics?

38
00:02:56,090 --> 00:03:03,920
And yet that will be the usual do oral and.

39
00:03:05,460 --> 00:03:05,700
Yeah.

40
00:03:06,310 --> 00:03:06,690
Well.

41
00:03:07,680 --> 00:03:12,780
Remember, the scandal is this constant or the variable which we have declared or would here?

42
00:03:13,290 --> 00:03:14,680
OK, so next to.

43
00:03:16,690 --> 00:03:23,340
What we'll do is we'll add the remaining part after this, you are like, tell this, we have graft,

44
00:03:23,350 --> 00:03:26,670
OK, but after that, the things will be dynamic.

45
00:03:26,680 --> 00:03:31,810
That will be a dynamic dome and which is their dynamic dome that this side dome.

46
00:03:31,810 --> 00:03:35,200
So that will add after this particular ritual.

47
00:03:35,590 --> 00:03:36,130
So.

48
00:03:38,100 --> 00:03:46,350
So inside the back picks, only what I'll do is I'll provide another dollar symbol, and here I will

49
00:03:46,390 --> 00:03:49,650
ride this dump those third.

50
00:03:51,000 --> 00:03:52,560
And then we learned that on.

51
00:03:53,460 --> 00:03:54,090
And.

52
00:03:56,070 --> 00:03:58,310
You all and Andy Serwer.

53
00:04:00,010 --> 00:04:07,470
So this is this is what are like from this data will be fed.

54
00:04:07,500 --> 00:04:11,070
This is a final output like input.

55
00:04:11,430 --> 00:04:17,370
Or we can see this is the final command which would be giving the browser that, hey, that data from

56
00:04:17,370 --> 00:04:19,500
this particular API endpoint.

57
00:04:19,890 --> 00:04:23,720
OK, so we have fed you have to send the first to question No.

58
00:04:24,290 --> 00:04:30,480
We'll we've got our data and that is like stored in this response.

59
00:04:30,480 --> 00:04:31,410
But no, we didn't.

60
00:04:31,440 --> 00:04:35,400
We need to like change that data into the JASON format.

61
00:04:35,410 --> 00:04:40,950
And if we don't have it in the DSM, because whatever the data, what you get on the API, that needs

62
00:04:40,950 --> 00:04:42,360
to be in the different format.

63
00:04:43,770 --> 00:04:51,750
So let's just do it Konst data and this will be also be awaiting.

64
00:04:52,890 --> 00:04:58,440
Because the like the the root of this is also the end of it function.

65
00:04:58,770 --> 00:05:00,780
So here we'll write a response.

66
00:05:03,350 --> 00:05:04,940
It disappoints me that this one, OK?

67
00:05:05,300 --> 00:05:06,980
The response thought.

68
00:05:07,900 --> 00:05:08,260
Yes.

69
00:05:08,830 --> 00:05:09,220
OK.

70
00:05:11,190 --> 00:05:19,830
So, Jason, and now this data will be storing the response in the JSON format.

71
00:05:20,170 --> 00:05:26,040
OK, right now in the response that would that would be like, of course, the database we are receiving

72
00:05:26,040 --> 00:05:27,450
from that particular point.

73
00:05:27,810 --> 00:05:30,450
But that was not in the JASON format.

74
00:05:30,660 --> 00:05:34,800
Like, we never know if it's in JSON honored in the text file or whatever.

75
00:05:35,250 --> 00:05:40,650
So this will come to what we're going to use and and this clears a lot of things.

76
00:05:40,680 --> 00:05:41,100
OK.

77
00:05:41,400 --> 00:05:50,820
Next, we'll be consoling this like data or console dark log side of this data and.

78
00:05:52,470 --> 00:06:00,750
Now we'll be storing that data into object basically, so we'll write consent and we'll write.

79
00:06:02,000 --> 00:06:08,630
And drinks, and then we'll grab that all inside their drinks and know what we want to stored in this

80
00:06:08,660 --> 00:06:10,700
object, that will be data.

81
00:06:12,140 --> 00:06:20,750
And now we want to check, like if things is null or not, you see, like whatever we are getting from

82
00:06:20,750 --> 00:06:26,060
this data, like whatever we are getting from that API endpoint, there should not be none.

83
00:06:26,360 --> 00:06:32,630
And if that isn't all that means, we have not yet we have not received anything and not are.

84
00:06:34,630 --> 00:06:40,030
Whatever the thing, which we need to show or display on the screen, that is empty.

85
00:06:40,270 --> 00:06:49,120
And if that is the case, then we'll display a message that is like not no cocktails must match your

86
00:06:49,120 --> 00:06:53,090
sword and that is nothing to display on the screen so that.

87
00:06:54,690 --> 00:07:01,470
We need to like display if that is no more drinks, this this you see object, if this object is empty,

88
00:07:01,470 --> 00:07:04,110
that means we have not yet received any data.

89
00:07:04,530 --> 00:07:08,010
So we will right if we block.

90
00:07:08,950 --> 00:07:09,310
If.

91
00:07:10,140 --> 00:07:12,840
And signed this bill passed that brings.

92
00:07:15,350 --> 00:07:23,930
And if that is no strings, no, this call, this piece of code will be executed if this is true, like

93
00:07:23,930 --> 00:07:26,290
if there is something, then ban or lead.

94
00:07:26,300 --> 00:07:28,460
This will call the sport will be executed.

95
00:07:28,940 --> 00:07:30,170
So here we'll write.

96
00:07:30,170 --> 00:07:31,730
We'll make another constant.

97
00:07:32,030 --> 00:07:34,250
And that will be new.

98
00:07:35,840 --> 00:07:39,560
Coffee beans and this will be equal to.

99
00:07:40,590 --> 00:07:43,560
And drinks thought map.

100
00:07:45,230 --> 00:07:47,300
And inside this, there will be an item.

101
00:07:47,840 --> 00:07:55,460
And this would be equal to some constant and those will be the things like go on.

102
00:07:56,120 --> 00:07:58,100
And this will also be an object.

103
00:07:58,100 --> 00:08:06,850
And here what we are going to store from from that particular item that that, first of all, we will

104
00:08:06,860 --> 00:08:14,510
store the idea of the drink because we want to move further and we want to like view the specific page

105
00:08:14,840 --> 00:08:22,520
with that particular cocktail, like containing all the details and the photo and whatever the ingredients

106
00:08:22,520 --> 00:08:24,710
are, not that we need to.

107
00:08:24,740 --> 00:08:26,420
For that, we'll need an I.D..

108
00:08:28,070 --> 00:08:28,430
OK.

109
00:08:28,850 --> 00:08:33,380
And feel need like four to do that.

110
00:08:33,530 --> 00:08:41,730
That's a thumbnail, and we'll need some more specific information so that the first one would be I.D..

111
00:08:43,700 --> 00:08:44,050
Bring.

112
00:08:44,540 --> 00:08:50,920
And that is this is the irony of the next we'll have the nod and the.

113
00:08:52,070 --> 00:09:02,200
Think next, we'll be having the duh FDR like it's Cheney or whatever and drink, then we'll be having

114
00:09:02,200 --> 00:09:05,560
a thumbnail, basically the thumb and.

115
00:09:07,210 --> 00:09:13,810
Next, sorry to come up here next, we'll be having if it's alcoholic or not to start.

116
00:09:19,910 --> 00:09:22,520
And call on Nic.

117
00:09:23,120 --> 00:09:27,770
And next, we'll be having a last last barometer to hear that is the.

118
00:09:30,090 --> 00:09:37,140
And that class now, which is what of the glass of that in which that particular cocktail is solved?

119
00:09:37,170 --> 00:09:43,770
So that is the last word next will be like this all will be grabbing from that item.

120
00:09:44,160 --> 00:09:51,870
Now you remember, we have passed that here and we can also do like drinks, diet, map and drink.

121
00:09:52,500 --> 00:09:53,780
But that doesn't look good.

122
00:09:53,790 --> 00:10:01,410
Like basically, the rule is that when we are mapping an area of an object, so for whatever is the

123
00:10:01,410 --> 00:10:09,180
name of that particular area or the object, whatever like object to gender, we should pass the singular

124
00:10:09,180 --> 00:10:12,300
form of that particular area or object.

125
00:10:12,750 --> 00:10:15,440
But that is not at all a compulsion.

126
00:10:15,450 --> 00:10:17,880
It's just like string.

127
00:10:18,060 --> 00:10:19,940
You can pass whatever you want.

128
00:10:19,950 --> 00:10:20,250
Okay?

129
00:10:20,580 --> 00:10:22,140
So we have done that.

130
00:10:23,300 --> 00:10:26,390
And now that will be equal to the item.

131
00:10:26,690 --> 00:10:31,190
And next, what we'll do is we'll down all of that.

132
00:10:31,920 --> 00:10:39,680
Or let me go ahead and create a written statement like after this, if if this success falls like that

133
00:10:39,680 --> 00:10:41,900
should be something, we would be returning, right?

134
00:10:42,200 --> 00:10:43,340
We can't just leave.

135
00:10:43,340 --> 00:10:43,710
Okay?

136
00:10:44,030 --> 00:10:47,750
And right now we are just checking this and like, you drinks and do this.

137
00:10:47,750 --> 00:10:48,350
But what?

138
00:10:48,350 --> 00:10:51,740
We want to return to that part we'll be doing here.

139
00:10:52,160 --> 00:10:54,050
So after the item?

140
00:10:55,210 --> 00:10:56,170
And started this only.

141
00:10:58,280 --> 00:11:00,290
We'll be returning like it on.

142
00:11:02,290 --> 00:11:13,780
Body, you are torn and there will be typing that I.D. and I.D. would be coming from IED drink.

143
00:11:13,960 --> 00:11:21,640
Next, we'll be having a name like the name of that particular cocktail and that will be coming from

144
00:11:22,170 --> 00:11:27,040
I, I.D. and the R and.

145
00:11:29,000 --> 00:11:29,480
Drink.

146
00:11:31,080 --> 00:11:34,550
OK, I should not use semicolon here.

147
00:11:34,620 --> 00:11:40,860
That would be just a comma, and I remove this semicolon just giving an error.

148
00:11:41,700 --> 00:11:49,050
So next we'll be having that image and that image will be stored inside this SD card.

149
00:11:49,500 --> 00:11:50,040
And.

150
00:11:51,070 --> 00:11:51,700
Thank.

151
00:11:53,880 --> 00:11:57,040
So this is continuing on in May, so it will provide a call my.

152
00:11:57,730 --> 00:12:04,760
Remember not those like Caylee Anthony, not semi-colon, because that would give you an added view.

153
00:12:04,970 --> 00:12:08,160
We have to separate them using the comma or the semicolon.

154
00:12:09,810 --> 00:12:12,240
So next, we'll be giving a glass.

155
00:12:15,920 --> 00:12:17,300
Glass and.

156
00:12:18,450 --> 00:12:19,290
SDR.

157
00:12:21,280 --> 00:12:21,910
Plus.

158
00:12:22,880 --> 00:12:24,680
And that is it.

159
00:12:25,910 --> 00:12:26,450
For.

160
00:12:27,420 --> 00:12:32,700
This is the work we ever done from this statement, like when the world said this is true.

161
00:12:32,940 --> 00:12:42,210
So this is what we are returning to next will be like starting a new like you state hawk will be storing

162
00:12:42,210 --> 00:12:46,110
some of the things in that so that we will do in the next to.
