Simple integrate of API udemy.com with python
$ pip install pyudemy
To make any calls to Udemy REST API, you will need to create an API client. API client consists of a bearer token, which is connected to a user account on Udemy.
If you want to create an API client, Sign up on udemy.com and go to API Clients page in your user profile. Once your API client request is approved, your newly created API client will be active and your bearer token will be visible on API Clients page.
With your key in hand, it's time to authenticate, so run:
>>> from pyudemy import Udemy
>>> udemy = UdemyAffiliate(<CLIENT_ID>, <CLIENT_SECRET>)
Returns list of courses.
To see the list of accepted parameters go to: https://www.udemy.com/developers/methods/get-courses-list/
>>> udemy.courses()
or
>>> udemy.courses(page=1, page_size=1, ...)
Returns course with specified id.
To see the list of accepted parameters go to: https://www.udemy.com/developers/methods/get-courses-detail/
>>> udemy.course_detail(<id>)
Returns list of curriculum items.
To see the list of accepted parameters go to: https://www.udemy.com/developers/methods/get-publiccurriculum-list/
>>> udemy.public_curriculum(<id>)
or
>>> udemy.public_curriculum(<id>, page=1, page_size=1)
Returns list of curriculum items.
To see the list of accepted parameters go to: https://www.udemy.com/developers/methods/get-coursereviews-list/
>>> udemy.course_reviews(<id>)
or
>>> udemy.course_reviews(<id>, page=1, page_size=1)
You can now control the return data from the API using a list of dictionaries passed under a parameter called "fields".
For more info check Use of Fields and Field Lists at https://www.udemy.com/developers/affiliate/