Skip to main content

Python Client wrapper for Thinkific API

Project description

Thinkific Python SDK

PyPI version

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

  1. Import the library
from thinkific import Thinkific 
  1. 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

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

thinkific-0.1.1.tar.gz (7.8 kB view details)

Uploaded Source

File details

Details for the file thinkific-0.1.1.tar.gz.

File metadata

  • Download URL: thinkific-0.1.1.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for thinkific-0.1.1.tar.gz
Algorithm Hash digest
SHA256 4b64260c8e0a3a819c3325cc6c7695f63f91bb27046b6c8fce915d1cb10a2a4f
MD5 214a27e820c53589b0fac5799422fc08
BLAKE2b-256 a46aa1c6dcdb97cd8dcb206f8ae549379e2fb698a3769317adcf088684d287e3

See more details on using hashes here.

Supported by

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