File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments