Funcion php para saber numero susciptores de youtube
Esta es una función php para saber numero susciptores de youtube, en el siguiente ejemplo podemos ver como esta estructurada:
<?php function GetSubscriberCountYoutube($user){ $xmlData = file_get_contents('http://gdata.youtube.com/feeds/api/users/' . strtolower($user)); $xmlData = str_replace('yt:', 'yt', $xmlData); $xml = new SimpleXMLElement($xmlData); return $xml->ytstatistics['subscriberCount']; } echo GetSubscriberCountYoutube('DrossRotzank'); ?>esto imprime el numero de suscriptores que tiene DrossRotzank es este momento
10
Puntos
Puntos
1124
Visitas
Visitas
3
Resp
Resp
Por zerodarck hace 114 meses
Experto
Respuesta #1
0
Puntos
Puntos
Por donjesco hace 114 meses
Principiante