1 00:00:00,300 --> 00:00:00,990 Nice job. 2 00:00:01,080 --> 00:00:08,700 And we're finally ready to kick things in full blown gear by getting the followers as well as the report. 3 00:00:09,310 --> 00:00:15,870 And in order to make things even more interesting, I search for some awesome developers so I can look 4 00:00:15,870 --> 00:00:20,220 for different reports as well instead of just repeating the same old, same old. 5 00:00:20,730 --> 00:00:24,090 And we're going to start by looking at our response. 6 00:00:24,390 --> 00:00:28,680 So if we head back to our project and then in the context. 7 00:00:29,670 --> 00:00:30,690 We noticed that, of course. 8 00:00:30,780 --> 00:00:31,740 Yeah, we have the response. 9 00:00:31,770 --> 00:00:34,260 We set up get Abuzer and all that is fine. 10 00:00:34,740 --> 00:00:41,460 So what I would want to do right now, though, well, in the read me, I can see that I have to you 11 00:00:41,460 --> 00:00:41,880 URL's. 12 00:00:42,360 --> 00:00:47,220 I have the one Forder repos as well as I have one for followers. 13 00:00:47,620 --> 00:00:48,010 Correct. 14 00:00:48,480 --> 00:00:53,880 So why don't we just take this particular one and I'm not gonna paste them in a tab. 15 00:00:54,280 --> 00:00:59,610 Think we can just do it directly in a context because well we already have spent enough time with the 16 00:00:59,610 --> 00:01:00,720 get up API and all that. 17 00:01:01,080 --> 00:01:03,660 I'm just gonna place a comment and we're gonna copy and paste. 18 00:01:04,020 --> 00:01:06,790 So that's the first one that is gonna be for my repose. 19 00:01:07,410 --> 00:01:10,500 And then the second one will be my followers. 20 00:01:10,920 --> 00:01:11,550 So again. 21 00:01:11,620 --> 00:01:14,940 And let me navigate back to my read me online. 22 00:01:15,050 --> 00:01:16,780 We're looking for this bad boy. 23 00:01:17,550 --> 00:01:18,870 Let's get that sucker in there. 24 00:01:19,600 --> 00:01:22,280 And we're gonna have another set of comments. 25 00:01:22,410 --> 00:01:23,430 Copy and paste. 26 00:01:23,940 --> 00:01:26,270 And we're just gonna say fall Lorsch. 27 00:01:26,610 --> 00:01:26,890 All right. 28 00:01:27,330 --> 00:01:28,830 So those are two. 29 00:01:28,860 --> 00:01:30,990 You are odds that we would want to hit. 30 00:01:32,010 --> 00:01:34,020 Let's take a look where we have the data. 31 00:01:34,530 --> 00:01:36,390 So we have our sponsored data. 32 00:01:36,840 --> 00:01:37,160 Correct. 33 00:01:37,200 --> 00:01:41,960 So in that data object, we should see our user like. 34 00:01:41,970 --> 00:01:45,660 So remember, when we're checking for the user if the response is successful. 35 00:01:46,080 --> 00:01:47,520 This was our user object. 36 00:01:47,790 --> 00:01:51,660 And of course, you can find that data in the mock user as well. 37 00:01:52,320 --> 00:01:54,990 And what we're looking for here are two properties. 38 00:01:55,500 --> 00:01:57,570 We're looking for the Log-in. 39 00:01:58,590 --> 00:02:01,250 And then we're looking 40 followers. 40 00:02:01,470 --> 00:02:03,960 You are all sorry, not following. 41 00:02:04,260 --> 00:02:07,380 We have followers, Yoro, where again we have the ruled. 42 00:02:07,410 --> 00:02:09,130 You are all users. 43 00:02:09,510 --> 00:02:10,830 And then the user name. 44 00:02:11,160 --> 00:02:12,270 And then the followers. 45 00:02:12,720 --> 00:02:14,430 So those are two things we're looking for. 46 00:02:14,760 --> 00:02:15,080 All right. 47 00:02:15,090 --> 00:02:15,990 So let's set this up. 48 00:02:16,380 --> 00:02:17,280 We have response. 49 00:02:17,290 --> 00:02:18,480 We have response data. 50 00:02:18,780 --> 00:02:21,180 So first, I would want to set up my user. 51 00:02:21,480 --> 00:02:23,570 That's number one online concert. 52 00:02:23,820 --> 00:02:29,520 And then we're going to the structure out the log in, man, follow worse. 53 00:02:30,360 --> 00:02:36,210 So and then underscore you are all let's look for a response. 54 00:02:36,690 --> 00:02:37,740 Online data. 55 00:02:38,550 --> 00:02:43,860 So once I have these two properties, then, of course, I could set up two more quests. 56 00:02:43,890 --> 00:02:44,330 Correct. 57 00:02:44,840 --> 00:02:49,410 I have my axios and everything so I could simply say axios. 58 00:02:49,800 --> 00:02:53,070 And now, of course, we just need to structure our request. 59 00:02:53,370 --> 00:02:55,170 So again, I'm gonna go with template string. 60 00:02:55,620 --> 00:02:57,540 I'm going to go with Roll TRL here. 61 00:02:57,930 --> 00:03:00,030 So we're going to say roll to your URL. 62 00:03:00,480 --> 00:03:05,760 So this is just for your reference, just in case you get confused of what I'm typing out here. 63 00:03:06,120 --> 00:03:11,180 So essentially now I'm constructing this one that matches the user that we just searched. 64 00:03:11,550 --> 00:03:12,720 So I'm going to go with route. 65 00:03:12,810 --> 00:03:13,580 You are real. 66 00:03:14,010 --> 00:03:21,000 Then I'm looking for the users and then the logging property because that's where I can find my user. 67 00:03:21,480 --> 00:03:26,370 The logging property is the one that tells me, yeah, that's the user that you are searching for. 68 00:03:26,670 --> 00:03:29,550 So logging that I'm looking for the repos. 69 00:03:29,880 --> 00:03:34,410 And then I'm going to add that query parameter where I'm going to say, yeah, get me hundred dollars 70 00:03:34,740 --> 00:03:36,030 per on line. 71 00:03:36,060 --> 00:03:40,740 We go with on the score page, not as equal to a hundred. 72 00:03:41,190 --> 00:03:43,220 So that should get me my reports. 73 00:03:43,560 --> 00:03:47,120 And right away I could add a dot of van online. 74 00:03:47,280 --> 00:03:48,470 I'm gonna get response. 75 00:03:48,870 --> 00:03:57,600 And of course what I want is to grab that data and then place it where I have the repos. 76 00:03:57,630 --> 00:03:57,990 Correct. 77 00:03:58,050 --> 00:04:00,180 And I'm going to do the same thing for followers. 78 00:04:00,690 --> 00:04:05,880 So I guess let's start simply by looking at our response response. 79 00:04:05,910 --> 00:04:08,760 So that's my callback function and yes. 80 00:04:08,800 --> 00:04:11,280 Will console log it just so we are on the same page. 81 00:04:11,610 --> 00:04:12,020 No worry. 82 00:04:12,030 --> 00:04:17,130 I don't think we'll use up all our requests while we're setting this up, because essentially this is 83 00:04:17,130 --> 00:04:21,250 gonna be one of the last things that we're doing as far as the GitHub API. 84 00:04:21,760 --> 00:04:25,920 So let's just look at the response more here and now. 85 00:04:25,920 --> 00:04:30,330 I'd want to copy and paste and set up the same thing for my followers. 86 00:04:30,840 --> 00:04:32,400 So we're going to copy paste. 87 00:04:33,400 --> 00:04:36,760 And then the setup is going to be almost the same. 88 00:04:36,790 --> 00:04:38,410 But, of course, the your health changes. 89 00:04:38,860 --> 00:04:43,190 So let me add here a comment where I'm going to say repose online. 90 00:04:43,810 --> 00:04:45,350 We're going to go with followers. 91 00:04:45,990 --> 00:04:50,020 While the word selection and what is the you are out? 92 00:04:50,050 --> 00:04:51,490 Well, we have followers. 93 00:04:51,490 --> 00:04:52,480 You are all correct. 94 00:04:52,690 --> 00:04:53,470 Want to double check? 95 00:04:53,850 --> 00:04:55,090 We are followers, Yoro. 96 00:04:55,450 --> 00:04:57,460 And then we just want to add that flag. 97 00:04:58,120 --> 00:05:00,280 I would want to add per hundred. 98 00:05:00,460 --> 00:05:00,820 Correct. 99 00:05:01,450 --> 00:05:02,620 So let's do it. 100 00:05:03,010 --> 00:05:04,420 We're going to remove everything now. 101 00:05:04,420 --> 00:05:05,320 We don't need to reroute. 102 00:05:05,350 --> 00:05:09,310 You are all anymore because I can directly get my repose and all that. 103 00:05:10,240 --> 00:05:14,370 I'm going to simply say, all right, get me the followers here. 104 00:05:14,380 --> 00:05:16,950 Followers, you are all online. 105 00:05:17,050 --> 00:05:19,660 Forward slash or I'm sorry, not forward slash. 106 00:05:19,690 --> 00:05:23,890 We're going to go with a question mark and we're going to say Per. 107 00:05:24,760 --> 00:05:26,320 On this score, page. 108 00:05:26,870 --> 00:05:27,280 Page. 109 00:05:27,360 --> 00:05:29,800 And that is going to be equal to a hundred. 110 00:05:30,300 --> 00:05:34,410 Let's save it and then let's use one of those other awesome developers. 111 00:05:34,800 --> 00:05:38,580 Otherwise, I'm just showing you was Mascotte, Scott Dolinski and Brad Thavasi. 112 00:05:38,970 --> 00:05:44,550 And we're gonna go with Sara Dresner, which is just an awesome, awesome developer. 113 00:05:44,930 --> 00:05:47,220 And she has a lot of autonomy. 114 00:05:47,220 --> 00:05:53,340 I would even say a free source help material all over the Internet. 115 00:05:53,730 --> 00:05:56,010 So we're gonna go back to our starter. 116 00:05:56,910 --> 00:06:00,180 We're going to copy and paste or get up user. 117 00:06:00,460 --> 00:06:01,860 You are on there it is. 118 00:06:02,190 --> 00:06:05,290 Now we're getting information about Sara. 119 00:06:06,150 --> 00:06:09,810 If I'm going to inspect, I should have two objects. 120 00:06:09,840 --> 00:06:11,850 Correct, because I'm console logging. 121 00:06:11,850 --> 00:06:16,000 My response, I'm not as far as the data notice. 122 00:06:16,320 --> 00:06:18,120 So this is for repos. 123 00:06:18,750 --> 00:06:19,930 That's why I have eighty six. 124 00:06:20,520 --> 00:06:22,250 And then this is gonna be forty followers. 125 00:06:22,670 --> 00:06:28,590 And I'm here, of course I'm going to get at least a hundred because there's tons of people who follow 126 00:06:28,590 --> 00:06:28,740 her. 127 00:06:29,130 --> 00:06:29,430 All right. 128 00:06:29,550 --> 00:06:36,450 Now what's left to do is to, of course, set up some kind of functionality where what I would want 129 00:06:36,570 --> 00:06:39,870 is to use the set and line. 130 00:06:39,930 --> 00:06:45,240 We're looking for repos and then we pass in the response and line. 131 00:06:45,360 --> 00:06:48,350 Where was the repos while it was still on a dare? 132 00:06:48,600 --> 00:06:48,930 Correct. 133 00:06:48,960 --> 00:06:51,570 So I have response and then data. 134 00:06:51,810 --> 00:06:52,800 We pass that one in. 135 00:06:53,270 --> 00:06:57,990 And we're doing the same thing here where instead of followers, we're armed. 136 00:06:57,990 --> 00:07:02,400 Sorry, instead of repos, we're going with set and line followers. 137 00:07:02,520 --> 00:07:03,510 So said followers. 138 00:07:03,790 --> 00:07:05,310 And we're passing a response. 139 00:07:05,730 --> 00:07:07,440 And then again, data. 140 00:07:07,980 --> 00:07:09,030 So set this up. 141 00:07:09,780 --> 00:07:16,830 Now we're gonna go with Cassidy Williams, which probably has the most funniest Twitter videos you ever 142 00:07:16,830 --> 00:07:17,190 seen. 143 00:07:17,580 --> 00:07:18,780 I mean, she's just hilarious. 144 00:07:19,200 --> 00:07:21,620 So we're gonna go with Cassidy, though. 145 00:07:22,140 --> 00:07:24,150 I believe I'm pronouncing this correct. 146 00:07:24,280 --> 00:07:24,450 Yeah. 147 00:07:24,840 --> 00:07:31,290 Casado and man, we're looking for get Abuzer copy and paste and line here. 148 00:07:31,650 --> 00:07:33,500 We should see the information about her. 149 00:07:33,510 --> 00:07:33,870 Correct. 150 00:07:34,740 --> 00:07:36,240 So as we're looking at it. 151 00:07:36,690 --> 00:07:41,610 Notice we have languages were we have the most popular repos. 152 00:07:41,640 --> 00:07:44,340 We have most for as well as the languages. 153 00:07:44,890 --> 00:07:52,500 And my probably personal favorite is Jason, because of all the awesome work has done for the Gadsby. 154 00:07:53,010 --> 00:08:00,000 I mean, he has been tremendous influence on the way he presents himself, the way he approaches people 155 00:08:00,000 --> 00:08:00,530 and all that. 156 00:08:00,540 --> 00:08:07,990 So I would definitely put him as one of the top people who spreads the word of Decode. 157 00:08:08,400 --> 00:08:09,750 So let me just get him. 158 00:08:10,290 --> 00:08:11,710 We're gonna go with Jason here. 159 00:08:12,620 --> 00:08:13,680 And yes, my apologies. 160 00:08:13,770 --> 00:08:19,230 I'm really bad on remembering the user names, so that's why I implemented some help over here. 161 00:08:19,620 --> 00:08:21,180 So we're gonna go back in the starter. 162 00:08:22,200 --> 00:08:23,400 We're going to copy and paste. 163 00:08:23,940 --> 00:08:27,570 And once we search, of course, now we display everything that we need. 164 00:08:27,870 --> 00:08:36,030 So now we're displaying the information about Jason as far as the GitHub and then the followers as well 165 00:08:36,030 --> 00:08:36,750 as the reports. 166 00:08:37,230 --> 00:08:44,670 So that's how we can set up our initial functionality where not only we get the user info, but also 167 00:08:44,670 --> 00:08:46,830 we're getting three repos as well as the followers. 168 00:08:47,160 --> 00:08:51,450 So now if I go back to my one, I'm going to go back to John hyphen Smellier. 169 00:08:51,900 --> 00:08:53,040 Then, of course, there it is. 170 00:08:53,220 --> 00:08:58,360 Now I'm displaying the repos for me as well as the followers.