Forum Discussion

Jaime_Lee's avatar
6 years ago

API Requests

I need best practices on how to handle this request from one of my developers:

They wish to use the V2 API call to access private community messages

How do I do this?

I believe I have to create a new role in this private category.   So they can see this content and be able to pull the data?

In fact, I would not mind meeting with someone to give me a review on how they handle API requests in their organization.  I am completely out of my element and could use some tutoring in this area.  Thank You!

 

 

 

 

 

 

  • Jaime_Lee,

    There is no concern weather you are using V2 or V1 calls to access the messages from Private category. Its just a matter of how you are processing your request by using it in FreeMarker code via the rest and restadmin context objects.

    More documentation here.

    To Solution to your concern follow these steps:

    1. I recommend you to create a new role on your private category or board which ever is private.

    2. After that give new role permissions you want like view,read access to board, discussion.

    3. Assign that role to the users whom you want to show the messages from private area.

    4. In code, ask your dev team to process V2 Rest API requests using FreeMarker code via the rest context objects and don't use restadmin.