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