Attempting to see if user is streaming! - 401 Error

First you need to decide if App Access is the right type for you

Otherwise it’s covered here