Skip to content

Commit 603f494

Browse files
committed
latest spec, and additional readme examples
1 parent 3f6f75f commit 603f494

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+267
-8710
lines changed

README.md

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,8 @@ klaviyo.Events.get_events(
121121
)
122122
```
123123

124+
NOTE: the filter param values need to be url-encoded
125+
124126
#### How to filter based on datetime
125127

126128
**Use Case**: Get profiles that have been updated between two datetimes.
@@ -1561,9 +1563,10 @@ klaviyo.Flows.get_flow_action_flow(action_id, fields_flow=fields_flow)
15611563
# fields_flow_message | [str]
15621564
# filter | str
15631565
# page_cursor | str
1566+
# page_size | int
15641567
# sort | str
15651568

1566-
klaviyo.Flows.get_flow_action_messages(action_id, fields_flow_message=fields_flow_message, filter=filter, page_cursor=page_cursor, sort=sort)
1569+
klaviyo.Flows.get_flow_action_messages(action_id, fields_flow_message=fields_flow_message, filter=filter, page_cursor=page_cursor, page_size=page_size, sort=sort)
15671570
```
15681571

15691572

@@ -1593,9 +1596,10 @@ klaviyo.Flows.get_flow_action_relationships_flow(id)
15931596

15941597
# filter | str
15951598
# page_cursor | str
1599+
# page_size | int
15961600
# sort | str
15971601

1598-
klaviyo.Flows.get_flow_action_relationships_messages(id, filter=filter, page_cursor=page_cursor, sort=sort)
1602+
klaviyo.Flows.get_flow_action_relationships_messages(id, filter=filter, page_cursor=page_cursor, page_size=page_size, sort=sort)
15991603
```
16001604

16011605

@@ -1613,9 +1617,10 @@ klaviyo.Flows.get_flow_action_relationships_messages(id, filter=filter, page_cur
16131617
# fields_flow_action | [str]
16141618
# filter | str
16151619
# page_cursor | str
1620+
# page_size | int
16161621
# sort | str
16171622

1618-
klaviyo.Flows.get_flow_flow_actions(flow_id, fields_flow_action=fields_flow_action, filter=filter, page_cursor=page_cursor, sort=sort)
1623+
klaviyo.Flows.get_flow_flow_actions(flow_id, fields_flow_action=fields_flow_action, filter=filter, page_cursor=page_cursor, page_size=page_size, sort=sort)
16191624
```
16201625

16211626

@@ -1680,9 +1685,10 @@ klaviyo.Flows.get_flow_message_relationships_action(id)
16801685
## Keyword Arguments
16811686

16821687
# filter | str
1688+
# page_size | int
16831689
# sort | str
16841690

1685-
klaviyo.Flows.get_flow_relationships_flow_actions(id, filter=filter, sort=sort)
1691+
klaviyo.Flows.get_flow_relationships_flow_actions(id, filter=filter, page_size=page_size, sort=sort)
16861692
```
16871693

16881694

@@ -1729,9 +1735,10 @@ klaviyo.Flows.get_flow_tags(flow_id, fields_tag=fields_tag)
17291735
# filter | str
17301736
# include | [str]
17311737
# page_cursor | str
1738+
# page_size | int
17321739
# sort | str
17331740

1734-
klaviyo.Flows.get_flows(fields_flow_action=fields_flow_action, fields_flow=fields_flow, filter=filter, include=include, page_cursor=page_cursor, sort=sort)
1741+
klaviyo.Flows.get_flows(fields_flow_action=fields_flow_action, fields_flow=fields_flow, filter=filter, include=include, page_cursor=page_cursor, page_size=page_size, sort=sort)
17351742
```
17361743

17371744

@@ -1985,11 +1992,7 @@ klaviyo.Metrics.query_metric_aggregates(body)
19851992

19861993
# body | dict
19871994

1988-
## Keyword Arguments
1989-
1990-
# additional_fields_profile | [str]
1991-
1992-
klaviyo.Profiles.create_profile(body, additional_fields_profile=additional_fields_profile)
1995+
klaviyo.Profiles.create_profile(body)
19931996
```
19941997

19951998

@@ -2086,10 +2089,10 @@ klaviyo.Profiles.get_profile_segments(profile_id, fields_segment=fields_segment)
20862089
# fields_profile | [str]
20872090
# filter | str
20882091
# page_cursor | str
2089-
# sort | str
20902092
# page_size | int
2093+
# sort | str
20912094

2092-
klaviyo.Profiles.get_profiles(additional_fields_profile=additional_fields_profile, fields_profile=fields_profile, filter=filter, page_cursor=page_cursor, sort=sort, page_size=page_size)
2095+
klaviyo.Profiles.get_profiles(additional_fields_profile=additional_fields_profile, fields_profile=fields_profile, filter=filter, page_cursor=page_cursor, page_size=page_size, sort=sort)
20932096
```
20942097

20952098

