Connectors / Service / Udemy

Artisan IMG > Udemy (udemy)

Udemy

Udemy is an online learning platform where students of all ages can learn new skills.

Overview

Udemy is an online learning platform which gives a consumer-first on-demand learning solution. Udemy is a leading global marketplace for teaching and learning, connecting millions of students to the skills they need to succeed.

PLEASE NOTE: This is not the same as the Udemy for Business connector. If you are not using a standard Udemy account with this connector your workflows will not work. Please make sure you are using the correct connector before continuing.

API INFO: The Base URL used for the Udemy connector is https://www.udemy.com/api-2.0. More information can be found on their main API documentation (v2.0) site.

NEED A TRIGGER?: Remember that as a user you can always create your own service trigger should you require one. Check out the Webhook Trigger documentation page for more details.

Example Usage

TRAY POTENTIAL: Tray.io is extremely flexible. By design there is no fixed way of working with it - you can pull whatever data you need from other services and work with it using our core and helper connectors. This demo which follows shows only one possible way of working with Tray.io and the Udemy connector. Once you've finished working through this example please see our Introduction to working with data and jsonpaths page and Data Guide for more details.

Below is an example of a way in which you could potentially use the Udemy connector, to list the courses available on the Udemy platform and return course specific details about each one.

The steps will be as follows:

  1. Setup using a manual trigger and list the courses available on Udemy.

  2. Add a Loop connector to iterate through all of the courses found.

  3. Get the course details for each course found.

Your completed workflow should look similar to this:

udemy-complete-wf

1 - Setup Trigger & list courses

With your trigger in place (be it Manual, Scheduled, Callable etc) add a Udemy connector. Set the operation to 'List courses'.

udemy-step-1

Here we only use the term 'IT' when asking the API to return our potential list of courses. However in a real use case scenario it is highly recommended that you add as many parameters as possible.

As there are literally thousands of courses available on Udemy you will need to do this in order to get back the most relevant results. As you can see from the properties panel, there are numerous options to help you filter down your results.

Feel free to re-name your steps as you go along to make things clearer for yourself and other users. The operation names themselves often suffice.

2 - Add a Loop connector

Next, search for the Loop connector within your connector panel, and drag it into your workflow as your next step. Set your operation to 'Boolean condition'.

The Loop connector allows you to iterate through a list of results. In this example, we will use it to iterate through the data found within the previous Udemy connector step.

In order to specify the list you want to loop through, start by using the list mapping icon (found next to the list input field, within the properties panel) to generate the connector-snake.

While hovering over the 'List courses' step (with the tail end of the connector-snake), select results from the list of output properties displayed. This will auto-populate a jsonpath within your list input field, and update the type selector to jsonpath.

For more clarification on the pathways you have available, open the Debug panel to view your step's Input and Output.

JSONPATHS: For more information on what jsonpaths are and how to use jsonpaths with Tray.io, please see our Intro page and Data Guide for more details.

CONNECTOR-SNAKE: The simplest and easiest way to generate your jsonpaths is to use our feature called the Connector-snake. Please see the main page for more details.

This step will iterate through each course found.

3 - Lorem Ipsum

The last step is to drag a Udemy connector inside the Loop connector step itself. Set the operation to 'Get course'. As you can see, the 'Course ID' field is required.

Set this using the same method as mentioned above only this time use the results from the 'Loop list' step to help you automatically generate the ID field for each course.

udemy-step-3

Now when your workflow runs, it will gather all the courses available that fit your parameters and loop through that list. The details for each course are then gathered as seen in the Output panel.

BEST PRACTICES: Whenever you do decide to create your own workflow, please make sure you take a look at our managing data best practices guide.

All Operations

Latest version:

1.0

List curriculum items

Retrieve a list of curriculum items for a course.

Get course

Retrieve a courses details

List courses

List and filter courses found on Udemy

List course reviews

List reviews given for a given course