Artisan IMG > Udemy (udemy) (02c15d131811301c7b2d6d2ebad0f8c0)
Artisan IMG > Udemy (udemy) (02c15d131811301c7b2d6d2ebad0f8c0)

Udemy
1.0

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

Overview
Copy

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
Copy

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:

1 - Setup Trigger & list courses
Copy

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

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
Copy

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 pages on Basic data concepts and Mapping data between steps

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
Copy

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.

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, be sure to check out some of our key articles such as: