如何从API中检索用户的中级故事? [英] How to retrieve Medium stories for a user from the API?

查看:63
本文介绍了如何从API中检索用户的中级故事?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过显示带有帖子图像的卡片以及指向原始Medium出版物的链接,来将Medium博客集成到应用中.

I'm trying to integrate Medium blogging into an app by showing some cards with posts images and links to the original Medium publication.

从Medium API文档中,我可以看到如何检索出版物和创建帖子,但是没有提到检索帖子.当前可以使用Medium的API为用户检索帖子/故事吗?

From Medium API docs I can see how to retrieve publications and create posts, but it doesn't mention retrieving posts. Is retrieving posts/stories for a user currently possible using the Medium's API?

推荐答案

该API是只写的,并不用于检索帖子(中级人员告诉我)

The API is write-only and is not intended to retrieve posts (Medium staff told me)

您可以像这样简单地使用RSS feed:

You can simply use the RSS feed as such:

https://medium.com/feed/@your_profile

您可以简单地通过GET获取RSS feed,然后,如果您需要JSON格式的RSS feed,只需使用NPM模块,例如 rss-to-json ,您很好.

You can simply get the RSS feed via GET, then if you need it in JSON format just use a NPM module like rss-to-json and you're good to go.

这篇关于如何从API中检索用户的中级故事?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