Create online courses and membership sites with Thinkific and feel confident that you've got the easiest technology and the best support in the industry.
Thinkific's API opens a treasure trove of possibilities for automating and enhancing the e-learning experience. It provides programmatic access to your Thinkific site, allowing you to manage courses, users, enrollments, and more. With Pipedream's serverless platform, you can connect Thinkific to a multitude of other applications, automate tasks, sync data across various services, and trigger workflows based on specific events, all without writing a line of server code.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
thinkific: {
type: "app",
app: "thinkific",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.thinkific.com/api/public/v1/courses`,
headers: {
"X-Auth-API-Key": `${this.thinkific.$auth.api_key}`,
"X-Auth-Subdomain": `${this.thinkific.$auth.subdomain}`,
"Content-Type": `application/json`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})