Skip to main content

Simple integrate of API udemy.com with python

Project description

Pyudemy

Python package Github Issues MIT licensed

Simple integrate of API udemy.com with python

Quick start

$ pip install pyudemy

Authentication

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.

Usage

With your key in hand, it's time to authenticate, so run:

>>> from pyudemy import Udemy

>>> udemy = UdemyAffiliate(<CLIENT_ID>, <CLIENT_SECRET>)

Courses

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, ...)

Course detail

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>)

Public curriculum

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)

Course reviews

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)

Controlling return Data

You can now control the return data from the API using a list of dictionaries passed under a parameter called "fields". image

For more info check Use of Fields and Field Lists at https://www.udemy.com/developers/affiliate/

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyudemy-1.1.1.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

pyudemy-1.1.1-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file pyudemy-1.1.1.tar.gz.

File metadata

  • Download URL: pyudemy-1.1.1.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.12.8 Linux/6.5.0-1025-azure

File hashes

Hashes for pyudemy-1.1.1.tar.gz
Algorithm Hash digest
SHA256 8210a9bec4225c8f11671506da3f70e3aacb26aa7d0afe2f6786ac2ddc921271
MD5 edc003b1af01f3b46c8dba93e78b32b4
BLAKE2b-256 4da602c5bcb2b715297621433ad0636e69acd2556a9b8b598b961492f2b7f5e6

See more details on using hashes here.

File details

Details for the file pyudemy-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: pyudemy-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.12.8 Linux/6.5.0-1025-azure

File hashes

Hashes for pyudemy-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d841c61f05f6ed414a1bd8aa792be17c4f41a1a237106fe721403161fa12228b
MD5 0c55b5bb2d2ca44ed4f0b47bfac90a29
BLAKE2b-256 2a13cbcfdce8e0d93a35198e11c6fbccfb259263b399d51c57813873cce07319

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page