Class: SquarespaceApi::ResourceGroups::WebhookSubscriptions
Constant Summary
collapse
- PATH =
'webhook_subscriptions'.freeze
Instance Method Summary
collapse
allowed_actions, #initialize
Instance Method Details
#rotate_secret(id) ⇒ Object
14
15
16
17
18
19
|
# File 'lib/squarespace_api/resource_groups/webhook_subscriptions.rb', line 14
def rotate_secret(id)
parse(
connection
.post(UriComponentBuidler.construct(resource_path, id: id) + "/actions/rotateSecret")
)
end
|
#send_test_notification(id = nil, params) ⇒ Object
7
8
9
10
11
12
|
# File 'lib/squarespace_api/resource_groups/webhook_subscriptions.rb', line 7
def send_test_notification(id = nil, params)
parse(
connection
.post(UriComponentBuidler.construct(resource_path, id: id) + "/actions/sendTestNotification", params: params.to_json)
)
end
|