Added updated code for hangout api