From 9bbad0cec4a7b27a3026ec834ee2e0c2126e60b8 Mon Sep 17 00:00:00 2001 From: Kevin XU <kevin-xu@hotmail.fr> Date: Thu, 25 Oct 2018 10:17:33 +0200 Subject: [PATCH] bigger profile image --- API_Twitter/index.php | 2 +- API_Twitter/requestsFunctions.php | 4 ++++ API_Twitter/twitter-api-php/.DS_Store | Bin 6148 -> 6148 bytes API_Twitter/userInfosFunctions.php | 4 ++-- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/API_Twitter/index.php b/API_Twitter/index.php index 2a01c95..dc9bd22 100644 --- a/API_Twitter/index.php +++ b/API_Twitter/index.php @@ -25,7 +25,7 @@ require_once('requestsFunctions.php'); if (this.readyState == 4 && this.status == 200) {// 4 = request finished and response is ready, 200 = "OK" var tab = JSON.parse(this.responseText); - //document.getElementById("h1").innerHTML = tab; + document.getElementById("h1").innerHTML = tab; var options = ""; for(var i = 0; i < tab.length; i++) { diff --git a/API_Twitter/requestsFunctions.php b/API_Twitter/requestsFunctions.php index 44d24f4..893efd4 100644 --- a/API_Twitter/requestsFunctions.php +++ b/API_Twitter/requestsFunctions.php @@ -65,3 +65,7 @@ function searchUser($keyword) { return $response; } + + + + diff --git a/API_Twitter/twitter-api-php/.DS_Store b/API_Twitter/twitter-api-php/.DS_Store index ca5d0e6e71945129431efcf086d0e96e397046d8..22e2218499bb9879ce6d234b4d99d2c771e79903 100644 GIT binary patch delta 232 zcmZoMXfc=|#>B`mF;R?_gMop8V`8F+BohM!ure?(FfuR*Fr*YG=OpFl=S)moT@Mmu zVJKlpWhiDSfk}YW!v%BF4TF>Oa|=L%3=9R_3=9l#x!imgm!zEhB#>1M3=BH02M#!* z%BSF!FW}2SHoReDVm{ks0}+<Z+#K8-OpF{G6TdT0<`+?91^Gc?vZ09ZW)G1)%m9L^ BF+>0W delta 113 zcmZoMXfc=|#>AjHF;Uozk%57Mg`tEYm7$oSB&9exCn-Na2PDYAz`(=+0U$0T1A_nq xTz>OH#x%Cg8yFoJH?wo_b1*TeZeGavoq009h$1IQbplA^WD_3c%`qY?m;vzN7ODUM diff --git a/API_Twitter/userInfosFunctions.php b/API_Twitter/userInfosFunctions.php index 72db892..320b4d1 100644 --- a/API_Twitter/userInfosFunctions.php +++ b/API_Twitter/userInfosFunctions.php @@ -19,7 +19,8 @@ function getUserNbFollowers($id) { function getUserProfileImage($id) { $response = getUserById($id); - return $response->profile_image_url; + $url = $response->profile_image_url; + return substr_replace($url,"bigger.jpg",strlen($url)-10); } function getUserInfos($id) { @@ -33,4 +34,3 @@ function getUserInfos($id) { } - -- GitLab