@@ -2155,11 +2158,7 @@ klaviyo.Profiles.unsuppress_profiles(body)
21552158
# id | str
21562159
# body | dict
21572160

2158-
## Keyword Arguments
2159-
2160-
# additional_fields_profile | [str]
2161-
2162-
klaviyo.Profiles.update_profile(id, body, additional_fields_profile=additional_fields_profile)
2161+
klaviyo.Profiles.update_profile(id, body)
21632162
```
21642163

21652164

openapi_client/api/campaigns_api.py

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1158,7 +1158,7 @@ def create_campaign(
11581158
):
11591159
"""Create Campaign # noqa: E501
11601160
1161-
Creates a campaign given a set of parameters, then returns it.<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `Campaigns Write` # noqa: E501
1161+
Creates a campaign given a set of parameters, then returns it.<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `campaigns:write` # noqa: E501
11621162
This method makes a synchronous HTTP request by default. To make an
11631163
asynchronous HTTP request, please pass async_req=True
11641164
@@ -1241,7 +1241,7 @@ def create_campaign_clone(
12411241
):
12421242
"""Create Campaign Clone # noqa: E501
12431243
1244-
Clones an existing campaign, returning a new campaign based on the original with a new ID and name.<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `Campaigns Write` # noqa: E501
1244+
Clones an existing campaign, returning a new campaign based on the original with a new ID and name.<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `campaigns:write` # noqa: E501
12451245
This method makes a synchronous HTTP request by default. To make an
12461246
asynchronous HTTP request, please pass async_req=True
12471247
@@ -1324,7 +1324,7 @@ def create_campaign_message_assign_template(
13241324
):
13251325
"""Assign Campaign Message Template # noqa: E501
13261326
1327-
Creates a non-reusable version of the template and assigns it to the message.<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `Campaigns Write` # noqa: E501
1327+
Creates a non-reusable version of the template and assigns it to the message.<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `campaigns:write` # noqa: E501
13281328
This method makes a synchronous HTTP request by default. To make an
13291329
asynchronous HTTP request, please pass async_req=True
13301330
@@ -1407,7 +1407,7 @@ def create_campaign_recipient_estimation_job(
14071407
):
14081408
"""Create Campaign Recipient Estimation Job # noqa: E501
14091409
1410-
Trigger an asynchronous job to update the estimated number of recipients for the given campaign ID. Use the `Get Campaign Recipient Estimation Job` endpoint to retrieve the status of this estimation job. Use the `Get Campaign Recipient Estimation` endpoint to retrieve the estimated recipient count for a given campaign.<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `Campaigns Write` # noqa: E501
1410+
Trigger an asynchronous job to update the estimated number of recipients for the given campaign ID. Use the `Get Campaign Recipient Estimation Job` endpoint to retrieve the status of this estimation job. Use the `Get Campaign Recipient Estimation` endpoint to retrieve the estimated recipient count for a given campaign.<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `campaigns:write` # noqa: E501
14111411
This method makes a synchronous HTTP request by default. To make an
14121412
asynchronous HTTP request, please pass async_req=True
14131413
@@ -1490,7 +1490,7 @@ def create_campaign_send_job(
14901490
):
14911491
"""Create Campaign Send Job # noqa: E501
14921492
1493-
Trigger a campaign to send asynchronously<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `Campaigns Write` # noqa: E501
1493+
Trigger a campaign to send asynchronously<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `campaigns:write` # noqa: E501
14941494
This method makes a synchronous HTTP request by default. To make an
14951495
asynchronous HTTP request, please pass async_req=True
14961496
@@ -1573,7 +1573,7 @@ def delete_campaign(
15731573
):
15741574
"""Delete Campaign # noqa: E501
15751575
1576-
Delete a campaign with the given campaign ID.<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `Campaigns Write` # noqa: E501
1576+
Delete a campaign with the given campaign ID.<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `campaigns:write` # noqa: E501
15771577
This method makes a synchronous HTTP request by default. To make an
15781578
asynchronous HTTP request, please pass async_req=True
15791579
@@ -1656,7 +1656,7 @@ def get_campaign(
16561656
):
16571657
"""Get Campaign # noqa: E501
16581658
1659-
Returns a specific campaign based on a required id.<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `Campaigns Read` # noqa: E501
1659+
Returns a specific campaign based on a required id.<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `campaigns:read` # noqa: E501
16601660
This method makes a synchronous HTTP request by default. To make an
16611661
asynchronous HTTP request, please pass async_req=True
16621662
@@ -1742,7 +1742,7 @@ def get_campaign_message(
17421742
):
17431743
"""Get Campaign Message # noqa: E501
17441744
1745-
Returns a specific message based on a required id.<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `Campaigns Read` # noqa: E501
1745+
Returns a specific message based on a required id.<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `campaigns:read` # noqa: E501
17461746
This method makes a synchronous HTTP request by default. To make an
17471747
asynchronous HTTP request, please pass async_req=True
17481748
@@ -1826,7 +1826,7 @@ def get_campaign_recipient_estimation(
18261826
):
18271827
"""Get Campaign Recipient Estimation # noqa: E501
18281828
1829-
Get the estimated recipient count for a campaign with the provided campaign ID. You can refresh this count by using the `Create Campaign Recipient Estimation Job` endpoint.<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `Campaigns Read` # noqa: E501
1829+
Get the estimated recipient count for a campaign with the provided campaign ID. You can refresh this count by using the `Create Campaign Recipient Estimation Job` endpoint.<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `campaigns:read` # noqa: E501
18301830
This method makes a synchronous HTTP request by default. To make an
18311831
asynchronous HTTP request, please pass async_req=True
18321832
@@ -1910,7 +1910,7 @@ def get_campaign_recipient_estimation_job(
19101910
):
19111911
"""Get Campaign Recipient Estimation Job # noqa: E501
19121912
1913-
Retrieve the status of a recipient estimation job triggered with the `Create Campaign Recipient Estimation Job` endpoint.<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `Campaigns Read` # noqa: E501
1913+
Retrieve the status of a recipient estimation job triggered with the `Create Campaign Recipient Estimation Job` endpoint.<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `campaigns:read` # noqa: E501
19141914
This method makes a synchronous HTTP request by default. To make an
19151915
asynchronous HTTP request, please pass async_req=True
19161916
@@ -1994,7 +1994,7 @@ def get_campaign_relationships_tags(
19941994
):
19951995
"""Get Campaign Relationships Tags # noqa: E501
19961996
1997-
Returns the IDs of all tags associated with the given campaign.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `Campaigns Read` `Tags Read` # noqa: E501
1997+
Returns the IDs of all tags associated with the given campaign.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `campaigns:read` `tags:read` # noqa: E501
19981998
This method makes a synchronous HTTP request by default. To make an
19991999
asynchronous HTTP request, please pass async_req=True
20002000
@@ -2077,7 +2077,7 @@ def get_campaign_send_job(
20772077
):
20782078
"""Get Campaign Send Job # noqa: E501
20792079
2080-
Get a campaign send job<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `Campaigns Read` # noqa: E501
2080+
Get a campaign send job<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `campaigns:read` # noqa: E501
20812081
This method makes a synchronous HTTP request by default. To make an
20822082
asynchronous HTTP request, please pass async_req=True
20832083
@@ -2161,7 +2161,7 @@ def get_campaign_tags(
21612161
):
21622162
"""Get Campaign Tags # noqa: E501
21632163
2164-
Return all tags that belong to the given campaign.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `Campaigns Read` `Tags Read` # noqa: E501
2164+
Return all tags that belong to the given campaign.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `campaigns:read` `tags:read` # noqa: E501
21652165
This method makes a synchronous HTTP request by default. To make an
21662166
asynchronous HTTP request, please pass async_req=True
21672167
@@ -2244,7 +2244,7 @@ def get_campaigns(
22442244
):
22452245
"""Get Campaigns # noqa: E501
22462246
2247-
Returns some or all campaigns based on [optional] filters<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `Campaigns Read` # noqa: E501
2247+
Returns some or all campaigns based on [optional] filters<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `campaigns:read` # noqa: E501
22482248
This method makes a synchronous HTTP request by default. To make an
22492249
asynchronous HTTP request, please pass async_req=True
22502250
@@ -2330,7 +2330,7 @@ def update_campaign(
23302330
):
23312331
"""Update Campaign # noqa: E501
23322332
2333-
Update a campaign with the given campaign ID.<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `Campaigns Write` # noqa: E501
2333+
Update a campaign with the given campaign ID.<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `campaigns:write` # noqa: E501
23342334
This method makes a synchronous HTTP request by default. To make an
23352335
asynchronous HTTP request, please pass async_req=True
23362336
@@ -2417,7 +2417,7 @@ def update_campaign_message(
24172417
):
24182418
"""Update Campaign Message # noqa: E501
24192419
2420-
Update a campaign message<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `Campaigns Write` # noqa: E501
2420+
Update a campaign message<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `campaigns:write` # noqa: E501
24212421
This method makes a synchronous HTTP request by default. To make an
24222422
asynchronous HTTP request, please pass async_req=True
24232423
@@ -2504,7 +2504,7 @@ def update_campaign_send_job(
25042504
):
25052505
"""Update Campaign Send Job # noqa: E501
25062506
2507-
Permanently cancel the campaign, setting the status to CANCELED or revert the campaign, setting the status back to DRAFT<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `Campaigns Write` # noqa: E501
2507+
Permanently cancel the campaign, setting the status to CANCELED or revert the campaign, setting the status back to DRAFT<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `campaigns:write` # noqa: E501
25082508
This method makes a synchronous HTTP request by default. To make an
25092509
asynchronous HTTP request, please pass async_req=True
25102510

0 commit comments

Comments
 (0)