ThinkificAdminAPI
Thinkific's public API can be used to integrate your application with your Thinkific site.
Installation
This package can be installed by adding thinkific_admin_api
to your list of dependencies in mix.exs
:
def deps do
[{:thinkific_admin_api, "~> 0.1.0"}]
end
The docs can be found at Thinkific Admin API Hex Docs.
How to use it
Connection
- You can either use token based:
conn = ThinkificAdminAPI.Connection.new("basic-surf-academy", %{"Authorization" => "Bearer 1360ddc6-4029-47ec-a832-e5f1e60f8d98"})
- Either API Key authorization:
conn = ThinkificAdminAPI.Connection.new("basic-surf-academy", %{"X-Auth-API-Key" => "9eda19c55435829ef301b1979c96f96a"})
Fetching data example
In order to get a list of courses:
# In order to define conn, check the Connection section above
ThinkificAdminAPI.Api.Courses.get_courses(conn)