execute_event_subscription {EDIutils} | R Documentation |
Execute event subscription
Description
Execute event subscription
Usage
execute_event_subscription(subscriptionId, env = "production")
Arguments
subscriptionId |
(numeric) Event subscription identifier |
env |
(character) Repository environment. Can be: "production", "staging", or "development". |
Details
Upon notification, the event manager queries its database for the subscription matching the specified subscriptionId. POST requests are then made (asynchronously) to the matching subscription.
Value
(logical) TRUE if the event subscription was executed
Note
User authentication is required (see login()
)
See Also
Other Event Notifications:
create_event_subscription()
,
delete_event_subscription()
,
get_event_subscription_schema()
,
get_event_subscription()
,
query_event_subscriptions()
Examples
## Not run:
login()
# Create subscription
subscriptionId <- create_event_subscription(
packageId = "knb-lter-vcr.340.1",
url = "https://my.webserver.org/",
env = "staging"
)
subscriptionId
#> [1] 48
# Execute subscription
execute_event_subscription(
subscriptionId = subscriptionId,
env = "staging"
)
#> [1] TRUE
# Delete subscription
delete_event_subscription(subscriptionId, env = "staging")
#> [1] TRUE
logout()
## End(Not run)
[Package EDIutils version 1.0.3 Index]