Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding python/add_user_to_pulse_metric_subscription.py. #91

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dzucker-tab
Copy link
Contributor

No description provided.

# LUID of a Pulse Metric:
# The LUID is the last part of the metric URL.
# It would be 5aa997e2-07ed-4c60-bda5-154ca9f8d013 for the URL below
# - https://dub01.online.tableau.com/pulse/site/darkplatypus/metrics/5aa997e2-07ed-4c60-bda5-154ca9f8d013
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could make this url more generic by removing dub01 and sub out darkplatypus.

if next_page_token:
url = f'{server_url}/api/-/pulse/subscriptions?page_size={page_size}&page_token={next_page_token}'
else:
url = f'{server_url}/api/-/pulse/subscriptions?page_size={page_size}'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally this would use the make_tableau_request method

# Date: 10/24/2024
# Description:
# This script subscribes a user to a Pulse metric on Tableau Cloud Site.
# The script utilizes the Tableau Server Client (TSC) and requests libraries
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, it shouldn't use TSC. If it does then it shouldn't be writing it's own make_tableau_request methods etc.

Or perhaps it could be moved to the tsc repo and used as a sample there?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants