Hello
Is there a way to use the Valence API to "feed" the local student portal with news and events. We have gone through iterations to try to provide the appropriate permissions for them to get the data needed, but it appears the data is just not available. It is the course 'groups' restriction data that is missing. That is, a prof has used the groups to restrict who has access to certain course activities, or even events. However, we cannot seem to get that info through the API, so we cannot deliver to a particular student using the portal the correct Brightspace news and events for him/her.
Thank you
Sean
University of Waterloo
GET /d2l/api/lp/1.3/feed/
Response:
[{"Resource":{"Id":37,"IsHidden":false,"Attachments":[],"Title":"News for Group 1","Body":{"Text":"This News Post should only go to Group 1.","Html":"<p>This News Post should only go to Group 1.</p>"},"StartDate":"2014-09-25T13:07:00.000Z","EndDate":null,"IsGlobal":false,"IsPublished":true,"ShowOnlyInCourseOfferings":false},"Type":"News","Metadata":{"Identifier":"37","Title":"News for Group 1","Summary":{"Text":"This News Post should only go to Group 1.","Html":"<p>This News Post should only go to Group 1.</p>"},"Date":"2014-09-25T13:08:58.190Z","ApiViewUrl":"/d2l/6689/news/37","WebViewUrl":"/d2l/m/le/news/6689/details/37"}}]
So from a data Pull perspective, the built in mechanisms restrict the data as necessary.
Can you explain a little bit more about your scenario? How would you plan to feed the data to the portal - as a batch process via a service account? How would you plan to pare down the data to show only the info each student is supposed to have access to? Would a pull via the student's user context serve your need?
This call retrieves and aggregates a list of user messages gathered fromvarious sources in the back-end service. The original sources for thosemessages determine when a user event message gets made available foraggregation, and when the events expire from the pool available to this APIcall.Note that, unlike many Learning Framework APIs, there is currently no directfunctional equivalent for this API call in the web UI.`since` and `until`You can use these query parameters to time-box the list of thingsreturned in the feed list with this call.If you *do not provide* a `since` value, this call returns onlya list of "recent" feed items: those with a publication time sometimewithin the twenty-four hours preceding the time when the back-endservice handles your call.If you provide a `since` value, and *do not provide* an `until` value,this call returns all the feed items from your provided `since` time upuntil the time when the back-end service handles your call.If you provide a `since` value, and *do* provide an `until` value, thiscall returns all the feed items between your two provided timeparameters. Note that, if your `since` parameter is more recent thanyour `until` parameter, this action returns success and an empty feedlist.