min.us api 保存图片到minus,并且获取图片

 

 

<?php
$output ='';
$url = "http://min.us/api/GetItems/xxXXXXX";
$json = file_get_contents($url); 
$json_a=json_decode($json, true);

foreach($json_a[ITEMS_GALLERY] as $item){
$output .= '<img src="'. $item .'" width="200" alt="" /><br />';
}

echo $output;
?>

 

 

xxXXXXX = gallery id

 

 

 

来源:http://modxcms.com/forums/index.php/topic,60590.0.html

官网:http://min.us/

API: http://min.us/pages/api

 

 

 

 

 

 

 

 

你可能感兴趣的:(html,PHP,json)