processWebhookTrigger

On this page
Back to index

Summary

Processes webhook events.
tokenId
Stringrequired
Access token public ID to use for processing webhook request.
httpMethod
Stringoptional
HTTP method for processing webhooks.
webhookHeader
Stringoptional
Headers associated with the request in the JSON format.
webhookPayload
Stringoptional
Payload from webhook.
webhookUrl
Stringoptional
Full raw URL of the CloudBees CD/RO server, as it is called by the third-party system. If using an IPv6 address, enclose the address in square brackets. Example: [<IPv6-ADDRESS>].

Usage

Groovy

import com.electriccloud.client.groovy.ElectricFlow import com.electriccloud.client.groovy.models.* ElectricFlow ef = new ElectricFlow() def result = ef.processWebhookTrigger( tokenId: "test-tokenId" /* optional arguments */ )