calling the API

Lisa.M.590
Lisa.M.590 Posts: 1 🌱
edited October 16 in Development

Hello

We are implementing a Dynamics365 (dataverse) CRM and would like to call the BS API to bring across our Courses and enrolments. we plan on using a power automate flow to call the API.

This is one of the ApIs we want to call.

GET /d2l/api/lp/(version)/orgstructure/(orgUnitId)/children/paged/ )

However, we are not sure how to fire up these API calls - and how can we establish an initial connection? how can we go about authenticating ourselves?

We have read the documentation here but don't really understand how this related to calling the API?

How to get started with OAuth 2.0 - Brightspace

What we would appreciate is some guidance on how to connect to the API using something like postman.

Many thanks, Lisa

Tagged:

Answers

  • Michel.M.597
    Michel.M.597 Posts: 4 🌱
    edited October 17

    Hi Lisa,

    https://github.com/Brightspace/Postman-Collections

    You can use this to figure out how to connect to the API using Postman. While it might look a bit convoluted at first, if you follow the steps it should become clear - especially for initial connection and authentication. Make sure you start with the "Start Here".

    While using this collection, I found a few mistakes but it should be good enough to get you started. Feel free to reach out directly if you need help. I am no API expert and I managed to get this running in a few hours (to update notification preferences).

    Kind regards,

    Mike