Everyone.
Welcome back Johnny be here with slopes dot com.
And this is the end the end of the line.
This is our finished product here with the chat apps at least as far as I'm concerned.
But I want you guys to continue working on this because there's actually quite a bit of other functionality
built into the API that we haven't covered.
For instance if we come check out our post and then we have this function here.
Update user by ID and what this does is you can update your users name based on your user ID.
Right.
And it's similar just like our other ones.
But instead this time we have a put.
All right so we talked about web request types who are get was just getting stuff post was creating
a new object and put.
Is that where you're able to modify an existing object.
And so what I want you guys to do is make some way of being able to update the user's username.
All right.
Maybe you have when you click on your profile here maybe you have a text field for them to be able to
update and maybe have a button which pops up another motile where they can enter in their new user name
and then when they try.
And then when they click the button to send it what you're going to do is you going to have a function
very similar to all of these right here.
You're going to have you're going to have a body and your body is simply a chase an object with the
one key and the value of name and then whatever you want it to.
Well whatever you want to change your name to.
And then you're going to have an Alamo file request.
The area is going to be similar to the ones that we've done.
But instead it's going to be user followed by the user's ID which we believe we store user data service.
Yeah.
So we have the user's ID.
So yeah you'll have pretty much all of the information that you need the header.
It doesn't need to be a barer header you need to be have a habit or token to do it.
Yes so goes we'll give that a try the method will be dot put.
And I think you guys can do it.
I think we have covered you know enough to for you guys to take this on and do it.
So please give it a try.
Show us your results in the forums in the chat room.
And yes so that's pretty much it was going play with our chat app for one one more time.
I mean so-call here in general is going to say goodbye.
Students that's going to pop up over here.
And so.
Oh yeah.
Let me let me show you the chat up a little bit.
So if you if we click here we can log out and we're going to log in create an account.
You can create a account here.
Here's what it looks like on the Mac side.
You see the color picker.
That's kind of cool huh.
Yeah.
And then once you log in that's it.
He does.
One two three four five six here with the AD accounts for your profile just like the iOS app.
And so yeah if you want to learn how to do this head on over to dev slopes dot com download our app
and get get learning about it on the course.
All right.
So that's it.
If you guys want to hang around I'm going to just go through the code and clean it up a little bit.
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
needed.
That's not necessary just just optional if you guys want to see me go through and clean up the code
see how I do it.
But other than that it's been a pleasure and I will see you all later.
This actually looks pretty good.
I'm just going to get rid of the spaces down here.
User Data Service looks who are curate of the space down here.
That looks good.
Can't go.
Looks pretty could cure it of this space.
Can service
mostly I'm just looking for bad spacing.
Say Constance.
OK.
Great.
And you can looks good
looks good and looks good looks good.
Hope you got some commented text here.
Don't we get rid of that.
That would have failed the pull request for you.
Looks pretty good.
I'm going to save that and going to add and commit my changes.
And that get commit.
And less than 30
that.
See you around.