The token connection method has been disabled, you will have to use MQTT. It looks like your code was cut off a bit at the end, but this link should help you.
The token connection method has been disabled, you will have to use MQTT. It looks like your code was cut off a bit at the end, but this link should help you.