Skip to content

Commit 50f3f06

Browse files
authored
Re-generate client code (#25)
* chore: re-generate client code * change url spec/make * fix: change Pin class to PinCreate
1 parent 0eba107 commit 50f3f06

37 files changed

+2880
-259
lines changed

.openapi-generator/FILES

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,10 @@ docs/Granularity.md
235235
docs/ImageDetails.md
236236
docs/ImageMetadata.md
237237
docs/InlineObject.md
238+
docs/IntegrationMetadata.md
239+
docs/IntegrationRequest.md
240+
docs/IntegrationRequestPatch.md
241+
docs/IntegrationsApi.md
238242
docs/Interest.md
239243
docs/InterestsApi.md
240244
docs/ItemAttributes.md
@@ -312,6 +316,7 @@ docs/OrderLinesArrayResponse.md
312316
docs/PacingDeliveryType.md
313317
docs/Paginated.md
314318
docs/Pin.md
319+
docs/PinCreate.md
315320
docs/PinMedia.md
316321
docs/PinMediaMetadata.md
317322
docs/PinMediaSource.md
@@ -382,6 +387,8 @@ docs/UserListOperationType.md
382387
docs/UserListType.md
383388
docs/UserSummary.md
384389
docs/UserWebsiteSummary.md
390+
docs/UserWebsiteVerificationCode.md
391+
docs/UserWebsiteVerifyRequest.md
385392
docs/VideoMetadata.md
386393
git_push.sh
387394
openapi_generated/__init__.py
@@ -399,6 +406,7 @@ openapi_generated/pinterest_client/api/catalogs_api.py
399406
openapi_generated/pinterest_client/api/conversion_events_api.py
400407
openapi_generated/pinterest_client/api/conversion_tags_api.py
401408
openapi_generated/pinterest_client/api/customer_lists_api.py
409+
openapi_generated/pinterest_client/api/integrations_api.py
402410
openapi_generated/pinterest_client/api/interests_api.py
403411
openapi_generated/pinterest_client/api/keywords_api.py
404412
openapi_generated/pinterest_client/api/media_api.py
@@ -638,6 +646,9 @@ openapi_generated/pinterest_client/model/granularity.py
638646
openapi_generated/pinterest_client/model/image_details.py
639647
openapi_generated/pinterest_client/model/image_metadata.py
640648
openapi_generated/pinterest_client/model/inline_object.py
649+
openapi_generated/pinterest_client/model/integration_metadata.py
650+
openapi_generated/pinterest_client/model/integration_request.py
651+
openapi_generated/pinterest_client/model/integration_request_patch.py
641652
openapi_generated/pinterest_client/model/interest.py
642653
openapi_generated/pinterest_client/model/item_attributes.py
643654
openapi_generated/pinterest_client/model/item_attributes_all_of.py
@@ -710,6 +721,7 @@ openapi_generated/pinterest_client/model/order_lines_array_response.py
710721
openapi_generated/pinterest_client/model/pacing_delivery_type.py
711722
openapi_generated/pinterest_client/model/paginated.py
712723
openapi_generated/pinterest_client/model/pin.py
724+
openapi_generated/pinterest_client/model/pin_create.py
713725
openapi_generated/pinterest_client/model/pin_media.py
714726
openapi_generated/pinterest_client/model/pin_media_metadata.py
715727
openapi_generated/pinterest_client/model/pin_media_source.py
@@ -772,6 +784,8 @@ openapi_generated/pinterest_client/model/user_list_operation_type.py
772784
openapi_generated/pinterest_client/model/user_list_type.py
773785
openapi_generated/pinterest_client/model/user_summary.py
774786
openapi_generated/pinterest_client/model/user_website_summary.py
787+
openapi_generated/pinterest_client/model/user_website_verification_code.py
788+
openapi_generated/pinterest_client/model/user_website_verify_request.py
775789
openapi_generated/pinterest_client/model/video_metadata.py
776790
openapi_generated/pinterest_client/model_utils.py
777791
openapi_generated/pinterest_client/models/__init__.py
@@ -1014,6 +1028,10 @@ test/test_granularity.py
10141028
test/test_image_details.py
10151029
test/test_image_metadata.py
10161030
test/test_inline_object.py
1031+
test/test_integration_metadata.py
1032+
test/test_integration_request.py
1033+
test/test_integration_request_patch.py
1034+
test/test_integrations_api.py
10171035
test/test_interest.py
10181036
test/test_interests_api.py
10191037
test/test_item_attributes.py
@@ -1091,6 +1109,7 @@ test/test_order_lines_array_response.py
10911109
test/test_pacing_delivery_type.py
10921110
test/test_paginated.py
10931111
test/test_pin.py
1112+
test/test_pin_create.py
10941113
test/test_pin_media.py
10951114
test/test_pin_media_metadata.py
10961115
test/test_pin_media_source.py
@@ -1161,5 +1180,7 @@ test/test_user_list_operation_type.py
11611180
test/test_user_list_type.py
11621181
test/test_user_summary.py
11631182
test/test_user_website_summary.py
1183+
test/test_user_website_verification_code.py
1184+
test/test_user_website_verify_request.py
11641185
test/test_video_metadata.py
11651186
tox.ini

README.md

Lines changed: 11 additions & 2 deletions
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.5
9+
- Package version: 0.1.6
1010
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
1111
For more information, please visit [https://developers.pinterest.com/](https://developers.pinterest.com/)
1212

@@ -200,6 +200,10 @@ Class | Method | HTTP request | Description
200200
*CustomerListsApi* | [**customer_lists_get**](https://github.com/pinterest/pinterest-python-generated-api-client/blob/main/docs/CustomerListsApi.md#customer_lists_get) | **GET** /ad_accounts/{ad_account_id}/customer_lists/{customer_list_id} | Get customer list
201201
*CustomerListsApi* | [**customer_lists_list**](https://github.com/pinterest/pinterest-python-generated-api-client/blob/main/docs/CustomerListsApi.md#customer_lists_list) | **GET** /ad_accounts/{ad_account_id}/customer_lists | Get customer lists
202202
*CustomerListsApi* | [**customer_lists_update**](https://github.com/pinterest/pinterest-python-generated-api-client/blob/main/docs/CustomerListsApi.md#customer_lists_update) | **PATCH** /ad_accounts/{ad_account_id}/customer_lists/{customer_list_id} | Update customer list
203+
*IntegrationsApi* | [**integrations_commerce_del**](https://github.com/pinterest/pinterest-python-generated-api-client/blob/main/docs/IntegrationsApi.md#integrations_commerce_del) | **DELETE** /integrations/commerce/{external_business_id} | Delete commerce integration
204+
*IntegrationsApi* | [**integrations_commerce_get**](https://github.com/pinterest/pinterest-python-generated-api-client/blob/main/docs/IntegrationsApi.md#integrations_commerce_get) | **GET** /integrations/commerce/{external_business_id} | Get commerce integration
205+
*IntegrationsApi* | [**integrations_commerce_patch**](https://github.com/pinterest/pinterest-python-generated-api-client/blob/main/docs/IntegrationsApi.md#integrations_commerce_patch) | **PATCH** /integrations/commerce/{external_business_id} | Update commerce integration
206+
*IntegrationsApi* | [**integrations_commerce_post**](https://github.com/pinterest/pinterest-python-generated-api-client/blob/main/docs/IntegrationsApi.md#integrations_commerce_post) | **POST** /integrations/commerce | Create commerce integration
203207
*InterestsApi* | [**interests_followed_interests**](https://github.com/pinterest/pinterest-python-generated-api-client/blob/main/docs/InterestsApi.md#interests_followed_interests) | **GET** /users/{username}/interests/follow | List following interests
204208
*KeywordsApi* | [**country_keywords_metrics_get**](https://github.com/pinterest/pinterest-python-generated-api-client/blob/main/docs/KeywordsApi.md#country_keywords_metrics_get) | **GET** /ad_accounts/{ad_account_id}/keywords/metrics | Get country's keyword metrics
205209
*KeywordsApi* | [**keywords_create**](https://github.com/pinterest/pinterest-python-generated-api-client/blob/main/docs/KeywordsApi.md#keywords_create) | **POST** /ad_accounts/{ad_account_id}/keywords | Create keywords
@@ -243,7 +247,6 @@ Class | Method | HTTP request | Description
243247
*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
244248
*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
245249
*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
246-
*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
247250

248251

249252
## Documentation For Models
@@ -469,6 +472,9 @@ Class | Method | HTTP request | Description
469472
- [ImageDetails](https://github.com/pinterest/pinterest-python-generated-api-client/blob/main/docs/ImageDetails.md)
470473
- [ImageMetadata](https://github.com/pinterest/pinterest-python-generated-api-client/blob/main/docs/ImageMetadata.md)
471474
- [InlineObject](https://github.com/pinterest/pinterest-python-generated-api-client/blob/main/docs/InlineObject.md)
475+
- [IntegrationMetadata](https://github.com/pinterest/pinterest-python-generated-api-client/blob/main/docs/IntegrationMetadata.md)
476+
- [IntegrationRequest](https://github.com/pinterest/pinterest-python-generated-api-client/blob/main/docs/IntegrationRequest.md)
477+
- [IntegrationRequestPatch](https://github.com/pinterest/pinterest-python-generated-api-client/blob/main/docs/IntegrationRequestPatch.md)
472478
- [Interest](https://github.com/pinterest/pinterest-python-generated-api-client/blob/main/docs/Interest.md)
473479
- [ItemAttributes](https://github.com/pinterest/pinterest-python-generated-api-client/blob/main/docs/ItemAttributes.md)
474480
- [ItemAttributesAllOf](https://github.com/pinterest/pinterest-python-generated-api-client/blob/main/docs/ItemAttributesAllOf.md)
@@ -541,6 +547,7 @@ Class | Method | HTTP request | Description
541547
- [PacingDeliveryType](https://github.com/pinterest/pinterest-python-generated-api-client/blob/main/docs/PacingDeliveryType.md)
542548
- [Paginated](https://github.com/pinterest/pinterest-python-generated-api-client/blob/main/docs/Paginated.md)
543549
- [Pin](https://github.com/pinterest/pinterest-python-generated-api-client/blob/main/docs/Pin.md)
550+
- [PinCreate](https://github.com/pinterest/pinterest-python-generated-api-client/blob/main/docs/PinCreate.md)
544551
- [PinMedia](https://github.com/pinterest/pinterest-python-generated-api-client/blob/main/docs/PinMedia.md)
545552
- [PinMediaMetadata](https://github.com/pinterest/pinterest-python-generated-api-client/blob/main/docs/PinMediaMetadata.md)
546553
- [PinMediaSource](https://github.com/pinterest/pinterest-python-generated-api-client/blob/main/docs/PinMediaSource.md)
@@ -603,6 +610,8 @@ Class | Method | HTTP request | Description
603610
- [UserListType](https://github.com/pinterest/pinterest-python-generated-api-client/blob/main/docs/UserListType.md)
604611
- [UserSummary](https://github.com/pinterest/pinterest-python-generated-api-client/blob/main/docs/UserSummary.md)
605612
- [UserWebsiteSummary](https://github.com/pinterest/pinterest-python-generated-api-client/blob/main/docs/UserWebsiteSummary.md)
613+
- [UserWebsiteVerificationCode](https://github.com/pinterest/pinterest-python-generated-api-client/blob/main/docs/UserWebsiteVerificationCode.md)
614+
- [UserWebsiteVerifyRequest](https://github.com/pinterest/pinterest-python-generated-api-client/blob/main/docs/UserWebsiteVerifyRequest.md)
606615
- [VideoMetadata](https://github.com/pinterest/pinterest-python-generated-api-client/blob/main/docs/VideoMetadata.md)
607616

608617

docs/AdAccount.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ Name | Type | Description | Notes
1010
**country** | [**Country**](Country.md) | | [optional]
1111
**currency** | [**Currency**](Currency.md) | | [optional]
1212
**permissions** | **[str, none_type]** | | [optional]
13+
**created_time** | **int, none_type** | Creation time. Unix timestamp in seconds. | [optional]
14+
**updated_time** | **int, none_type** | Last update time. Unix timestamp in seconds. | [optional]
1315
**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]
1416

1517
[[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/ConversionEventsUserDataAnyOf.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
**em** | **[str]** | Sha256 hashes of lowercase version of user's email addresses. Used for matching. |
8+
**hashed_maids** | **[str]** | Sha256 hashes of user's \"Google Advertising IDs\" (GAIDs) or \"Apple's Identifier for Advertisers\" (IDFAs). Used for matching. | [optional]
9+
**client_ip_address** | **str** | The user's IP address, which can be either in IPv4 or IPv6 format. Used for matching. | [optional]
10+
**client_user_agent** | **str** | The user agent string of the user's web browser. | [optional]
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/ConversionEventsUserDataAnyOf1.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
**hashed_maids** | **[str]** | Sha256 hashes of user's \"Google Advertising IDs\" (GAIDs) or \"Apple's Identifier for Advertisers\" (IDFAs). Used for matching. |
8+
**em** | **[str]** | Sha256 hashes of lowercase version of user's email addresses. Used for matching. | [optional]
9+
**client_ip_address** | **str** | The user's IP address, which can be either in IPv4 or IPv6 format. Used for matching. | [optional]
10+
**client_user_agent** | **str** | The user agent string of the user's web browser. | [optional]
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/ConversionEventsUserDataAnyOf2.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**client_ip_address** | **str** | The user's IP address, which can be either in IPv4 or IPv6 format. Used for matching. |
88
**client_user_agent** | **str** | The user agent string of the user's web browser. |
9+
**em** | **[str]** | Sha256 hashes of lowercase version of user's email addresses. Used for matching. | [optional]
10+
**hashed_maids** | **[str]** | Sha256 hashes of user's \"Google Advertising IDs\" (GAIDs) or \"Apple's Identifier for Advertisers\" (IDFAs). Used for matching. | [optional]
911
**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]
1012

1113
[[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/IntegrationMetadata.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# IntegrationMetadata
2+
3+
Integration metadata
4+
5+
## Properties
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**external_business_id** | **str** | | [optional]
9+
**connected_merchant_id** | **str** | | [optional]
10+
**connected_user_id** | **str** | | [optional] [readonly]
11+
**connected_advertiser_id** | **str** | | [optional] [readonly]
12+
**connected_lba_id** | **str** | | [optional]
13+
**connected_tag_id** | **str** | | [optional]
14+
**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]
15+
16+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
17+
18+

docs/IntegrationRequest.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# IntegrationRequest
2+
3+
Schema used for creating the integration metadata.
4+
5+
## Properties
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**external_business_id** | **str** | | [optional]
9+
**connected_merchant_id** | **str** | | [optional]
10+
**connected_advertiser_id** | **str** | | [optional]
11+
**connected_lba_id** | **str** | | [optional]
12+
**connected_tag_id** | **str** | | [optional]
13+
**partner_access_token** | **str** | | [optional]
14+
**partner_primary_email** | **str** | | [optional]
15+
**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]
16+
17+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
18+
19+

docs/IntegrationRequestPatch.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# IntegrationRequestPatch
2+
3+
Schema used for updating the integration metadata.
4+
5+
## Properties
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**connected_merchant_id** | **str** | | [optional]
9+
**connected_advertiser_id** | **str** | | [optional]
10+
**connected_lba_id** | **str** | | [optional]
11+
**connected_tag_id** | **str** | | [optional]
12+
**partner_access_token** | **str** | | [optional]
13+
**partner_primary_email** | **str** | | [optional]
14+
**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]
15+
16+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
17+
18+

0 commit comments

Comments
 (0)