gpt4 book ai didi

android - 如何从 News API 获取完整的新闻内容

转载 作者:行者123 更新时间:2023-12-03 13:45:03 25 4
gpt4 key购买 nike

关闭。这个问题需要debugging details .它目前不接受答案。












编辑问题以包含 desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem .这将帮助其他人回答问题。


3年前关闭。







Improve this question




enter image description here This is how I parse the JSON **strong text**

我正在使用谷歌新闻 API 来获取我的新闻应用程序(Android)的新闻。但问题是,它只提供了新闻的简短描述。有没有办法获得完整的新闻内容。的屏幕截图

  • 解析 JSON
  • 是我如何设置 onItem clicklistner 在点击新闻项目时访问网站。

  • 但我想在我的应用程序中获取完整的新闻内容。有没有办法做到这一点?

    enter image description here

    最佳答案

    有一种方法可以做到这一点,它只是包含在付费版本中。在 NewsAPI 上它说
    文章的未格式化内容(如果有)。对于开发者计划用户,这将被截断为 260 个字符。
    Evidence

    这是在哪里说的?在页面底部的“内容”下:https://newsapi.org/docs/endpoints/top-headlines

    我也一直在尝试开发一个新闻应用程序。

    关于android - 如何从 News API 获取完整的新闻内容,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51984209/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com