[insert_php]

echo ‘‘;
$response = wp_remote_get(‘http://greenmetric.ui.ac.id/backend/services/listUniversity’ );
try {
$json = json_decode( $response[‘body’] );

} catch ( Exception $ex ) {
$json = null;
}
$x=1;

if($value->status = “1”){$status = “Listed”;}else{$status = “Not Listed”;}
echo ”

“;

foreach($json as $value){
$web = $value->web;
$http = strstr($web,’http’);
if($web==$http){
$web=$web;
}else{
$web=’http://’.$web;
}
echo ”

“;
}
echo ”

No University Country Website Status
“.$x++.” “.$value->full_name.” “.$web.” “.$status.”

“;

[/insert_php]