The problem is the below line - I typed my example quickly and left out the semicolon, so that’s breaking your script.
$clientID = 'MYTWITCHCLIENTID' should be $clientID = 'MYTWITCHCLIENTID';
But ensure that you go and pull your ClientID and put it in that variable, otherwise the script still will not work.