Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@LMG23
Created January 17, 2023 21:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LMG23/2e1e26d0de07cf8cdadbd6324f976c46 to your computer and use it in GitHub Desktop.
Save LMG23/2e1e26d0de07cf8cdadbd6324f976c46 to your computer and use it in GitHub Desktop.
"Python API - List out all GetFeedback Digital buttons with ID and name"
import usabilla as ub
import json
# Create an API client with access key and secret key
api = ub.APIClient('ACCESS-KEY', 'SECRET_KEY')
# Get all buttons in account
buttons = api.get_resource(
api.SCOPE_LIVE, api.PRODUCT_WEBSITES, api.RESOURCE_BUTTON, '*', iterate=True)
parsed_json = json.loads(json.dumps([item for item in buttons]))
# Print out all buttons with ID and name
for record in parsed_json[:]:
btn_id = record['id']
btn_nm = record['name']
print("Button ID: " + btn_id + " || Button name: " + btn_nm)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment