Skip to content
Extraits de code Groupes Projets
Valider 790cb82a rédigé par Kevin XU's avatar Kevin XU
Parcourir les fichiers

Ajout Youtube : nombre de vidéos et nombre total views

parent 3982de2f
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
<?php <?php
require_once('../API_Twitter/userInfosFunctions.php'); require_once('../API_Twitter/userInfosFunctions.php');
require_once('../API_Twitter/tweetInfosFunctions.php');
require_once('../youtube-api/userInfos.php'); require_once('../youtube-api/userInfos.php');
require_once('../facto.php'); require_once('../facto.php');
session_start(); session_start();
...@@ -87,8 +88,17 @@ else { ...@@ -87,8 +88,17 @@ else {
?> ?>
</h5><br/> </h5><br/>
</div> </div>
<div> <br/> <h5></h5> </div> <div>
<div> <br/> <h5></h5></div> <?php
if ($socialNetwork === "Twitter") {
echo "Number of Tweets <br/> <h5>".number_format(getNbTweetsByScreenName(getUserScreenName($id)), 0, ".", " ");
}
elseif ($socialNetwork === "Youtube") {
echo "Number of videos <br/> <h5>".number_format(getChannelVideoCount($id), 0, ".", " ").'<br/> <h5></h5> </div>';
echo "<div>Number of total views <br/> <h5>".number_format(getChannelViewCount($id), 0, ".", " ");
}
?>
<br/> <h5></h5> </div>
</div> </div>
</div> </div>
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter