We'll be doing the second, meaning you need to create a new directory on your machine and place two files in there: aphql and rss.graphql. To create a new GraphQL API with StepZen, you can use the CLI to import a data source or use GraphQL SDL to configure a GraphQL schema. An RSS feed is very similar to a SOAP API, as both return a response in XML. With StepZen, you can create a GraphQL API for all your existing data sources, including REST or SOAP APIs. We'll be using StepZen to make it possible to connect to the Medium RSS feed using GraphQL. But in this article, we'll be using GraphQL instead! Connecting to an RSS feed This feed can be read through the browser, RSS feed readers, or an HTTP request. In this element, you can find the title, author, category, URL, and post content in HTML. The response is in XML, and the posts can be found in the item elements between the channel opening and closing tags. If you don't have a Medium account, you can open the following RSS feed in this browser: This feed contains all the blog posts I've posted to Medium and looks like this when you open it in your browser: The documentation for Medium RSS can be found here, which also includes information about getting RSS feeds for Medium publications or tags. Every Medium user has their RSS feed, which looks like this: contains information about the owner of the feed, the author in this case, and all the posts this author has posted to Medium. It's simple and fast, and it updates you whenever a new post is published on your favorite Medium publication. The RSS feed is the best way to read Medium. Let's explore the Medium RSS feed a bit closer. The RSS feed is a standard way for a website to keep its content in sync with readers' devices. It's an XML-based format that allows you to subscribe to a website's feed and receive updates whenever there are new posts or podcasts. What is an RSS feed exactly? RSS stands for Really Simple Syndication and is a format used to deliver frequently updated content, usually news headlines. You can find the complete code for this article in our Github examples repository, or watch the video walkthrough on our Youtube channel. In this article, we'll be taking the RSS feed from Medium and reading it with GraphQL. Many websites widely use it, and today it's becoming the primary way podcasts distribute content around different streaming platforms. RSS feeds have been around since the 90s as a popular way to get updates from a website.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |