Forum Discussion

Gursimrat's avatar
Gursimrat
Leader
12 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

7 Replies

  • 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
    12 years ago

    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
    12 years ago

    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.).

  • Gursimrat's avatar
    Gursimrat
    Leader
    12 years ago

    Can you provide the API to post a thread to a board. As a test, I am using /restapi/vc/messages/id/5139/reply whichi is ot post a reply on a thread. I believe posting a thread to a board should work the same way.

  • zehrabiz's avatar
    zehrabiz
    Leader
    11 years ago

    Hi, 

     

    We also need something similar, but we do not have a RSS feed to base each automatic new thread. Instead, we were looking if there is a way to automatically create posts under a specific area, by following a simple action (eg: user sending an email to a board email address to automatically create a post under it) Any idea if there is a simpler way than writing a RESTcall?

     

    Thanks, Zehra