1
00:00:07,760 --> 00:00:08,430
Everyone.

2
00:00:08,450 --> 00:00:11,410
Welcome back Johnny be here with slopes dot com.

3
00:00:11,510 --> 00:00:13,960
And this is the end the end of the line.

4
00:00:14,090 --> 00:00:19,870
This is our finished product here with the chaps and they say as far as I'm concerned.

5
00:00:20,150 --> 00:00:26,300
But I want you guys to continue working on this because there's actually quite a bit of other functionality

6
00:00:26,360 --> 00:00:29,400
built into the API that we haven't covered.

7
00:00:29,590 --> 00:00:34,620
And for instance if we come check out our postman we have this function here.

8
00:00:34,640 --> 00:00:43,270
Update user by ID and what this does is you can update your users name based on your user ID.

9
00:00:43,320 --> 00:00:43,630
Right.

10
00:00:43,730 --> 00:00:46,370
And it's similar just like our other ones.

11
00:00:46,370 --> 00:00:48,460
But instead this time we have a put.

12
00:00:48,540 --> 00:00:56,090
Right so we talked about web request types who are get was just getting stuff post was creating a new

13
00:00:56,330 --> 00:00:58,280
object and put.

14
00:00:58,360 --> 00:01:02,400
Is that where you're able to modify an existing object.

15
00:01:02,870 --> 00:01:12,240
And so what I want you guys to do is make some way of being able to update the user's username.

16
00:01:12,380 --> 00:01:12,750
All right.

17
00:01:12,770 --> 00:01:19,130
Maybe you have when you click on your profile here maybe you have a text field for them to be able to

18
00:01:19,160 --> 00:01:25,630
update and maybe have a button which pops up another motile where they can enter in their new user name.

19
00:01:25,730 --> 00:01:31,130
And then when they try and then when they click the button to send it what you're going to do is going

20
00:01:31,130 --> 00:01:36,270
to have a function very similar to all of these right here.

21
00:01:36,410 --> 00:01:45,530
You're going to have an you're going to have a body and your body is simply a chase an object with the

22
00:01:45,680 --> 00:01:50,030
one key and the value of name and then whatever you want it to.

23
00:01:50,070 --> 00:01:52,620
Well whatever you want to change your name to.

24
00:01:53,120 --> 00:01:58,190
And then you're going to have an Alamo if I request that your L is going to be similar to the ones that

25
00:01:58,190 --> 00:01:58,750
we've done.

26
00:01:58,760 --> 00:02:09,890
But instead it's going to be user followed by the users I.D. which we believe we store user data services.

27
00:02:10,940 --> 00:02:11,350
Yeah.

28
00:02:11,360 --> 00:02:14,190
So we have the user's I.D..

29
00:02:14,510 --> 00:02:19,400
So yeah you'll have pretty much all of the information that you need the header.

30
00:02:19,430 --> 00:02:26,250
It doesn't need to be a barer header you need to be have a habit of token to do it.

31
00:02:26,540 --> 00:02:28,430
Yes so goes we'll give that a try.

32
00:02:28,430 --> 00:02:30,230
The method will be dot put.

33
00:02:30,500 --> 00:02:31,790
And I think you guys can do it.

34
00:02:31,790 --> 00:02:37,400
I think we have covered you know enough to for you guys to take this on and do it.

35
00:02:37,400 --> 00:02:39,920
So please give it a try.

36
00:02:39,920 --> 00:02:43,850
Show us your results in the forums in the chat room.

37
00:02:44,050 --> 00:02:46,730
And yes so that's pretty much it.

38
00:02:46,980 --> 00:02:52,220
Let's go and play with our our chat app for one one more time.

39
00:02:52,540 --> 00:02:58,410
I mean so-call here in general is going to say goodbye.

40
00:02:58,670 --> 00:03:04,580
Students that's going to pop up over here.

41
00:03:05,030 --> 00:03:05,960
And so.

42
00:03:06,020 --> 00:03:06,430
Oh yeah.

43
00:03:06,430 --> 00:03:08,810
I mean let me show you the chat up a little bit.

44
00:03:09,380 --> 00:03:15,630
So if you if we click here we can log out and we're going to log in create an account.

45
00:03:15,690 --> 00:03:17,630
You can create a count here.

46
00:03:17,990 --> 00:03:21,370
Here's what it looks like on the Mac side.

47
00:03:21,770 --> 00:03:24,010
You see the color picker.

48
00:03:24,050 --> 00:03:26,210
That's kind of cool huh.

49
00:03:27,680 --> 00:03:40,640
And then once you log in I see you duck one two three four five six here with the AD accounts with your

50
00:03:40,640 --> 00:03:43,380
profile just like the iOS app.

51
00:03:43,380 --> 00:03:48,260
And so yeah if you want to learn how to do this head on over to dev slopes dot com download our app

52
00:03:48,680 --> 00:03:52,070
and get get learning about it on the course.

53
00:03:52,070 --> 00:03:53,040
All right.

54
00:03:53,510 --> 00:03:55,400
So that's it.

55
00:03:55,850 --> 00:04:01,640
If you guys want to hang around I'm going to just go through the code and clean it up a little bit.

56
00:04:01,890 --> 00:04:07,550
Just just so that it's ready to be put up on our on our repo so that you guys can pull it down when

57
00:04:07,550 --> 00:04:08,700
needed.

58
00:04:08,840 --> 00:04:13,760
That's not necessary just just optional if you guys want to see me go through and clean up the code

59
00:04:13,760 --> 00:04:14,960
see how I do it.

60
00:04:15,350 --> 00:04:19,490
But other than that it's been a pleasure and I will see you all later.

61
00:04:23,870 --> 00:04:26,040
It's actually looks pretty good.

62
00:04:26,480 --> 00:04:32,060
I'm just going to get rid of the spaces down here.

63
00:04:32,660 --> 00:04:38,280
User Data Service looks who are cured of the space down here.

64
00:04:42,350 --> 00:04:45,320
That looks good.

65
00:04:45,390 --> 00:04:52,180
Can't go looks pretty could cure it of this space.

66
00:04:56,840 --> 00:04:58,490
Socket service

67
00:05:03,380 --> 00:05:08,630
mostly I'm just looking for bad spacing.

68
00:05:12,770 --> 00:05:16,950
Save constants.

69
00:05:17,280 --> 00:05:19,030
OK.

70
00:05:19,040 --> 00:05:20,470
Looks OK.

71
00:05:21,180 --> 00:05:21,660
Great.

72
00:05:21,880 --> 00:05:25,860
And you can x Good

73
00:05:29,500 --> 00:05:37,230
x and x Good x and

74
00:05:40,790 --> 00:05:45,870
you got some commented text here don't we get rid of that.

75
00:05:45,930 --> 00:05:48,720
That would have failed the poll request or you

76
00:05:54,670 --> 00:05:57,350
looks pretty good.

77
00:06:59,320 --> 00:07:00,770
Looks pretty good.

78
00:07:00,770 --> 00:07:11,930
I'm going to save that and going to add and commit my changes add that get commit.

79
00:07:11,990 --> 00:07:14,900
Am less than 30

80
00:07:23,580 --> 00:07:25,870
and know that I'll see you around.

