Forum Discussion

DEV_CTifer's avatar
16 years ago

Announcement using API

Is it possible to get the announcement that's set under the Communication | Announcements section of the Community Admin using the Rest API?

 

I did a search of all rest api docs and the term 'announc' was not found in any of them.

 

Thanks,

 

Chris

5 Replies

  • JakeR's avatar
    JakeR
    Khoros Oracle
    16 years ago

    Unfortunately, that is not possible.  The only information that you can cull from the Admin panel are metrics, node titles, node short titles, node descriptions, and settings.

  • DEV_CTifer's avatar
    DEV_CTifer
    Guide
    16 years ago

    I was re-reading this again because I got another request for this same feature and I want to make sure you didn't simply misunderstand my question.

     

    Your response makes it look like I'm trying to get info out of the Admin panel. I was originally just stating that we set this in the admin panel, but it actually displays to the users who come to our forum. A poll is a good example. We set it up in the Admin panel, but it displays to users and we can still grab it using the Rest API.

     

    It's the Announcement that I'm asking about.

     

    If that's not available to us, that's ok. I just want to make sure you didn't misunderstand what I was asking for...

  • JakeR's avatar
    JakeR
    Khoros Oracle
    16 years ago

    Its good that you checked, because you are right, I was replying to the question of whether or not you could control the content (which is an action that is taken via the Admin console) from the API.

     

    After looking through the calls that we have available in our API, it does not seem like you can grab the Announcements content.  I'm actually surprised a bit by this myself and think that this would be a useful addition to our REST APi.  I would like to suggest that you submit it as an "Idea" in our Ideas section.  You'll certainly have my vote. :)

  • SuzieH's avatar
    SuzieH
    Khoros Alumni (Retired)
    10 years ago

    You can do this actually using the settings/name/[name] call in Community API v1.

     

    For announcements, pass: layout.announcements

    For a welcome mssage, pass: layout.module_welcome

     

     

    For a category...

    http://community_url/restapi/vc/categories/id/category_id/settings/name/layout.announcements

     

    For the community...

    http://community_url/restapi/vc/settings/name/layout.module_welcome