@@ -14,6 +14,8 @@ All URIs are relative to *https://zernio.com/api*
1414| [ ** onAdStatusChangedWithHttpInfo** ] ( WebhookEventsApi.md#onAdStatusChangedWithHttpInfo ) | ** POST** /ad.status_changed | Ad status changed event |
1515| [ ** onCommentReceived** ] ( WebhookEventsApi.md#onCommentReceived ) | ** POST** /comment.received | Comment received event |
1616| [ ** onCommentReceivedWithHttpInfo** ] ( WebhookEventsApi.md#onCommentReceivedWithHttpInfo ) | ** POST** /comment.received | Comment received event |
17+ | [ ** onLeadReceived** ] ( WebhookEventsApi.md#onLeadReceived ) | ** POST** /lead.received | Lead received event |
18+ | [ ** onLeadReceivedWithHttpInfo** ] ( WebhookEventsApi.md#onLeadReceivedWithHttpInfo ) | ** POST** /lead.received | Lead received event |
1719| [ ** onMessageDeleted** ] ( WebhookEventsApi.md#onMessageDeleted ) | ** POST** /message.deleted | Message deleted event |
1820| [ ** onMessageDeletedWithHttpInfo** ] ( WebhookEventsApi.md#onMessageDeletedWithHttpInfo ) | ** POST** /message.deleted | Message deleted event |
1921| [ ** onMessageDelivered** ] ( WebhookEventsApi.md#onMessageDelivered ) | ** POST** /message.delivered | Message delivered event |
@@ -767,6 +769,148 @@ ApiResponse<Void>
767769| ** 200** | Webhook received successfully | - |
768770
769771
772+ ## onLeadReceived
773+
774+ > void onLeadReceived(webhookPayloadLead)
775+
776+ Lead received event
777+
778+ Fired when a new lead is submitted against a Meta Lead Gen (Instant) Form and ingested via the Page ` ; leadgen` ; webhook. ` ; lead.fields` ; is the question-key to answer map; ` ; lead.formId` ; / ` ; lead.adId` ; give provenance. Requires the Ads add-on.
779+
780+ ### Example
781+
782+ ``` java
783+ // Import classes:
784+ import dev.zernio.ApiClient ;
785+ import dev.zernio.ApiException ;
786+ import dev.zernio.Configuration ;
787+ import dev.zernio.auth.* ;
788+ import dev.zernio.models.* ;
789+ import dev.zernio.api.WebhookEventsApi ;
790+
791+ public class Example {
792+ public static void main (String [] args ) {
793+ ApiClient defaultClient = Configuration . getDefaultApiClient();
794+ defaultClient. setBasePath(" https://zernio.com/api" );
795+
796+ // Configure HTTP bearer authorization: bearerAuth
797+ HttpBearerAuth bearerAuth = (HttpBearerAuth ) defaultClient. getAuthentication(" bearerAuth" );
798+ bearerAuth. setBearerToken(" BEARER TOKEN" );
799+
800+ WebhookEventsApi apiInstance = new WebhookEventsApi (defaultClient);
801+ WebhookPayloadLead webhookPayloadLead = new WebhookPayloadLead (); // WebhookPayloadLead |
802+ try {
803+ apiInstance. onLeadReceived(webhookPayloadLead);
804+ } catch (ApiException e) {
805+ System . err. println(" Exception when calling WebhookEventsApi#onLeadReceived" );
806+ System . err. println(" Status code: " + e. getCode());
807+ System . err. println(" Reason: " + e. getResponseBody());
808+ System . err. println(" Response headers: " + e. getResponseHeaders());
809+ e. printStackTrace();
810+ }
811+ }
812+ }
813+ ```
814+
815+ ### Parameters
816+
817+
818+ | Name | Type | Description | Notes |
819+ | ------------- | ------------- | ------------- | -------------|
820+ | ** webhookPayloadLead** | [ ** WebhookPayloadLead** ] ( WebhookPayloadLead.md ) | | |
821+
822+ ### Return type
823+
824+
825+ null (empty response body)
826+
827+ ### Authorization
828+
829+ [ bearerAuth] ( ../README.md#bearerAuth )
830+
831+ ### HTTP request headers
832+
833+ - ** Content-Type** : application/json
834+ - ** Accept** : Not defined
835+
836+ ### HTTP response details
837+ | Status code | Description | Response headers |
838+ | -------------| -------------| ------------------|
839+ | ** 200** | Webhook received successfully | - |
840+
841+ ## onLeadReceivedWithHttpInfo
842+
843+ > ApiResponse<Void > onLeadReceived onLeadReceivedWithHttpInfo(webhookPayloadLead)
844+
845+ Lead received event
846+
847+ Fired when a new lead is submitted against a Meta Lead Gen (Instant) Form and ingested via the Page ` ; leadgen` ; webhook. ` ; lead.fields` ; is the question-key to answer map; ` ; lead.formId` ; / ` ; lead.adId` ; give provenance. Requires the Ads add-on.
848+
849+ ### Example
850+
851+ ``` java
852+ // Import classes:
853+ import dev.zernio.ApiClient ;
854+ import dev.zernio.ApiException ;
855+ import dev.zernio.ApiResponse ;
856+ import dev.zernio.Configuration ;
857+ import dev.zernio.auth.* ;
858+ import dev.zernio.models.* ;
859+ import dev.zernio.api.WebhookEventsApi ;
860+
861+ public class Example {
862+ public static void main (String [] args ) {
863+ ApiClient defaultClient = Configuration . getDefaultApiClient();
864+ defaultClient. setBasePath(" https://zernio.com/api" );
865+
866+ // Configure HTTP bearer authorization: bearerAuth
867+ HttpBearerAuth bearerAuth = (HttpBearerAuth ) defaultClient. getAuthentication(" bearerAuth" );
868+ bearerAuth. setBearerToken(" BEARER TOKEN" );
869+
870+ WebhookEventsApi apiInstance = new WebhookEventsApi (defaultClient);
871+ WebhookPayloadLead webhookPayloadLead = new WebhookPayloadLead (); // WebhookPayloadLead |
872+ try {
873+ ApiResponse<Void > response = apiInstance. onLeadReceivedWithHttpInfo(webhookPayloadLead);
874+ System . out. println(" Status code: " + response. getStatusCode());
875+ System . out. println(" Response headers: " + response. getHeaders());
876+ } catch (ApiException e) {
877+ System . err. println(" Exception when calling WebhookEventsApi#onLeadReceived" );
878+ System . err. println(" Status code: " + e. getCode());
879+ System . err. println(" Response headers: " + e. getResponseHeaders());
880+ System . err. println(" Reason: " + e. getResponseBody());
881+ e. printStackTrace();
882+ }
883+ }
884+ }
885+ ```
886+
887+ ### Parameters
888+
889+
890+ | Name | Type | Description | Notes |
891+ | ------------- | ------------- | ------------- | -------------|
892+ | ** webhookPayloadLead** | [ ** WebhookPayloadLead** ] ( WebhookPayloadLead.md ) | | |
893+
894+ ### Return type
895+
896+
897+ ApiResponse<Void >
898+
899+ ### Authorization
900+
901+ [ bearerAuth] ( ../README.md#bearerAuth )
902+
903+ ### HTTP request headers
904+
905+ - ** Content-Type** : application/json
906+ - ** Accept** : Not defined
907+
908+ ### HTTP response details
909+ | Status code | Description | Response headers |
910+ | -------------| -------------| ------------------|
911+ | ** 200** | Webhook received successfully | - |
912+
913+
770914## onMessageDeleted
771915
772916> void onMessageDeleted(webhookPayloadMessageDeleted)
0 commit comments