'How do you incorporate "useNewPaginationScheme" and "skipToken" parameters in Python through the Qualtrics API?

I am trying to use the Qualtrics API in Python to get a List of Directory Contacts. Is there an example of how to include the "useNewPaginationScheme" and "skipToken" parameters in the query? This is what I have so far ...

import http.client

apiToken = apiToken
skipToken = skipToken
poolId = poolId

conn = http.client.HTTPSConnection("iad1.qualtrics.com")
headers = {'Content-Type': "application/json", 'X-API-TOKEN': apiToken, 'useNewPaginationScheme': True, 'skipToken': skipToken}
conn.request("GET", "/API/v3/directories/" + poolId + "/contacts", headers=headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source