Home

Awesome

webex-meetings-api-examples

This repo provides a Postman collection that demonstrates the use of the Webex Meetings Rest API.

To excercise these API simply do the following

Import the collection

  1. Clone this repo or simply download the postman collection to your local disk.
  2. From within Postman , begin by clicking the "Import" button, and choosing the "Choose Files" button:

Postman Import

When imported succesfully you should see new collection called "Meetings RESTful API Examples" in postman.

Configure the Environment

This collection uses "collection level" variables, which simply means that you can specify an environment that is unique to you, directly from within the collection itself.

The environment variables are:

To edit the variables first click on the "three dots" associated with the collection and select edit

Edit Collection

Then click on the "Variables" tab and update the values in the "Current Value" column as you need to:

Set Variables

If you are familar with Postman's environments, its worth noting that you don't need to explicity set an environment to run these requests, since all the variables are set at the collection level. If you do have an active environment that sets any of the environment variables used by this collection, the active environment variables will take precedence.

Click the update button and you are ready to try the requests.

Excersise the requests

The collection consists of three folders that exercise the /meetings, the /meetingInvitess, and the /meetingPreferences API endpoints. Each folder is standalone, but the requests are meant to be run one after the other.

Each request has a name and usually a description about what the request demonstrates. If the description is not visible click on the "triangle" by the request name.

Example Request

The tabs below the request include a set of "pre request" scripts that are run before the API request is made, and a "tests" tab that runs scripts that validate the result after the request is made. In this example, the pre-request scripts will calculate the start and end time for a meeting "tommorow at noon". The tests scripts will validate the result.

Hit the big blue "Send" button to run the requests.

After sending the request scroll down to see the response. The "Test Results" section will provide information on which tests passed (or failed).

Response

Inspect the request and respone to better understand how the API works and move on to the next request in the folder.

The last request in each folder will run a pre-request script that will "clean up" the temporary environment variables that were set and used in the pre-request and test script.

Have fun!