0

当我去:example.com/api/get_tag_posts/?dev=2&slug=ME3022&include=attachments

我懂了:

{
  status: "ok",
  count: 1,
  pages: 1,
  tag: {
  id: 17,
  slug: "me3022",
  title: "ME3022",
  description: "",
  post_count: 1
},
posts: [
 {
  id: 181,
  attachments: [
{
id: 397,
url: "http://example.com/files/2012/10/WebInstruction_TCH.pdf",
slug: "webinstruction_tch-3",
title: "Traditional Chinese",
description: "",
caption: "Traditional Chinese",
parent: 181,
mime_type: "application/pdf"
  },
{
id: 398,
url: "http://example.com/files/2012/10/WebInstruction_SCH.pdf",
slug: "webinstruction_sch-3",
title: "Simplified Chinese",
description: "",
caption: "Simplified Chinese",
parent: 181,
mime_type: "application/pdf"
},

我想展示的是一个特定的附件,而不是所有的附件。我怎样才能做到这一点?

4

1 回答 1

0

获取特定附件&include=attachments,id=51

于 2014-01-29T23:01:42.077 回答