我正在尝试使用 Tumblrs API,当我访问 API 的 URL 时,我在下面得到这个
{
"meta": {
"status": 200
"msg": "OK",
},
"response": {
"blog": {
"title": "Ex-Sample",
"posts": 20,
"name": "example",
"url": "http://example.tumblr.com/",
"updated": 1327794725,
"description": "A sample document used to provide examples of the various [and <i>varying</i>] HTML tags Tumblr puts out. Quote, specifically, has a lot of variants.",
"ask": false
}
}
}
网址是http://api.tumblr.com/v2/blog/example.tumblr.com/info?api_key=(APIKEY )
我正在尝试使用上面的 URL 获取“帖子”编号。我将如何在 PHP 中执行此操作并仅将数字回显出来?