Skip to content

Instantly share code, notes, and snippets.

View rterakedis's full-sized avatar
💭
I may be slow to respond.

rterakedis rterakedis

💭
I may be slow to respond.
View GitHub Profile
@rterakedis
rterakedis / gainsight-px-api-paging-example.py
Last active January 24, 2024 17:21
Gainsight PX API Paging Example
# Example Gainsight Paging API Call
##############################################################################
# Reference API documentation:
# https://gainsightpx.docs.apiary.io/#reference/surveyresponse
#
# Use the returned scrollId to make a request for the next page of results (i.e. /users?pageSize=100&scrollId=XXXXXXX)
# Scroll until the returned result list is less than the requested size. Do not depend on the scrollId becoming null,
# in some cases it does not be null even though the last page of results is returned.
##############################################################################