json Twitter帖子示例回复

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了json Twitter帖子示例回复相关的知识,希望对你有一定的参考价值。

{
  "created_at": "Tue May 22 20:20:10 +0000 2018",
  "id": 999022126043672600,
  "id_str": "999022126043672578",
  "full_text": "Native Video Post https://t.co/QgO2MwUuJc",
  "truncated": false,
  "display_text_range": [
    0,
    17
  ],
  "entities": {
    "hashtags": [],
    "symbols": [],
    "user_mentions": [],
    "urls": [],
    "media": [
      {
        "id": 999022073312821200,
        "id_str": "999022073312821248",
        "indices": [
          18,
          41
        ],
        "media_url": "http://pbs.twimg.com/ext_tw_video_thumb/999022073312821248/pu/img/P6w5m5KfrN9Eefwr.jpg",
        "media_url_https": "https://pbs.twimg.com/ext_tw_video_thumb/999022073312821248/pu/img/P6w5m5KfrN9Eefwr.jpg",
        "url": "https://t.co/QgO2MwUuJc",
        "display_url": "pic.twitter.com/QgO2MwUuJc",
        "expanded_url": "https://twitter.com/BeastieMcTest/status/999022126043672578/video/1",
        "type": "photo",
        "sizes": {
          "thumb": {
            "w": 150,
            "h": 150,
            "resize": "crop"
          },
          "medium": {
            "w": 960,
            "h": 540,
            "resize": "fit"
          },
          "small": {
            "w": 680,
            "h": 383,
            "resize": "fit"
          },
          "large": {
            "w": 960,
            "h": 540,
            "resize": "fit"
          }
        }
      }
    ]
  },
  "extended_entities": {
    "media": [
      {
        "id": 999022073312821200,
        "id_str": "999022073312821248",
        "indices": [
          18,
          41
        ],
        "media_url": "http://pbs.twimg.com/ext_tw_video_thumb/999022073312821248/pu/img/P6w5m5KfrN9Eefwr.jpg",
        "media_url_https": "https://pbs.twimg.com/ext_tw_video_thumb/999022073312821248/pu/img/P6w5m5KfrN9Eefwr.jpg",
        "url": "https://t.co/QgO2MwUuJc",
        "display_url": "pic.twitter.com/QgO2MwUuJc",
        "expanded_url": "https://twitter.com/BeastieMcTest/status/999022126043672578/video/1",
        "type": "video",
        "sizes": {
          "thumb": {
            "w": 150,
            "h": 150,
            "resize": "crop"
          },
          "medium": {
            "w": 960,
            "h": 540,
            "resize": "fit"
          },
          "small": {
            "w": 680,
            "h": 383,
            "resize": "fit"
          },
          "large": {
            "w": 960,
            "h": 540,
            "resize": "fit"
          }
        },
        "video_info": {
          "aspect_ratio": [
            16,
            9
          ],
          "duration_millis": 23507,
          "variants": [
            {
              "bitrate": 832000,
              "content_type": "video/mp4",
              "url": "https://video.twimg.com/ext_tw_video/999022073312821248/pu/vid/640x360/hb_6LGfFM2RGAG00.mp4?tag=3"
            },
            {
              "content_type": "application/x-mpegURL",
              "url": "https://video.twimg.com/ext_tw_video/999022073312821248/pu/pl/XpSPTPO3TyLFd2qx.m3u8?tag=3"
            },
            {
              "bitrate": 256000,
              "content_type": "video/mp4",
              "url": "https://video.twimg.com/ext_tw_video/999022073312821248/pu/vid/320x180/4CN7E_g5ou8ES3JC.mp4?tag=3"
            }
          ]
        },
        "ext_alt_text": null,
        "additional_media_info": {
          "monetizable": false
        }
      }
    ]
  },
  "source": "<a href=\"http://twitter.com\" rel=\"nofollow\">Twitter Web Client</a>",
  "in_reply_to_status_id": null,
  "in_reply_to_status_id_str": null,
  "in_reply_to_user_id": null,
  "in_reply_to_user_id_str": null,
  "in_reply_to_screen_name": null,
  "geo": null,
  "coordinates": null,
  "place": null,
  "contributors": null,
  "is_quote_status": false,
  "retweet_count": 0,
  "favorite_count": 0,
  "favorited": false,
  "retweeted": false,
  "possibly_sensitive": false,
  "possibly_sensitive_appealable": false,
  "lang": "en"
}
{
  "created_at": "Tue May 22 19:08:21 +0000 2018",
  "id": 999004052225654800,
  "id_str": "999004052225654784",
  "text": "Tweety McTest https://t.co/zijSxrKhcD",
  "truncated": false,
  "entities": {
    "hashtags": [],
    "symbols": [],
    "user_mentions": [],
    "urls": [
      {
        "url": "https://t.co/zijSxrKhcD",
        "expanded_url": "https://www.wired.com/story/westworld-recap-season-2-episode-5/",
        "display_url": "wired.com/story/westworl…",
        "indices": [
          14,
          37
        ]
      }
    ]
  },
  "source": "<a href=\"http://coschedule.com\" rel=\"nofollow\">CoSchedule</a>",
  "in_reply_to_status_id": null,
  "in_reply_to_status_id_str": null,
  "in_reply_to_user_id": null,
  "in_reply_to_user_id_str": null,
  "in_reply_to_screen_name": null,
  "geo": null,
  "coordinates": null,
  "place": null,
  "contributors": null,
  "is_quote_status": false,
  "retweet_count": 0,
  "favorite_count": 0,
  "favorited": false,
  "retweeted": false,
  "possibly_sensitive": false,
  "possibly_sensitive_appealable": false,
  "lang": "en"
}
{
  "created_at": "Tue May 22 19:58:13 +0000 2018",
  "id": 999016602942214100,
  "id_str": "999016602942214144",
  "full_text": "Four Images (Native Post) https://t.co/CQSsUj4vgC",
  "truncated": false,
  "display_text_range": [
    0,
    25
  ],
  "entities": {
    "hashtags": [],
    "symbols": [],
    "user_mentions": [],
    "urls": [],
    "media": [
      {
        "id": 999016433014136800,
        "id_str": "999016433014136832",
        "indices": [
          26,
          49
        ],
        "media_url": "http://pbs.twimg.com/media/Dd04Jx6V4AA5tur.jpg",
        "media_url_https": "https://pbs.twimg.com/media/Dd04Jx6V4AA5tur.jpg",
        "url": "https://t.co/CQSsUj4vgC",
        "display_url": "pic.twitter.com/CQSsUj4vgC",
        "expanded_url": "https://twitter.com/BeastieMcTest/status/999016602942214144/photo/1",
        "type": "photo",
        "sizes": {
          "thumb": {
            "w": 150,
            "h": 150,
            "resize": "crop"
          },
          "large": {
            "w": 960,
            "h": 934,
            "resize": "fit"
          },
          "medium": {
            "w": 960,
            "h": 934,
            "resize": "fit"
          },
          "small": {
            "w": 680,
            "h": 662,
            "resize": "fit"
          }
        }
      }
    ]
  },
  "extended_entities": {
    "media": [
      {
        "id": 999016433014136800,
        "id_str": "999016433014136832",
        "indices": [
          26,
          49
        ],
        "media_url": "http://pbs.twimg.com/media/Dd04Jx6V4AA5tur.jpg",
        "media_url_https": "https://pbs.twimg.com/media/Dd04Jx6V4AA5tur.jpg",
        "url": "https://t.co/CQSsUj4vgC",
        "display_url": "pic.twitter.com/CQSsUj4vgC",
        "expanded_url": "https://twitter.com/BeastieMcTest/status/999016602942214144/photo/1",
        "type": "photo",
        "sizes": {
          "thumb": {
            "w": 150,
            "h": 150,
            "resize": "crop"
          },
          "large": {
            "w": 960,
            "h": 934,
            "resize": "fit"
          },
          "medium": {
            "w": 960,
            "h": 934,
            "resize": "fit"
          },
          "small": {
            "w": 680,
            "h": 662,
            "resize": "fit"
          }
        },
        "ext_alt_text": null
      },
      {
        "id": 999016493231697900,
        "id_str": "999016493231697920",
        "indices": [
          26,
          49
        ],
        "media_url": "http://pbs.twimg.com/media/Dd04NSPU8AAHe5S.jpg",
        "media_url_https": "https://pbs.twimg.com/media/Dd04NSPU8AAHe5S.jpg",
        "url": "https://t.co/CQSsUj4vgC",
        "display_url": "pic.twitter.com/CQSsUj4vgC",
        "expanded_url": "https://twitter.com/BeastieMcTest/status/999016602942214144/photo/1",
        "type": "photo",
        "sizes": {
          "large": {
            "w": 958,
            "h": 960,
            "resize": "fit"
          },
          "thumb": {
            "w": 150,
            "h": 150,
            "resize": "crop"
          },
          "small": {
            "w": 679,
            "h": 680,
            "resize": "fit"
          },
          "medium": {
            "w": 958,
            "h": 960,
            "resize": "fit"
          }
        },
        "ext_alt_text": null
      },
      {
        "id": 999016510541606900,
        "id_str": "999016510541606912",
        "indices": [
          26,
          49
        ],
        "media_url": "http://pbs.twimg.com/media/Dd04OSuVMAAbMYt.jpg",
        "media_url_https": "https://pbs.twimg.com/media/Dd04OSuVMAAbMYt.jpg",
        "url": "https://t.co/CQSsUj4vgC",
        "display_url": "pic.twitter.com/CQSsUj4vgC",
        "expanded_url": "https://twitter.com/BeastieMcTest/status/999016602942214144/photo/1",
        "type": "photo",
        "sizes": {
          "thumb": {
            "w": 150,
            "h": 150,
            "resize": "crop"
          },
          "small": {
            "w": 480,
            "h": 621,
            "resize": "fit"
          },
          "large": {
            "w": 480,
            "h": 621,
            "resize": "fit"
          },
          "medium": {
            "w": 480,
            "h": 621,
            "resize": "fit"
          }
        },
        "ext_alt_text": null
      },
      {
        "id": 999016536550469600,
        "id_str": "999016536550469632",
        "indices": [
          26,
          49
        ],
        "media_url": "http://pbs.twimg.com/media/Dd04PznU8AAc5uO.jpg",
        "media_url_https": "https://pbs.twimg.com/media/Dd04PznU8AAc5uO.jpg",
        "url": "https://t.co/CQSsUj4vgC",
        "display_url": "pic.twitter.com/CQSsUj4vgC",
        "expanded_url": "https://twitter.com/BeastieMcTest/status/999016602942214144/photo/1",
        "type": "photo",
        "sizes": {
          "medium": {
            "w": 300,
            "h": 302,
            "resize": "fit"
          },
          "small": {
            "w": 300,
            "h": 302,
            "resize": "fit"
          },
          "thumb": {
            "w": 150,
            "h": 150,
            "resize": "crop"
          },
          "large": {
            "w": 300,
            "h": 302,
            "resize": "fit"
          }
        },
        "ext_alt_text": null
      }
    ]
  },
  "source": "<a href=\"http://twitter.com\" rel=\"nofollow\">Twitter Web Client</a>",
  "in_reply_to_status_id": null,
  "in_reply_to_status_id_str": null,
  "in_reply_to_user_id": null,
  "in_reply_to_user_id_str": null,
  "in_reply_to_screen_name": null,
  "geo": null,
  "coordinates": null,
  "place": null,
  "contributors": null,
  "is_quote_status": false,
  "retweet_count": 0,
  "favorite_count": 0,
  "favorited": false,
  "retweeted": false,
  "possibly_sensitive": false,
  "possibly_sensitive_appealable": false,
  "lang": "en"
}

以上是关于json Twitter帖子示例回复的主要内容,如果未能解决你的问题,请参考以下文章

Twitter 搜索标签示例 API v1.1

如何在搜索 api 中排除转发和回复?

json 链接帖子的Facebook响应对象(示例)

JSON创建方法

如何从 developer.twitter.com 运行示例

json Google Conversation API v2上的操作 - 示例回复