Appointments+ Hooking into completed appointments

Hey Guys,

I would like to find a way to hook into a completed appointment, and retrieve the user id, appointment id, and the provider's user id.

Thanks