Wordpress-Plugin Twitch Stream Status with outdated API

Meanwhile we have found a programmer who has solved problem with a curl solution as following:

<?php if( get_theme_mod('sst_channel_name') != '') { 
		
		$channel=get_theme_mod('sst_channel_name');
		$url0="https://api.twitch.tv/helix/users?login=".$channel;
		
		$ch = curl_init();

		curl_setopt($ch, CURLOPT_HTTPHEADER, array(
			'Accept: application/vnd.twitchtv.v5+json',
			'Client-ID: ls2awgx5gfg9m1q6iopdqb1b7d0y6a'
		));
		curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
		
		curl_setopt($ch, CURLOPT_URL,$url0);
		$result=curl_exec($ch);
		$array0=json_decode($result, true);

		$channel_id=$array0["data"][0]["id"];
		$url1="https://api.twitch.tv/kraken/streams/".$channel_id;
		
		curl_setopt($ch, CURLOPT_URL,$url1);
		$result=curl_exec($ch);
		$array1=json_decode($result, true);
		
		?>


<?php
		if ($array1["stream"]==NULL) {
			if( get_theme_mod('sst_offline_hide') != '') { ?><?php } else { ?>jQuery('.sst-main-wrapper, .sst-main-widget-wrapper').addClass('sst-main-wrapper-active');<?php } ?>
			// animations
			jQuery('.sst-status-text-offline').addClass('sst-current-status');
			setTimeout(function() {
				jQuery('.sst-status-text-offline').addClass('sst-current-status-active');
				jQuery('.sst-status-wrapper').addClass('sst-status-wrapper-active');
			}, 25);
		<?php
		} else {
		?>

It seems to work just as well and ultimately have the same effect or are there any disadvantages or unwanted side effects? I don’t hope so…