diff --git a/API_Twitter/index.php b/API_Twitter/index.php index 2a01c952d55d7bdbc471444481c64d17758484c0..dc9bd223f0bd59c4608196160e4988afccf34f34 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 44d24f4952754cc26ff493b187706dee2234dfa4..893efd4eff6b7540a8986494ba642945fe429597 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 Binary files a/API_Twitter/twitter-api-php/.DS_Store and b/API_Twitter/twitter-api-php/.DS_Store differ diff --git a/API_Twitter/userInfosFunctions.php b/API_Twitter/userInfosFunctions.php index 72db8925fcba9efdf9a7f2e458c76a4a41ee6c5f..320b4d1e484263c3c6831f28d17d333c2d236260 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) { } -