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.
2579
2579
2580
2580
2581
2581
# 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"
2583
2583
2584
- target = (' c7a9327e-1cda-4504-b026-ddb43b976d1d' , ' workbook' )
2584
+ target = TSC .Target (' c7a9327e-1cda-4504-b026-ddb43b976d1d' , ' workbook' )
2585
2585
2586
2586
# 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'
2589
2589
2590
2590
# 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)
2592
2592
2593
2593
# create the new subscription to the site
2594
2594
newSub = server.subscriptions.create(newSub)
2595
- print (newUSub .subject)
2595
+ print (newSub .subject)
2596
2596
2597
2597
```
2598
2598
You can’t perform that action at this time.
0 commit comments