Skip to content

Commit 462c43c

Browse files
authored
feature: add regenerated files (#26)
1 parent 50f3f06 commit 462c43c

File tree

59 files changed

+1643
-303
lines changed

Some content is hidden

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

59 files changed

+1643
-303
lines changed

.openapi-generator/FILES

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,7 @@ docs/OauthAccessTokenRequestRefreshAllOf.md
295295
docs/OauthAccessTokenResponse.md
296296
docs/OauthAccessTokenResponseCode.md
297297
docs/OauthAccessTokenResponseCodeAllOf.md
298+
docs/OauthAccessTokenResponseIntegrationRefresh.md
298299
docs/OauthAccessTokenResponseRefresh.md
299300
docs/OauthApi.md
300301
docs/ObjectiveType.md
@@ -702,6 +703,7 @@ openapi_generated/pinterest_client/model/oauth_access_token_request_refresh_all_
702703
openapi_generated/pinterest_client/model/oauth_access_token_response.py
703704
openapi_generated/pinterest_client/model/oauth_access_token_response_code.py
704705
openapi_generated/pinterest_client/model/oauth_access_token_response_code_all_of.py
706+
openapi_generated/pinterest_client/model/oauth_access_token_response_integration_refresh.py
705707
openapi_generated/pinterest_client/model/oauth_access_token_response_refresh.py
706708
openapi_generated/pinterest_client/model/objective_type.py
707709
openapi_generated/pinterest_client/model/optimization_goal_metadata.py
@@ -1088,6 +1090,7 @@ test/test_oauth_access_token_request_refresh_all_of.py
10881090
test/test_oauth_access_token_response.py
10891091
test/test_oauth_access_token_response_code.py
10901092
test/test_oauth_access_token_response_code_all_of.py
1093+
test/test_oauth_access_token_response_integration_refresh.py
10911094
test/test_oauth_access_token_response_refresh.py
10921095
test/test_oauth_api.py
10931096
test/test_objective_type.py

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Pinterest's REST API
66
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
77

88
- API version: 5.8.0
9-
- Package version: 0.1.6
9+
- Package version: 0.1.7
1010
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
1111
For more information, please visit [https://developers.pinterest.com/](https://developers.pinterest.com/)
1212

@@ -242,11 +242,15 @@ Class | Method | HTTP request | Description
242242
*UserAccountApi* | [**follow_user_update**](https://github.com/pinterest/pinterest-python-generated-api-client/blob/main/docs/UserAccountApi.md#follow_user_update) | **POST** /user_account/following/{username} | Follow user
243243
*UserAccountApi* | [**followers_list**](https://github.com/pinterest/pinterest-python-generated-api-client/blob/main/docs/UserAccountApi.md#followers_list) | **GET** /user_account/followers | List followers
244244
*UserAccountApi* | [**linked_business_accounts_get**](https://github.com/pinterest/pinterest-python-generated-api-client/blob/main/docs/UserAccountApi.md#linked_business_accounts_get) | **GET** /user_account/businesses | List linked businesses
245+
*UserAccountApi* | [**unverify_website_delete**](https://github.com/pinterest/pinterest-python-generated-api-client/blob/main/docs/UserAccountApi.md#unverify_website_delete) | **DELETE** /user_account/websites | Unverify website
245246
*UserAccountApi* | [**user_account_analytics**](https://github.com/pinterest/pinterest-python-generated-api-client/blob/main/docs/UserAccountApi.md#user_account_analytics) | **GET** /user_account/analytics | Get user account analytics
246247
*UserAccountApi* | [**user_account_analytics_top_pins**](https://github.com/pinterest/pinterest-python-generated-api-client/blob/main/docs/UserAccountApi.md#user_account_analytics_top_pins) | **GET** /user_account/analytics/top_pins | Get user account top pins analytics
247248
*UserAccountApi* | [**user_account_analytics_top_video_pins**](https://github.com/pinterest/pinterest-python-generated-api-client/blob/main/docs/UserAccountApi.md#user_account_analytics_top_video_pins) | **GET** /user_account/analytics/top_video_pins | Get user account top video pins analytics
248249
*UserAccountApi* | [**user_account_get**](https://github.com/pinterest/pinterest-python-generated-api-client/blob/main/docs/UserAccountApi.md#user_account_get) | **GET** /user_account | Get user account
249250
*UserAccountApi* | [**user_following_get**](https://github.com/pinterest/pinterest-python-generated-api-client/blob/main/docs/UserAccountApi.md#user_following_get) | **GET** /user_account/following | List following
251+
*UserAccountApi* | [**user_websites_get**](https://github.com/pinterest/pinterest-python-generated-api-client/blob/main/docs/UserAccountApi.md#user_websites_get) | **GET** /user_account/websites | Get user websites
252+
*UserAccountApi* | [**verify_website_update**](https://github.com/pinterest/pinterest-python-generated-api-client/blob/main/docs/UserAccountApi.md#verify_website_update) | **POST** /user_account/websites | Verify website
253+
*UserAccountApi* | [**website_verification_get**](https://github.com/pinterest/pinterest-python-generated-api-client/blob/main/docs/UserAccountApi.md#website_verification_get) | **GET** /user_account/websites/verification | Get user verification code for website claiming
250254

251255

252256
## Documentation For Models
@@ -528,6 +532,7 @@ Class | Method | HTTP request | Description
528532
- [OauthAccessTokenResponse](https://github.com/pinterest/pinterest-python-generated-api-client/blob/main/docs/OauthAccessTokenResponse.md)
529533
- [OauthAccessTokenResponseCode](https://github.com/pinterest/pinterest-python-generated-api-client/blob/main/docs/OauthAccessTokenResponseCode.md)
530534
- [OauthAccessTokenResponseCodeAllOf](https://github.com/pinterest/pinterest-python-generated-api-client/blob/main/docs/OauthAccessTokenResponseCodeAllOf.md)
535+
- [OauthAccessTokenResponseIntegrationRefresh](https://github.com/pinterest/pinterest-python-generated-api-client/blob/main/docs/OauthAccessTokenResponseIntegrationRefresh.md)
531536
- [OauthAccessTokenResponseRefresh](https://github.com/pinterest/pinterest-python-generated-api-client/blob/main/docs/OauthAccessTokenResponseRefresh.md)
532537
- [ObjectiveType](https://github.com/pinterest/pinterest-python-generated-api-client/blob/main/docs/ObjectiveType.md)
533538
- [OptimizationGoalMetadata](https://github.com/pinterest/pinterest-python-generated-api-client/blob/main/docs/OptimizationGoalMetadata.md)

docs/AdGroupCommon.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@ Name | Type | Description | Notes
88
**status** | **str** | Ad group/entity status. | [optional]
99
**budget_in_micro_currency** | **int, none_type** | Budget in micro currency. This field is **REQUIRED** for non-CBO (campaign budget optimization) campaigns. A CBO campaign automatically generates ad group budgets from its campaign budget to maximize campaign outcome. A CBO campaign is limited to 70 or less ad groups. | [optional]
1010
**bid_in_micro_currency** | **int, none_type** | Bid price in micro currency. This field is **REQUIRED** for the following campaign objective_type/billable_event combinations: AWARENESS/IMPRESSION, CONSIDERATION/CLICKTHROUGH, CATALOG_SALES/CLICKTHROUGH, VIDEO_VIEW/VIDEO_V_50_MRC. | [optional]
11-
**optimization_goal_metadata** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | Optimization goals for objective-based performance campaigns. | [optional]
12-
**budget_type** | [**BudgetType**](BudgetType.md) | | [optional]
11+
**optimization_goal_metadata** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | Optimization goals for objective-based performance campaigns. **REQUIRED** when campaign's `objective_type` is set to `\"WEB_CONVERSION\"`. | [optional]
12+
**budget_type** | **str** | | [optional]
1313
**start_time** | **int, none_type** | Ad group start time. Unix timestamp in seconds. Defaults to current time. | [optional]
1414
**end_time** | **int, none_type** | Ad group end time. Unix timestamp in seconds. | [optional]
1515
**targeting_spec** | **{str: ([str],)}** | Ad group targeting specification defining the ad group target audience. For example, '{\"APPTYPE\":[\"iphone\"], \"GENDER\":[\"male\"], \"LOCALE\":[\"en-US\"], \"LOCATION\":[\"501\"], \"AGE_BUCKET\":[\"25-34\"]}' | [optional]
1616
**lifetime_frequency_cap** | **int** | Set a limit to the number of times a promoted pin from this campaign can be impressed by a pinner within the past rolling 30 days. Only available for CPM (cost per mille (1000 impressions)) ad groups. A CPM ad group has an IMPRESSION <a href=\"https://developers.pinterest.com/docs/redoc/#section/Billable-event\">billable_event</a> value. This field **REQUIRES** the `end_time` field. | [optional]
1717
**tracking_urls** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | Third-party tracking URLs.<br> JSON object with the format: {\"<a href=\"https://developers.pinterest.com/docs/redoc/#section/Tracking-URL-event\">Tracking event enum</a>\":[URL string array],...}<br> For example: {\"impression\": [\"URL1\", \"URL2\"], \"click\": [\"URL1\", \"URL2\", \"URL3\"]}.<br>Up to three tracking URLs are supported for each event type. Tracking URLs set at the ad group or ad level can override those set at the campaign level. May be null. Pass in an empty object - {} - to remove tracking URLs.<br><br> For more information, see <a href=\"https://help.pinterest.com/en/business/article/third-party-and-dynamic-tracking\" target=\"_blank\">Third-party and dynamic tracking</a>. | [optional]
1818
**auto_targeting_enabled** | **bool, none_type** | Enable auto-targeting for ad group. Also known as <a href=\"https://help.pinterest.com/en/business/article/expanded-targeting\" target=\"_blank\">\"expanded targeting\"</a>. | [optional]
1919
**placement_group** | **str** | <a href=\"https://developers.pinterest.com/docs/redoc/#section/Placement-group\">Placement group</a>. | [optional]
20-
**pacing_delivery_type** | **str** | Pacing delivery type. With ACCELERATED, an ad group budget is spent as fast as possible. With STANDARD, an ad group budget is spent smoothly over a day. | [optional]
20+
**pacing_delivery_type** | **str** | | [optional]
2121
**campaign_id** | **str** | Campaign ID of the ad group. | [optional]
2222
**billable_event** | [**ActionType**](ActionType.md) | | [optional]
2323
**bid_strategy_type** | **str, none_type** | Bid strategy type | [optional]

docs/AdGroupCreateRequest.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@ Name | Type | Description | Notes
1010
**status** | **str** | Ad group/entity status. | [optional]
1111
**budget_in_micro_currency** | **int, none_type** | Budget in micro currency. This field is **REQUIRED** for non-CBO (campaign budget optimization) campaigns. A CBO campaign automatically generates ad group budgets from its campaign budget to maximize campaign outcome. A CBO campaign is limited to 70 or less ad groups. | [optional]
1212
**bid_in_micro_currency** | **int, none_type** | Bid price in micro currency. This field is **REQUIRED** for the following campaign objective_type/billable_event combinations: AWARENESS/IMPRESSION, CONSIDERATION/CLICKTHROUGH, CATALOG_SALES/CLICKTHROUGH, VIDEO_VIEW/VIDEO_V_50_MRC. | [optional]
13-
**optimization_goal_metadata** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | Optimization goals for objective-based performance campaigns. | [optional]
14-
**budget_type** | [**BudgetType**](BudgetType.md) | | [optional]
13+
**optimization_goal_metadata** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | Optimization goals for objective-based performance campaigns. **REQUIRED** when campaign's `objective_type` is set to `\"WEB_CONVERSION\"`. | [optional]
14+
**budget_type** | **str** | | [optional] if omitted the server will use the default value of "DAILY"
1515
**start_time** | **int, none_type** | Ad group start time. Unix timestamp in seconds. Defaults to current time. | [optional]
1616
**end_time** | **int, none_type** | Ad group end time. Unix timestamp in seconds. | [optional]
1717
**targeting_spec** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | | [optional]
1818
**lifetime_frequency_cap** | **int** | Set a limit to the number of times a promoted pin from this campaign can be impressed by a pinner within the past rolling 30 days. Only available for CPM (cost per mille (1000 impressions)) ad groups. A CPM ad group has an IMPRESSION <a href=\"https://developers.pinterest.com/docs/redoc/#section/Billable-event\">billable_event</a> value. This field **REQUIRES** the `end_time` field. | [optional]
1919
**tracking_urls** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | Third-party tracking URLs.<br> JSON object with the format: {\"<a href=\"https://developers.pinterest.com/docs/redoc/#section/Tracking-URL-event\">Tracking event enum</a>\":[URL string array],...}<br> For example: {\"impression\": [\"URL1\", \"URL2\"], \"click\": [\"URL1\", \"URL2\", \"URL3\"]}.<br>Up to three tracking URLs are supported for each event type. Tracking URLs set at the ad group or ad level can override those set at the campaign level. May be null. Pass in an empty object - {} - to remove tracking URLs.<br><br> For more information, see <a href=\"https://help.pinterest.com/en/business/article/third-party-and-dynamic-tracking\" target=\"_blank\">Third-party and dynamic tracking</a>. | [optional]
20-
**auto_targeting_enabled** | **bool, none_type** | Enable auto-targeting for ad group. Also known as <a href=\"https://help.pinterest.com/en/business/article/expanded-targeting\" target=\"_blank\">\"expanded targeting\"</a>. | [optional]
20+
**auto_targeting_enabled** | **bool** | | [optional] if omitted the server will use the default value of True
2121
**placement_group** | **str** | <a href=\"https://developers.pinterest.com/docs/redoc/#section/Placement-group\">Placement group</a>. | [optional]
22-
**pacing_delivery_type** | **str** | Pacing delivery type. With ACCELERATED, an ad group budget is spent as fast as possible. With STANDARD, an ad group budget is spent smoothly over a day. | [optional]
22+
**pacing_delivery_type** | **str** | | [optional] if omitted the server will use the default value of "STANDARD"
2323
**bid_strategy_type** | **str, none_type** | Bid strategy type | [optional]
2424
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
2525

docs/AdGroupCreateRequestAllOf.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**targeting_spec** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | | [optional]
8+
**pacing_delivery_type** | **str** | | [optional] if omitted the server will use the default value of "STANDARD"
9+
**auto_targeting_enabled** | **bool** | | [optional] if omitted the server will use the default value of True
10+
**budget_type** | **str** | | [optional] if omitted the server will use the default value of "DAILY"
811
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
912

1013
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

docs/AdGroupResponse.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@ Name | Type | Description | Notes
88
**status** | **str** | Ad group/entity status. | [optional]
99
**budget_in_micro_currency** | **int, none_type** | Budget in micro currency. This field is **REQUIRED** for non-CBO (campaign budget optimization) campaigns. A CBO campaign automatically generates ad group budgets from its campaign budget to maximize campaign outcome. A CBO campaign is limited to 70 or less ad groups. | [optional]
1010
**bid_in_micro_currency** | **int, none_type** | Bid price in micro currency. This field is **REQUIRED** for the following campaign objective_type/billable_event combinations: AWARENESS/IMPRESSION, CONSIDERATION/CLICKTHROUGH, CATALOG_SALES/CLICKTHROUGH, VIDEO_VIEW/VIDEO_V_50_MRC. | [optional]
11-
**optimization_goal_metadata** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | Optimization goals for objective-based performance campaigns. | [optional]
12-
**budget_type** | [**BudgetType**](BudgetType.md) | | [optional]
11+
**optimization_goal_metadata** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | Optimization goals for objective-based performance campaigns. **REQUIRED** when campaign's `objective_type` is set to `\"WEB_CONVERSION\"`. | [optional]
12+
**budget_type** | **str** | | [optional]
1313
**start_time** | **int, none_type** | Ad group start time. Unix timestamp in seconds. Defaults to current time. | [optional]
1414
**end_time** | **int, none_type** | Ad group end time. Unix timestamp in seconds. | [optional]
1515
**targeting_spec** | **{str: ([str],)}** | Ad group targeting specification defining the ad group target audience. For example, '{\"APPTYPE\":[\"iphone\"], \"GENDER\":[\"male\"], \"LOCALE\":[\"en-US\"], \"LOCATION\":[\"501\"], \"AGE_BUCKET\":[\"25-34\"]}' | [optional]
1616
**lifetime_frequency_cap** | **int** | Set a limit to the number of times a promoted pin from this campaign can be impressed by a pinner within the past rolling 30 days. Only available for CPM (cost per mille (1000 impressions)) ad groups. A CPM ad group has an IMPRESSION <a href=\"https://developers.pinterest.com/docs/redoc/#section/Billable-event\">billable_event</a> value. This field **REQUIRES** the `end_time` field. | [optional]
1717
**tracking_urls** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | Third-party tracking URLs.<br> JSON object with the format: {\"<a href=\"https://developers.pinterest.com/docs/redoc/#section/Tracking-URL-event\">Tracking event enum</a>\":[URL string array],...}<br> For example: {\"impression\": [\"URL1\", \"URL2\"], \"click\": [\"URL1\", \"URL2\", \"URL3\"]}.<br>Up to three tracking URLs are supported for each event type. Tracking URLs set at the ad group or ad level can override those set at the campaign level. May be null. Pass in an empty object - {} - to remove tracking URLs.<br><br> For more information, see <a href=\"https://help.pinterest.com/en/business/article/third-party-and-dynamic-tracking\" target=\"_blank\">Third-party and dynamic tracking</a>. | [optional]
1818
**auto_targeting_enabled** | **bool, none_type** | Enable auto-targeting for ad group. Also known as <a href=\"https://help.pinterest.com/en/business/article/expanded-targeting\" target=\"_blank\">\"expanded targeting\"</a>. | [optional]
1919
**placement_group** | **str** | <a href=\"https://developers.pinterest.com/docs/redoc/#section/Placement-group\">Placement group</a>. | [optional]
20-
**pacing_delivery_type** | **str** | Pacing delivery type. With ACCELERATED, an ad group budget is spent as fast as possible. With STANDARD, an ad group budget is spent smoothly over a day. | [optional]
20+
**pacing_delivery_type** | **str** | | [optional]
2121
**campaign_id** | **str** | Campaign ID of the ad group. | [optional]
2222
**billable_event** | [**ActionType**](ActionType.md) | | [optional]
2323
**bid_strategy_type** | **str, none_type** | Bid strategy type | [optional]

0 commit comments

Comments
 (0)