Thinkific Python SDK
This is a Python SDK to interact with the Thinkific LMS API. The official documentation for the API can be found here.
Installation
pip install thinkific
Usage
Initialize
- Import the library
from thinkific import Thinkific
- Create an object with the Auth token and subdomain name
thinkific = Thinkific("<auth_token>","<subdomain>")
Endpoints
The following endpoints are currently supported:
- Bundles
- Chapters
- Contents
- Coupons
- Course reviews (course_reviews)
- Courses
- Enrollments
- Orders
- Products
- Promotions
- Users
- Webhooks
Each endpoint can be initialized in the following way:
users= thinkific.users
courses=thinkific.courses
Methods
The methods can be accessed as below
thinkific = Thinkific("<auth_token>","<subdomain>")
thinkific.courses.list()
thinkific.webhooks.list()
The python methods corresponding to each API contents will be listed below:
Bundles
| Content | Function |
|---|---|
| Retrieve A Bundle | retrieve_bundle() |
| Retrieve the Courses Within A Bundle | retrieve_courses_in_bundle() |
| Create an Enrollment in a Bundle of Courses | create_enrollment_in_bundle() |
| Get Enrollments in a Bundle | get_enrollments_in_bundle() |
| Update Enrollments in a Bundle | update_enrollments_in_bundle() |
Chapters
| Content | Function |
|---|---|
| Retrieve A Chapter | retrieve_chapter() |
| Retrieve the Contents of a Chapter | retrieve_contents_of_chapter() |
Contents
| Content | Function |
|---|---|
| Retrieve A Content | retrieve_content() |
Coupons
| Content | Function |
|---|---|
| Retrieve a list of Coupons | list() |
| Retrieve a Coupon | retrieve_coupon() |
| Create a Coupon | create_coupon() |
| Bulk Create Coupons | bulk_create_coupons() |
| Update a Coupon | update_coupon() |
| Delete a Coupon | delete_coupon() |
Course Reviews
| Content | Function |
|---|---|
| Retrieve a list of Reviews for a Course | list() |
| Create a Course Review | create_course_review() |
| Retrieve a Course Review | retrieve_course_review() |
Courses
| Content | Function |
|---|---|
| Retrieve a list of Courses | list() |
| Retrieve a Course | retrieve_course() |
| Retrieve the Chapters of a Course | retrieve_chapters() |
Enrollments
| Content | Function |
|---|---|
| Retrieve a list of Enrollments | list() |
| Retrieve an Enrollment | retrieve_enrollment() |
| Create an Enrollment | create_enrollment() |
| Update an Enrollment | update_enrollment() |
Orders
| Content | Function |
|---|---|
| Retrieve a list of Orders | list() |
| Retrieve an Order | retrieve_order() |
Products
| Content | Function |
|---|---|
| Retrieve a list of Products | list() |
| Retrieve a Product | retrieve_product() |
| Retrieve a list of Products related to another Product | retrieve_product_related() |
Promotions
| Content | Function |
|---|---|
| Retrieve a list of Promotions | list() |
| Retrieve a Promotion | retrieve_promotion() |
| Create a Promotion | create_promotion() |
| Update a Promotion | update_promotion() |
| Delete a Promotion | delete_promotion() |
| Find a Promotion by Coupon Code and Product | find_promotion_with_coupon_and_product() |
Users
| Content | Function |
|---|---|
| Retrieve a list of Users | list() |
| Retrieve a User | retrieve_user() |
| Create a User | create_user() |
| Update a User | update_user() |
| Delete a User | delete_user() |
Webhooks
| Content | Function |
|---|---|
| Retrieve a list of Webhooks | list() |
| Retrieve a Webhook | retrieve_webhook() |
| Create a User | create_webhook() |
| Update a Webhook | update_webhook() |
| Delete a Webhook | delete_webhook() |
For more details, please look at the Thinkific API Docs.
TODO:
- Add the remaining API endpoints
Metadata
Release files for thinkific 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| thinkific-0.1.1.tar.gz | 7.8 kB | Without provenance | Details for thinkific-0.1.1.tar.gz |
Release files / thinkific-0.1.1.tar.gz
| Download URL | thinkific-0.1.1.tar.gz |
|---|---|
| Size | 7.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4b64260c8e0a3a819c3325cc6c7695f63f91bb27046b6c8fce915d1cb10a2a4f
|
|
BLAKE2b-256 checksum How to use checksums |
a46aa1c6dcdb97cd8dcb206f8ae549379e2fb698a3769317adcf088684d287e3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3
|
Security for thinkific 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.