Groovy API reference

WebhookResult

1 minute readReference

processWebhookTrigger

New API to process webhook events.

Arguments

Argument NameTypeDescription

tokenId

String

Access token public id to use for processing webhook request (Required)

httpMethod

String

Http Method for processing webhook

webhookHeader

String

Headers associated with the request in the json format

webhookPayload

String

Payload from webhook

webhookUrl

String

Full raw url of the CD server as it was called by the third-party system.

Usage

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 */)