From Custom Blogs to Medium: Our Transition (Part 1)
Tags: qlik, api, rss, media
Published: 2018-08-28 15:03:29

---
title: From Custom Blogs to Medium: Our Transition (Part 1)
published: true
tags: qlik,api,rss,media
canonical_url: https://branch-blog.qlik.com/from-custom-blogs-to-medium-our-transition-part-1-1d039d04b82f
---

![](https://cdn-images-1.medium.com/max/1024/1*IDHG41ZqotgLUpwMj6gqpA.jpeg)

When I first signed on to the Dev Relations team at Qlik and began working with our main site [Qlik Branch](http://branch.qlik.com) we were working with our own custom built blogs section. While this seemed easy enough for us to start with, there were a few problems with this.

- **Exposure:** Our blogs were only available in our site and required existing users or posting links in order for the world to know about them.
- **Third Party Tools:** In order to allow the ability to use formatting in our blogs, we needed to use a third party content editor. When I came in we were using [Summernote](http://summernote.org/), then we tried moving to markdown with [SimpleMDE](https://simplemde.com/). While these options were both fairly robust, any found bugs became an issue and customization was a pain.
- **Maintenance:** We were in charge of the storage of the blogs as well as the process for moderating them.

After much back and forth within the team and discussion with others, we decided that Medium would be the way to go. While this would solve the problems above we had one major hurdle that we needed to figure out.

While we were going use Medium to host our blogs (hereafter referred to as Mediums term “stories”) we still wanted to use the [Search](https://help.qlik.com/en-US/sense-developer/3.2/Subsystems/EngineAPI/Content/Classes/AppClass/App-class-SearchAssociations-method.htm) capabilities available in the [Qlik Engine API](https://help.qlik.com/en-US/sense-developer/3.0/Subsystems/EngineAPI/Content/introducing-engine-API.htm). This involved any time a story was published that we pull all the information (including the story’s content) so that the Engine could load it into our Sense App.

The first solution I searched for was using the Medium API. As a developer this seemed like the obvious solution, but I quickly ran into a big problem here. The Medium API itself is fairly limited and doesn’t allow you to either retrieve a list of stories for a publication or retrieve the information for an individual story. Without these abilities the API was pretty much a no go for me.

Now I needed to find any type of source that could list a publications stories. After tons of searching, the only solution I could find was good ole RSS. Each publication has an RSS feed of its stories, and when you set the “RSS Feed” setting to **Full** on a given publication you get all the content of the story as well. So I wrote a [quick script](https://github.com/Qlik-Branch/branch-resource-library/blob/1dbf848215506a0c6be4f02e2cb9fb8dd54d3a8d/feed-pull.js) that will ping the RSS feed every X minutes, compare each story in the feed with a quick checksum to see if there are any changes to the stories and clear out the ones that aren’t in the feed (in case stories were removed for some reason). Problem solved!!!!!

Actually, it wasn’t. More to come on that.

* * *