I finally figured out a way to get the display name and the status of the stream by doing this. It seems to work, but I was just wondering if this is a normal way to do it, or if there is a better way.
Before I had two different function: one to get the display name and the other to get the stream status. I think what was happening was they were working simultaneously and things were getting confused. But then when I nested one request within another it seemed to solve it.
Just wondering if any more experience coders would do it this way? I was thinking it could be brilliant, or just really convoluted. Let me know what you think. (Please ignore the style, this is not my final version of this project at all).