There are some API that need to authenticate, which I cannot know how to do it, I tried to search all the internet for the guide but seem unlucky.
So can anyone give me advice how to do it ?
Beside, I’ve another question, I want to know which API I can use to enroll specific user to a course ? It would be great if someone can help me with that.
The authentication methods vary for each API. some are working with a session authentication (a user is authenticated after submitting username& password from login page) and some are working with JWT or Bear authentication (calling an API initially to get a token).
I’m not sure but this API may be what you’re looking for
I use API from 3rd party system, so there is no login form. If there is JWT token, there must be an API to login with account and get the token, which I dont see it in the document.
I believe your API only GET all course of user, not to enroll user to course. If there is API like that, I think it must be POST or PUT method, not GET.
you are welcome,
actually, that file is written for edx.org. but you are using the same application and there are many concepts and definitions. so I found every single line of that document useful. just replace edx.org and its subdomains with the right URL for your instance. if you are on a simple installation, all the URLs are the same as your LMS address.