MCPcopy Create free account
hub / github.com/Mnexa-AI/e2a / test_webhook

Method test_webhook

sdks/python/src/e2a/v1/generated/api/webhooks_api.py:1652–1719  ·  view source on GitHub ↗

Fire a synthetic event Schedule a one-off synthetic delivery to this webhook for development. Returns the delivery id. :param id: (required) :type id: str :param test_webhook_request: (required) :type test_webhook_request: TestWebhookRequest :param _

(
        self,
        id: StrictStr,
        test_webhook_request: TestWebhookRequest,
        _request_timeout: Union[
            None,
            Annotated[StrictFloat, Field(gt=0)],
            Tuple[
                Annotated[StrictFloat, Field(gt=0)],
                Annotated[StrictFloat, Field(gt=0)]
            ]
        ] = None,
        _request_auth: Optional[Dict[StrictStr, Any]] = None,
        _content_type: Optional[StrictStr] = None,
        _headers: Optional[Dict[StrictStr, Any]] = None,
        _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
    )

Source from the content-addressed store, hash-verified

1650
1651 @validate_call
1652 async def test_webhook(
1653 self,
1654 id: StrictStr,
1655 test_webhook_request: TestWebhookRequest,
1656 _request_timeout: Union[
1657 None,
1658 Annotated[StrictFloat, Field(gt=0)],
1659 Tuple[
1660 Annotated[StrictFloat, Field(gt=0)],
1661 Annotated[StrictFloat, Field(gt=0)]
1662 ]
1663 ] = None,
1664 _request_auth: Optional[Dict[StrictStr, Any]] = None,
1665 _content_type: Optional[StrictStr] = None,
1666 _headers: Optional[Dict[StrictStr, Any]] = None,
1667 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1668 ) -> TestWebhookResponse:
1669 """Fire a synthetic event
1670
1671 Schedule a one-off synthetic delivery to this webhook for development. Returns the delivery id.
1672
1673 :param id: (required)
1674 :type id: str
1675 :param test_webhook_request: (required)
1676 :type test_webhook_request: TestWebhookRequest
1677 :param _request_timeout: timeout setting for this request. If one
1678 number provided, it will be total request
1679 timeout. It can also be a pair (tuple) of
1680 (connection, read) timeouts.
1681 :type _request_timeout: int, tuple(int, int), optional
1682 :param _request_auth: set to override the auth_settings for an a single
1683 request; this effectively ignores the
1684 authentication in the spec for a single request.
1685 :type _request_auth: dict, optional
1686 :param _content_type: force content-type for the request.
1687 :type _content_type: str, Optional
1688 :param _headers: set to override the headers for a single
1689 request; this effectively ignores the headers
1690 in the spec for a single request.
1691 :type _headers: dict, optional
1692 :param _host_index: set to override the host_index for a single
1693 request; this effectively ignores the host_index
1694 in the spec for a single request.
1695 :type _host_index: int, optional
1696 :return: Returns the result object.
1697 """ # noqa: E501
1698
1699 _param = self._test_webhook_serialize(
1700 id=id,
1701 test_webhook_request=test_webhook_request,
1702 _request_auth=_request_auth,
1703 _content_type=_content_type,
1704 _headers=_headers,
1705 _host_index=_host_index
1706 )
1707
1708 _response_types_map: Dict[str, Optional[str]] = {
1709 '200': "TestWebhookResponse",

Callers 1

testMethod · 0.80

Calls 5

FieldFunction · 0.85
call_apiMethod · 0.80
readMethod · 0.80
response_deserializeMethod · 0.80

Tested by

no test coverage detected