22
33from __future__ import annotations
44
5- from typing import Optional
5+ from typing import Iterable , Optional
66from typing_extensions import Literal
77
88import httpx
@@ -56,6 +56,9 @@ def create(
5656 conversion_types : SequenceNotStr [str ],
5757 smart_link_scope : Literal ["global" , "campaign_specific" ],
5858 url : str ,
59+ body : str | Omit = omit ,
60+ headers : Iterable [smart_link_postback_create_params .Header ] | Omit = omit ,
61+ http_method : Literal ["GET" , "POST" ] | Omit = omit ,
5962 smart_link_ids : SequenceNotStr [str ] | Omit = omit ,
6063 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
6164 # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -76,6 +79,13 @@ def create(
7679 url: The destination URL. Variables such as `{external_click_id}`, `{fbclid}`,
7780 `{gclid}`, and `{ttclid}` are replaced when the postback is dispatched.
7881
82+ body: Optional request body template for POST postbacks. Variables are replaced when
83+ the postback is dispatched.
84+
85+ headers: Optional request headers. Header values may include postback variables.
86+
87+ http_method: HTTP method used for the postback request. Defaults to `GET` when omitted.
88+
7989 smart_link_ids: Smart Link ULIDs. Required when `smart_link_scope` is `campaign_specific`.
8090
8191 extra_headers: Send extra headers
@@ -93,6 +103,9 @@ def create(
93103 "conversion_types" : conversion_types ,
94104 "smart_link_scope" : smart_link_scope ,
95105 "url" : url ,
106+ "body" : body ,
107+ "headers" : headers ,
108+ "http_method" : http_method ,
96109 "smart_link_ids" : smart_link_ids ,
97110 },
98111 smart_link_postback_create_params .SmartLinkPostbackCreateParams ,
@@ -141,6 +154,9 @@ def update(
141154 conversion_types : SequenceNotStr [str ],
142155 smart_link_scope : Literal ["global" , "campaign_specific" ],
143156 url : str ,
157+ body : str | Omit = omit ,
158+ headers : Iterable [smart_link_postback_update_params .Header ] | Omit = omit ,
159+ http_method : Literal ["GET" , "POST" ] | Omit = omit ,
144160 smart_link_ids : SequenceNotStr [str ] | Omit = omit ,
145161 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
146162 # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -159,6 +175,13 @@ def update(
159175
160176 url: The destination URL.
161177
178+ body: Optional request body template for POST postbacks. Variables are replaced when
179+ the postback is dispatched.
180+
181+ headers: Optional request headers. Header values may include postback variables.
182+
183+ http_method: HTTP method used for the postback request. Existing value is kept when omitted.
184+
162185 smart_link_ids: Smart Link ULIDs. Required when `smart_link_scope` is `campaign_specific`.
163186
164187 extra_headers: Send extra headers
@@ -176,6 +199,9 @@ def update(
176199 "conversion_types" : conversion_types ,
177200 "smart_link_scope" : smart_link_scope ,
178201 "url" : url ,
202+ "body" : body ,
203+ "headers" : headers ,
204+ "http_method" : http_method ,
179205 "smart_link_ids" : smart_link_ids ,
180206 },
181207 smart_link_postback_update_params .SmartLinkPostbackUpdateParams ,
@@ -265,6 +291,9 @@ async def create(
265291 conversion_types : SequenceNotStr [str ],
266292 smart_link_scope : Literal ["global" , "campaign_specific" ],
267293 url : str ,
294+ body : str | Omit = omit ,
295+ headers : Iterable [smart_link_postback_create_params .Header ] | Omit = omit ,
296+ http_method : Literal ["GET" , "POST" ] | Omit = omit ,
268297 smart_link_ids : SequenceNotStr [str ] | Omit = omit ,
269298 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
270299 # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -285,6 +314,13 @@ async def create(
285314 url: The destination URL. Variables such as `{external_click_id}`, `{fbclid}`,
286315 `{gclid}`, and `{ttclid}` are replaced when the postback is dispatched.
287316
317+ body: Optional request body template for POST postbacks. Variables are replaced when
318+ the postback is dispatched.
319+
320+ headers: Optional request headers. Header values may include postback variables.
321+
322+ http_method: HTTP method used for the postback request. Defaults to `GET` when omitted.
323+
288324 smart_link_ids: Smart Link ULIDs. Required when `smart_link_scope` is `campaign_specific`.
289325
290326 extra_headers: Send extra headers
@@ -302,6 +338,9 @@ async def create(
302338 "conversion_types" : conversion_types ,
303339 "smart_link_scope" : smart_link_scope ,
304340 "url" : url ,
341+ "body" : body ,
342+ "headers" : headers ,
343+ "http_method" : http_method ,
305344 "smart_link_ids" : smart_link_ids ,
306345 },
307346 smart_link_postback_create_params .SmartLinkPostbackCreateParams ,
@@ -350,6 +389,9 @@ async def update(
350389 conversion_types : SequenceNotStr [str ],
351390 smart_link_scope : Literal ["global" , "campaign_specific" ],
352391 url : str ,
392+ body : str | Omit = omit ,
393+ headers : Iterable [smart_link_postback_update_params .Header ] | Omit = omit ,
394+ http_method : Literal ["GET" , "POST" ] | Omit = omit ,
353395 smart_link_ids : SequenceNotStr [str ] | Omit = omit ,
354396 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
355397 # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -368,6 +410,13 @@ async def update(
368410
369411 url: The destination URL.
370412
413+ body: Optional request body template for POST postbacks. Variables are replaced when
414+ the postback is dispatched.
415+
416+ headers: Optional request headers. Header values may include postback variables.
417+
418+ http_method: HTTP method used for the postback request. Existing value is kept when omitted.
419+
371420 smart_link_ids: Smart Link ULIDs. Required when `smart_link_scope` is `campaign_specific`.
372421
373422 extra_headers: Send extra headers
@@ -385,6 +434,9 @@ async def update(
385434 "conversion_types" : conversion_types ,
386435 "smart_link_scope" : smart_link_scope ,
387436 "url" : url ,
437+ "body" : body ,
438+ "headers" : headers ,
439+ "http_method" : http_method ,
388440 "smart_link_ids" : smart_link_ids ,
389441 },
390442 smart_link_postback_update_params .SmartLinkPostbackUpdateParams ,
0 commit comments