Forum Discussion

Gursimrat's avatar
Gursimrat
Leader
11 years ago

Creating Threads Based off of a Script from an RSS Feed

We’re wondering if there is a way to take an RSS feed and utilize it to create new forum threads in Lithium as new content in to the RSS feed arrives.

 

For example, we’d like to use the content here http://feeds.feedburner.com/xyz to see about creating threads in a specific board which would automatically use the title as the title of the thread. Then take the content of the post as the body of the post in the thread.

 

Please let us know if anything like this exist.

 

Thanks

Gursimrat

  • You could do this using the REST API - you'd need to create an application that consumes the RSS feed, and creates threads via the appropriate REST API calls.

     

    You'd need to think about who the author should be. The simplest solution is to have a dedicated author for all RSS content, but you could do something more complex (like mapping a property of the RSS feed to a login name).

     

    You'll also need to consider how to avoid duplication - you'll need a way of identifying which RSS feed items you've already turned into threads (assuming you are doing this on a regular basis).

    • Gursimrat's avatar
      Gursimrat
      Leader

      I am getting an error while hitting the rest api, I have Granted the "Make REST API calls with modify access" permission

       

       

      <error code="504">
      <message>
      Method 'get' is not supported off of node 'message.reply'.
      </message>
      </error>

      • nathan's avatar
        nathan
        Executive

        From the error it looks like you're trying to create the thread using a HTTP GET instead of a HTTP POST (the difference is in how you pass parameters, i.e. thread title etc.).