Introduction
In this group of labs we will be exploring how to use GraphQL to get data from the Webex Contact Center's search API.
Pre-requisites
-
You will need to have administrator access on the tenant from which you will be accessing data.
-
You will need the ORG ID of the tenant from which you will accessing data.
- You watched the introduction video so that you understand how to navigate the tools in the lab.
-
It is recommended to create a new profile in your browser to access the labs
-
While not required, it is a good idea to use a tenant which has had some recent traffic so that you have data to query
Lab Objective
- Get your Bearer token set as a global environment variable in Altair.
- Retrieve introspection information from the Search API
- Execute your first query
Get Authorization
- Hover over the tools menu and click Authorization
- You will see a screen popup and ask you for your credentials
- After providing your credentials you should see a modal popup with your Bearer token formatted as a header.
- Copy the full text, including the curly braces.
- Toggle the Guide tab closed by clicking on Guide in the top ribbon or click the flip button to move the Guide to the other side of the screen.
- Click No environment
- Click Environments...
- In the modal, click Global environment in the left pane
- Replace all of the text in the right pane with the copied text from the authorization modal
- Click Save
Retrieve introspection information
- Copy the URL into Altair replacing
<orgID>with your Org ID. - Click the Docs button (you may need to toggle or move the guide tab)
- You should see the word Query in the third pane, click it.
- Click task and observe the available arguments and fields.
Your first query
- Copy the query below into the query pane of Altair.
-
Using the Time Widget, select from "1 week ago" to "Now"
-
Run the query by clicking the Send Request button (you may need to toggle or move the guide tab) or use the keyboard shortcut ctrl+enter
- Copy an intervalStartTime value from the response pane
- Open the time tool and switch to the Lookup tab
-
Paste the value and click Convert
What is that timestamp telling you?
The day of the week
What time zone is the timestamp in?
Hint: Scroll down in the results to the interval info
UTC -
Update the aggregation interval to be in your preferred time zone by adding the timezone field of the aggregationInterval argument. > Example: >
You can find a list of time zone here
-
Note that the daily intervals now begins at 0:00 in the set time zone.