8000 Merge pull request #670 from tableau/664_fix-1 · shiv-io/server-client-python@cd80797 · GitHub
[go: up one dir, main page]

Skip to content

Commit cd80797

Browse files
authored
Merge pull request tableau#670 from tableau/664_fix-1
[DOC] Fix example under subscription.create()
2 parents 2bf0c5c + 2ccc63b commit cd80797

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/api-ref.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2579,20 +2579,20 @@ Returns the new `SubscriptionItem` object.
25792579

25802580

25812581
# create the target (content) of the subscription
2582-
# in this case, id of the workbook add the target type "workbook"
2582+
# in this case, id of the workbook and the target type "workbook"
25832583

2584-
target = ('c7a9327e-1cda-4504-b026-ddb43b976d1d', 'workbook')
2584+
target = TSC.Target('c7a9327e-1cda-4504-b026-ddb43b976d1d', 'workbook')
25852585

25862586
# the ids for the schedule and user
2587-
schedule = ('b60b4efd-a6f7-4599-beb3-cb677e7abac1')
2588-
user = 'b60b4efd-a6f7-4599-beb3-cb677e7abac1'
2587+
schedule_id = 'b60b4efd-a6f7-4599-beb3-cb677e7abac1'
2588+
user_id = 'b60b4efd-a6f7-4599-beb3-cb677e7abac1'
25892589

25902590
# create a new SubscriptionItem object.
2591-
newSub = TSC.SubscriptionItem('My Subscription', schedule, user, target)
2591+
newSub = TSC.SubscriptionItem('My Subscription', schedule_id, user_id, target)
25922592

25932593
# create the new subscription to the site
25942594
newSub = server.subscriptions.create(newSub)
2595-
print(newUSub.subject)
2595+
print(newSub.subject)
25962596

25972597
```
25982598

0 commit comments

Comments
 (0)
0