From 4d918a74f12c391183b8b1c06739d1964baf51a5 Mon Sep 17 00:00:00 2001 From: Kevin XU <kevin-xu@hotmail.fr> Date: Tue, 23 Oct 2018 23:29:12 +0200 Subject: [PATCH] Update --- API_Twitter/userInfosFunctions.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/API_Twitter/userInfosFunctions.php b/API_Twitter/userInfosFunctions.php index 93ff150..e0982c4 100644 --- a/API_Twitter/userInfosFunctions.php +++ b/API_Twitter/userInfosFunctions.php @@ -6,6 +6,11 @@ function getUserNbFollowers($id) { return $response->followers_count; } +function getUserNbFollowers($id) { + $response = getUserById($id); + return $response->followers_count; +} + function getUserProfilPictureURL($id) { $response = getUserById($id); return $response->profile_image_url; @@ -18,9 +23,9 @@ $id = 813286; <pre> - Nombre d'abonnées + Nombre d'abonnées : <?php - print_r(getUserNbFollowers($id)); + echo getUserNbFollowers($id); ?> </pre> -- GitLab