pinterest_sdk 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/Gemfile.lock +70 -0
- data/README.md +319 -0
- data/Rakefile +10 -0
- data/bin/bundle +114 -0
- data/bin/byebug +27 -0
- data/bin/coderay +27 -0
- data/bin/htmldiff +27 -0
- data/bin/ldiff +27 -0
- data/bin/pry +27 -0
- data/bin/rake +27 -0
- data/bin/rspec +27 -0
- data/bin/rubocop +27 -0
- data/bin/ruby-parse +27 -0
- data/bin/ruby-rewrite +27 -0
- data/docs/Account.md +24 -0
- data/docs/ActionType.md +15 -0
- data/docs/AdAccount.md +26 -0
- data/docs/AdAccountOwner.md +18 -0
- data/docs/AdAccountsApi.md +929 -0
- data/docs/AdGroupResponse.md +62 -0
- data/docs/AdGroupResponseAllOf.md +48 -0
- data/docs/AdGroupResponseAllOf1.md +30 -0
- data/docs/AdGroupSummaryStatus.md +15 -0
- data/docs/AdResponse.md +70 -0
- data/docs/AdResponseAllOf.md +48 -0
- data/docs/AdResponseAllOf1.md +38 -0
- data/docs/AdsAnalyticsCreateAsyncRequest.md +62 -0
- data/docs/AdsAnalyticsCreateAsyncRequestAllOf.md +32 -0
- data/docs/AdsAnalyticsCreateAsyncRequestAllOf1.md +22 -0
- data/docs/AdsAnalyticsCreateAsyncResponse.md +22 -0
- data/docs/AdsAnalyticsFilterColumn.md +15 -0
- data/docs/AdsAnalyticsFilterOperator.md +15 -0
- data/docs/AdsAnalyticsGetAsyncResponse.md +22 -0
- data/docs/AdsAnalyticsMetricsFilter.md +22 -0
- data/docs/AdsAnalyticsTargetingType.md +15 -0
- data/docs/AnalyticsMetricsResponse.md +20 -0
- data/docs/AnalyticsMetricsResponseDailyMetrics.md +22 -0
- data/docs/AvailabilityFilter.md +18 -0
- data/docs/BatchOperation.md +15 -0
- data/docs/BatchOperationStatus.md +15 -0
- data/docs/Board.md +26 -0
- data/docs/BoardOwner.md +18 -0
- data/docs/BoardSection.md +20 -0
- data/docs/BoardUpdate.md +22 -0
- data/docs/BoardsApi.md +811 -0
- data/docs/BrandFilter.md +18 -0
- data/docs/CampaignCommon.md +34 -0
- data/docs/CampaignResponse.md +44 -0
- data/docs/CampaignResponseAllOf.md +18 -0
- data/docs/CampaignResponseAllOf1.md +24 -0
- data/docs/CampaignSummaryStatus.md +15 -0
- data/docs/CatalogsApi.md +939 -0
- data/docs/CatalogsDbItem.md +22 -0
- data/docs/CatalogsFeed.md +42 -0
- data/docs/CatalogsFeedCredentials.md +20 -0
- data/docs/CatalogsFeedIngestionDetails.md +20 -0
- data/docs/CatalogsFeedIngestionErrors.md +26 -0
- data/docs/CatalogsFeedIngestionInfo.md +22 -0
- data/docs/CatalogsFeedProcessingResult.md +30 -0
- data/docs/CatalogsFeedProcessingResultFields.md +24 -0
- data/docs/CatalogsFeedProcessingSchedule.md +20 -0
- data/docs/CatalogsFeedProcessingStatus.md +15 -0
- data/docs/CatalogsFeedProductCounts.md +18 -0
- data/docs/CatalogsFeedValidationDetails.md +20 -0
- data/docs/CatalogsFeedValidationErrors.md +84 -0
- data/docs/CatalogsFeedValidationWarnings.md +106 -0
- data/docs/CatalogsFeedsCreateRequest.md +34 -0
- data/docs/CatalogsFeedsUpdateRequest.md +32 -0
- data/docs/CatalogsFormat.md +15 -0
- data/docs/CatalogsItems.md +18 -0
- data/docs/CatalogsItemsBatch.md +26 -0
- data/docs/CatalogsItemsBatchRequest.md +24 -0
- data/docs/CatalogsProductGroup.md +34 -0
- data/docs/CatalogsProductGroupCreateRequest.md +24 -0
- data/docs/CatalogsProductGroupCurrencyCriteria.md +20 -0
- data/docs/CatalogsProductGroupFilterKeys.md +68 -0
- data/docs/CatalogsProductGroupFilters.md +20 -0
- data/docs/CatalogsProductGroupFiltersAllOf.md +18 -0
- data/docs/CatalogsProductGroupFiltersAnyOf.md +18 -0
- data/docs/CatalogsProductGroupMultipleStringCriteria.md +20 -0
- data/docs/CatalogsProductGroupMultipleStringListCriteria.md +20 -0
- data/docs/CatalogsProductGroupPricingCriteria.md +22 -0
- data/docs/CatalogsProductGroupStatus.md +15 -0
- data/docs/CatalogsProductGroupType.md +15 -0
- data/docs/CatalogsProductGroupUpdateRequest.md +24 -0
- data/docs/CatalogsStatus.md +15 -0
- data/docs/ConditionFilter.md +18 -0
- data/docs/ConversionAttributionWindowDays.md +15 -0
- data/docs/ConversionReportAttributionType.md +15 -0
- data/docs/ConversionReportTimeType.md +15 -0
- data/docs/Country.md +15 -0
- data/docs/Currency.md +15 -0
- data/docs/CurrencyFilter.md +18 -0
- data/docs/CustomLabel0Filter.md +18 -0
- data/docs/CustomLabel1Filter.md +18 -0
- data/docs/CustomLabel2Filter.md +18 -0
- data/docs/CustomLabel3Filter.md +18 -0
- data/docs/CustomLabel4Filter.md +18 -0
- data/docs/DataOutputFormat.md +15 -0
- data/docs/EntityStatus.md +15 -0
- data/docs/Error.md +20 -0
- data/docs/FeedFields.md +36 -0
- data/docs/GenderFilter.md +18 -0
- data/docs/GoogleProductCategory0Filter.md +18 -0
- data/docs/GoogleProductCategory1Filter.md +18 -0
- data/docs/GoogleProductCategory2Filter.md +18 -0
- data/docs/GoogleProductCategory3Filter.md +18 -0
- data/docs/GoogleProductCategory4Filter.md +18 -0
- data/docs/GoogleProductCategory5Filter.md +18 -0
- data/docs/GoogleProductCategory6Filter.md +18 -0
- data/docs/Granularity.md +15 -0
- data/docs/ImageDetails.md +22 -0
- data/docs/ItemAttributes.md +104 -0
- data/docs/ItemBatchRecord.md +20 -0
- data/docs/ItemGroupIdFilter.md +18 -0
- data/docs/ItemIdFilter.md +18 -0
- data/docs/ItemProcessingRecord.md +24 -0
- data/docs/ItemProcessingStatus.md +15 -0
- data/docs/ItemValidationEvent.md +22 -0
- data/docs/Language.md +15 -0
- data/docs/MaxPriceFilter.md +18 -0
- data/docs/MediaApi.md +221 -0
- data/docs/MediaUpload.md +24 -0
- data/docs/MediaUploadAllOf.md +24 -0
- data/docs/MediaUploadAllOfUploadParameters.md +32 -0
- data/docs/MediaUploadDetails.md +22 -0
- data/docs/MediaUploadRequest.md +18 -0
- data/docs/MediaUploadStatus.md +15 -0
- data/docs/MediaUploadType.md +15 -0
- data/docs/MetricsReportingLevel.md +15 -0
- data/docs/MinPriceFilter.md +18 -0
- data/docs/NonNullableCatalogsCurrency.md +15 -0
- data/docs/NullableCurrency.md +15 -0
- data/docs/OauthAccessTokenRequest.md +18 -0
- data/docs/OauthAccessTokenRequestCode.md +20 -0
- data/docs/OauthAccessTokenRequestCodeAllOf.md +20 -0
- data/docs/OauthAccessTokenRequestRefresh.md +20 -0
- data/docs/OauthAccessTokenRequestRefreshAllOf.md +20 -0
- data/docs/OauthAccessTokenResponse.md +26 -0
- data/docs/OauthAccessTokenResponseCode.md +20 -0
- data/docs/OauthAccessTokenResponseCodeAllOf.md +20 -0
- data/docs/OauthAccessTokenResponseRefresh.md +15 -0
- data/docs/OauthApi.md +72 -0
- data/docs/ObjectiveType.md +15 -0
- data/docs/PacingDeliveryType.md +15 -0
- data/docs/Paginated.md +20 -0
- data/docs/Pin.md +38 -0
- data/docs/PinMedia.md +18 -0
- data/docs/PinMediaSource.md +81 -0
- data/docs/PinMediaSourceImageBase64.md +22 -0
- data/docs/PinMediaSourceImageURL.md +20 -0
- data/docs/PinMediaSourceVideoID.md +22 -0
- data/docs/PinMediaWithImage.md +18 -0
- data/docs/PinMediaWithImageAllOf.md +18 -0
- data/docs/PinPromotionSummaryStatus.md +15 -0
- data/docs/PinsApi.md +304 -0
- data/docs/PlacementGroupType.md +15 -0
- data/docs/ProductAvailabilityType.md +15 -0
- data/docs/ProductGroupSummaryStatus.md +15 -0
- data/docs/ProductType0Filter.md +18 -0
- data/docs/ProductType1Filter.md +18 -0
- data/docs/ProductType2Filter.md +18 -0
- data/docs/ProductType3Filter.md +18 -0
- data/docs/ProductType4Filter.md +18 -0
- data/docs/ReportingColumnAsync.md +15 -0
- data/docs/TargetingTypeFilter.md +18 -0
- data/docs/TrackingUrls.md +26 -0
- data/docs/UserAccountApi.md +165 -0
- data/git_push.sh +57 -0
- data/lib/pinterest_sdk/api/ad_accounts_api.rb +1287 -0
- data/lib/pinterest_sdk/api/boards_api.rb +888 -0
- data/lib/pinterest_sdk/api/catalogs_api.rb +965 -0
- data/lib/pinterest_sdk/api/media_api.rb +229 -0
- data/lib/pinterest_sdk/api/oauth_api.rb +96 -0
- data/lib/pinterest_sdk/api/pins_api.rb +330 -0
- data/lib/pinterest_sdk/api/user_account_api.rb +201 -0
- data/lib/pinterest_sdk/api_client.rb +390 -0
- data/lib/pinterest_sdk/api_error.rb +57 -0
- data/lib/pinterest_sdk/configuration.rb +285 -0
- data/lib/pinterest_sdk/models/account.rb +280 -0
- data/lib/pinterest_sdk/models/action_type.rb +39 -0
- data/lib/pinterest_sdk/models/ad_account.rb +254 -0
- data/lib/pinterest_sdk/models/ad_account_owner.rb +219 -0
- data/lib/pinterest_sdk/models/ad_group_response.rb +555 -0
- data/lib/pinterest_sdk/models/ad_group_response_all_of.rb +427 -0
- data/lib/pinterest_sdk/models/ad_group_response_all_of1.rb +329 -0
- data/lib/pinterest_sdk/models/ad_group_summary_status.rb +41 -0
- data/lib/pinterest_sdk/models/ad_response.rb +640 -0
- data/lib/pinterest_sdk/models/ad_response_all_of.rb +455 -0
- data/lib/pinterest_sdk/models/ad_response_all_of1.rb +409 -0
- data/lib/pinterest_sdk/models/ads_analytics_create_async_request.rb +831 -0
- data/lib/pinterest_sdk/models/ads_analytics_create_async_request_all_of.rb +356 -0
- data/lib/pinterest_sdk/models/ads_analytics_create_async_request_all_of1.rb +253 -0
- data/lib/pinterest_sdk/models/ads_analytics_create_async_response.rb +237 -0
- data/lib/pinterest_sdk/models/ads_analytics_filter_column.rb +37 -0
- data/lib/pinterest_sdk/models/ads_analytics_filter_operator.rb +37 -0
- data/lib/pinterest_sdk/models/ads_analytics_get_async_response.rb +238 -0
- data/lib/pinterest_sdk/models/ads_analytics_metrics_filter.rb +254 -0
- data/lib/pinterest_sdk/models/ads_analytics_targeting_type.rb +48 -0
- data/lib/pinterest_sdk/models/analytics_metrics_response.rb +233 -0
- data/lib/pinterest_sdk/models/analytics_metrics_response_daily_metrics.rb +275 -0
- data/lib/pinterest_sdk/models/availability_filter.rb +223 -0
- data/lib/pinterest_sdk/models/batch_operation.rb +38 -0
- data/lib/pinterest_sdk/models/batch_operation_status.rb +37 -0
- data/lib/pinterest_sdk/models/board.rb +301 -0
- data/lib/pinterest_sdk/models/board_owner.rb +218 -0
- data/lib/pinterest_sdk/models/board_section.rb +252 -0
- data/lib/pinterest_sdk/models/board_update.rb +272 -0
- data/lib/pinterest_sdk/models/brand_filter.rb +223 -0
- data/lib/pinterest_sdk/models/campaign_common.rb +352 -0
- data/lib/pinterest_sdk/models/campaign_response.rb +435 -0
- data/lib/pinterest_sdk/models/campaign_response_all_of.rb +245 -0
- data/lib/pinterest_sdk/models/campaign_response_all_of1.rb +248 -0
- data/lib/pinterest_sdk/models/campaign_summary_status.rb +41 -0
- data/lib/pinterest_sdk/models/catalogs_db_item.rb +236 -0
- data/lib/pinterest_sdk/models/catalogs_feed.rb +368 -0
- data/lib/pinterest_sdk/models/catalogs_feed_credentials.rb +240 -0
- data/lib/pinterest_sdk/models/catalogs_feed_ingestion_details.rb +237 -0
- data/lib/pinterest_sdk/models/catalogs_feed_ingestion_errors.rb +288 -0
- data/lib/pinterest_sdk/models/catalogs_feed_ingestion_info.rb +236 -0
- data/lib/pinterest_sdk/models/catalogs_feed_processing_result.rb +296 -0
- data/lib/pinterest_sdk/models/catalogs_feed_processing_result_fields.rb +261 -0
- data/lib/pinterest_sdk/models/catalogs_feed_processing_schedule.rb +291 -0
- data/lib/pinterest_sdk/models/catalogs_feed_processing_status.rb +43 -0
- data/lib/pinterest_sdk/models/catalogs_feed_product_counts.rb +220 -0
- data/lib/pinterest_sdk/models/catalogs_feed_validation_details.rb +237 -0
- data/lib/pinterest_sdk/models/catalogs_feed_validation_errors.rb +515 -0
- data/lib/pinterest_sdk/models/catalogs_feed_validation_warnings.rb +614 -0
- data/lib/pinterest_sdk/models/catalogs_feeds_create_request.rb +313 -0
- data/lib/pinterest_sdk/models/catalogs_feeds_update_request.rb +288 -0
- data/lib/pinterest_sdk/models/catalogs_format.rb +38 -0
- data/lib/pinterest_sdk/models/catalogs_items.rb +222 -0
- data/lib/pinterest_sdk/models/catalogs_items_batch.rb +262 -0
- data/lib/pinterest_sdk/models/catalogs_items_batch_request.rb +249 -0
- data/lib/pinterest_sdk/models/catalogs_product_group.rb +345 -0
- data/lib/pinterest_sdk/models/catalogs_product_group_create_request.rb +284 -0
- data/lib/pinterest_sdk/models/catalogs_product_group_currency_criteria.rb +237 -0
- data/lib/pinterest_sdk/models/catalogs_product_group_filter_keys.rb +617 -0
- data/lib/pinterest_sdk/models/catalogs_product_group_filters.rb +252 -0
- data/lib/pinterest_sdk/models/catalogs_product_group_filters_all_of.rb +220 -0
- data/lib/pinterest_sdk/models/catalogs_product_group_filters_any_of.rb +220 -0
- data/lib/pinterest_sdk/models/catalogs_product_group_multiple_string_criteria.rb +239 -0
- data/lib/pinterest_sdk/models/catalogs_product_group_multiple_string_list_criteria.rb +239 -0
- data/lib/pinterest_sdk/models/catalogs_product_group_pricing_criteria.rb +251 -0
- data/lib/pinterest_sdk/models/catalogs_product_group_status.rb +37 -0
- data/lib/pinterest_sdk/models/catalogs_product_group_type.rb +42 -0
- data/lib/pinterest_sdk/models/catalogs_product_group_update_request.rb +284 -0
- data/lib/pinterest_sdk/models/catalogs_status.rb +37 -0
- data/lib/pinterest_sdk/models/condition_filter.rb +223 -0
- data/lib/pinterest_sdk/models/conversion_attribution_window_days.rb +39 -0
- data/lib/pinterest_sdk/models/conversion_report_attribution_type.rb +37 -0
- data/lib/pinterest_sdk/models/conversion_report_time_type.rb +37 -0
- data/lib/pinterest_sdk/models/country.rb +282 -0
- data/lib/pinterest_sdk/models/currency.rb +60 -0
- data/lib/pinterest_sdk/models/currency_filter.rb +223 -0
- data/lib/pinterest_sdk/models/custom_label0_filter.rb +223 -0
- data/lib/pinterest_sdk/models/custom_label1_filter.rb +223 -0
- data/lib/pinterest_sdk/models/custom_label2_filter.rb +223 -0
- data/lib/pinterest_sdk/models/custom_label3_filter.rb +223 -0
- data/lib/pinterest_sdk/models/custom_label4_filter.rb +223 -0
- data/lib/pinterest_sdk/models/data_output_format.rb +37 -0
- data/lib/pinterest_sdk/models/entity_status.rb +38 -0
- data/lib/pinterest_sdk/models/error.rb +237 -0
- data/lib/pinterest_sdk/models/feed_fields.rb +332 -0
- data/lib/pinterest_sdk/models/gender_filter.rb +223 -0
- data/lib/pinterest_sdk/models/google_product_category0_filter.rb +223 -0
- data/lib/pinterest_sdk/models/google_product_category1_filter.rb +223 -0
- data/lib/pinterest_sdk/models/google_product_category2_filter.rb +223 -0
- data/lib/pinterest_sdk/models/google_product_category3_filter.rb +223 -0
- data/lib/pinterest_sdk/models/google_product_category4_filter.rb +223 -0
- data/lib/pinterest_sdk/models/google_product_category5_filter.rb +223 -0
- data/lib/pinterest_sdk/models/google_product_category6_filter.rb +223 -0
- data/lib/pinterest_sdk/models/granularity.rb +40 -0
- data/lib/pinterest_sdk/models/image_details.rb +281 -0
- data/lib/pinterest_sdk/models/item_attributes.rb +833 -0
- data/lib/pinterest_sdk/models/item_batch_record.rb +229 -0
- data/lib/pinterest_sdk/models/item_group_id_filter.rb +223 -0
- data/lib/pinterest_sdk/models/item_id_filter.rb +223 -0
- data/lib/pinterest_sdk/models/item_processing_record.rb +253 -0
- data/lib/pinterest_sdk/models/item_processing_status.rb +38 -0
- data/lib/pinterest_sdk/models/item_validation_event.rb +240 -0
- data/lib/pinterest_sdk/models/language.rb +96 -0
- data/lib/pinterest_sdk/models/max_price_filter.rb +223 -0
- data/lib/pinterest_sdk/models/media_upload.rb +255 -0
- data/lib/pinterest_sdk/models/media_upload_all_of.rb +247 -0
- data/lib/pinterest_sdk/models/media_upload_all_of_upload_parameters.rb +282 -0
- data/lib/pinterest_sdk/models/media_upload_details.rb +254 -0
- data/lib/pinterest_sdk/models/media_upload_request.rb +224 -0
- data/lib/pinterest_sdk/models/media_upload_status.rb +39 -0
- data/lib/pinterest_sdk/models/media_upload_type.rb +36 -0
- data/lib/pinterest_sdk/models/metrics_reporting_level.rb +47 -0
- data/lib/pinterest_sdk/models/min_price_filter.rb +223 -0
- data/lib/pinterest_sdk/models/non_nullable_catalogs_currency.rb +198 -0
- data/lib/pinterest_sdk/models/nullable_currency.rb +199 -0
- data/lib/pinterest_sdk/models/oauth_access_token_request_code.rb +272 -0
- data/lib/pinterest_sdk/models/oauth_access_token_request_code_all_of.rb +237 -0
- data/lib/pinterest_sdk/models/oauth_access_token_request_refresh.rb +267 -0
- data/lib/pinterest_sdk/models/oauth_access_token_request_refresh_all_of.rb +232 -0
- data/lib/pinterest_sdk/models/oauth_access_token_response.rb +316 -0
- data/lib/pinterest_sdk/models/oauth_access_token_response_code.rb +272 -0
- data/lib/pinterest_sdk/models/oauth_access_token_response_code_all_of.rb +237 -0
- data/lib/pinterest_sdk/models/oauth_access_token_response_refresh.rb +243 -0
- data/lib/pinterest_sdk/models/objective_type.rb +43 -0
- data/lib/pinterest_sdk/models/pacing_delivery_type.rb +37 -0
- data/lib/pinterest_sdk/models/paginated.rb +235 -0
- data/lib/pinterest_sdk/models/pin.rb +359 -0
- data/lib/pinterest_sdk/models/pin_media.rb +224 -0
- data/lib/pinterest_sdk/models/pin_media_source.rb +58 -0
- data/lib/pinterest_sdk/models/pin_media_source_image_base64.rb +319 -0
- data/lib/pinterest_sdk/models/pin_media_source_image_url.rb +272 -0
- data/lib/pinterest_sdk/models/pin_media_source_video_id.rb +307 -0
- data/lib/pinterest_sdk/models/pin_media_with_image.rb +233 -0
- data/lib/pinterest_sdk/models/pin_media_with_image_all_of.rb +220 -0
- data/lib/pinterest_sdk/models/pin_promotion_summary_status.rb +41 -0
- data/lib/pinterest_sdk/models/placement_group_type.rb +39 -0
- data/lib/pinterest_sdk/models/product_availability_type.rb +39 -0
- data/lib/pinterest_sdk/models/product_group_summary_status.rb +39 -0
- data/lib/pinterest_sdk/models/product_type0_filter.rb +223 -0
- data/lib/pinterest_sdk/models/product_type1_filter.rb +223 -0
- data/lib/pinterest_sdk/models/product_type2_filter.rb +223 -0
- data/lib/pinterest_sdk/models/product_type3_filter.rb +223 -0
- data/lib/pinterest_sdk/models/product_type4_filter.rb +223 -0
- data/lib/pinterest_sdk/models/reporting_column_async.rb +549 -0
- data/lib/pinterest_sdk/models/targeting_type_filter.rb +245 -0
- data/lib/pinterest_sdk/models/tracking_urls.rb +340 -0
- data/lib/pinterest_sdk/version.rb +15 -0
- data/lib/pinterest_sdk.rb +192 -0
- data/pinterest_sdk.gemspec +38 -0
- data/spec/api/ad_accounts_api_spec.rb +234 -0
- data/spec/api/boards_api_spec.rb +181 -0
- data/spec/api/catalogs_api_spec.rb +200 -0
- data/spec/api/media_api_spec.rb +72 -0
- data/spec/api/oauth_api_spec.rb +47 -0
- data/spec/api/pins_api_spec.rb +90 -0
- data/spec/api/user_account_api_spec.rb +66 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/account_spec.rb +56 -0
- data/spec/models/action_type_spec.rb +28 -0
- data/spec/models/ad_account_owner_spec.rb +34 -0
- data/spec/models/ad_account_spec.rb +58 -0
- data/spec/models/ad_group_response_all_of1_spec.rb +70 -0
- data/spec/models/ad_group_response_all_of_spec.rb +132 -0
- data/spec/models/ad_group_response_spec.rb +174 -0
- data/spec/models/ad_group_summary_status_spec.rb +28 -0
- data/spec/models/ad_response_all_of1_spec.rb +102 -0
- data/spec/models/ad_response_all_of_spec.rb +128 -0
- data/spec/models/ad_response_spec.rb +202 -0
- data/spec/models/ads_analytics_create_async_request_all_of1_spec.rb +46 -0
- data/spec/models/ads_analytics_create_async_request_all_of_spec.rb +76 -0
- data/spec/models/ads_analytics_create_async_request_spec.rb +166 -0
- data/spec/models/ads_analytics_create_async_response_spec.rb +46 -0
- data/spec/models/ads_analytics_filter_column_spec.rb +28 -0
- data/spec/models/ads_analytics_filter_operator_spec.rb +28 -0
- data/spec/models/ads_analytics_get_async_response_spec.rb +46 -0
- data/spec/models/ads_analytics_metrics_filter_spec.rb +46 -0
- data/spec/models/ads_analytics_targeting_type_spec.rb +28 -0
- data/spec/models/analytics_metrics_response_daily_metrics_spec.rb +50 -0
- data/spec/models/analytics_metrics_response_spec.rb +40 -0
- data/spec/models/availability_filter_spec.rb +34 -0
- data/spec/models/batch_operation_spec.rb +28 -0
- data/spec/models/batch_operation_status_spec.rb +28 -0
- data/spec/models/board_owner_spec.rb +34 -0
- data/spec/models/board_section_spec.rb +40 -0
- data/spec/models/board_spec.rb +62 -0
- data/spec/models/board_update_spec.rb +50 -0
- data/spec/models/brand_filter_spec.rb +34 -0
- data/spec/models/campaign_common_spec.rb +82 -0
- data/spec/models/campaign_response_all_of1_spec.rb +52 -0
- data/spec/models/campaign_response_all_of_spec.rb +34 -0
- data/spec/models/campaign_response_spec.rb +112 -0
- data/spec/models/campaign_summary_status_spec.rb +28 -0
- data/spec/models/catalogs_db_item_spec.rb +46 -0
- data/spec/models/catalogs_feed_credentials_spec.rb +40 -0
- data/spec/models/catalogs_feed_ingestion_details_spec.rb +40 -0
- data/spec/models/catalogs_feed_ingestion_errors_spec.rb +62 -0
- data/spec/models/catalogs_feed_ingestion_info_spec.rb +46 -0
- data/spec/models/catalogs_feed_processing_result_fields_spec.rb +52 -0
- data/spec/models/catalogs_feed_processing_result_spec.rb +70 -0
- data/spec/models/catalogs_feed_processing_schedule_spec.rb +44 -0
- data/spec/models/catalogs_feed_processing_status_spec.rb +28 -0
- data/spec/models/catalogs_feed_product_counts_spec.rb +34 -0
- data/spec/models/catalogs_feed_spec.rb +106 -0
- data/spec/models/catalogs_feed_validation_details_spec.rb +40 -0
- data/spec/models/catalogs_feed_validation_errors_spec.rb +232 -0
- data/spec/models/catalogs_feed_validation_warnings_spec.rb +298 -0
- data/spec/models/catalogs_feeds_create_request_spec.rb +82 -0
- data/spec/models/catalogs_feeds_update_request_spec.rb +76 -0
- data/spec/models/catalogs_format_spec.rb +28 -0
- data/spec/models/catalogs_items_batch_request_spec.rb +52 -0
- data/spec/models/catalogs_items_batch_spec.rb +58 -0
- data/spec/models/catalogs_items_spec.rb +34 -0
- data/spec/models/catalogs_product_group_create_request_spec.rb +52 -0
- data/spec/models/catalogs_product_group_currency_criteria_spec.rb +40 -0
- data/spec/models/catalogs_product_group_filter_keys_spec.rb +184 -0
- data/spec/models/catalogs_product_group_filters_all_of_spec.rb +34 -0
- data/spec/models/catalogs_product_group_filters_any_of_spec.rb +34 -0
- data/spec/models/catalogs_product_group_filters_spec.rb +40 -0
- data/spec/models/catalogs_product_group_multiple_string_criteria_spec.rb +40 -0
- data/spec/models/catalogs_product_group_multiple_string_list_criteria_spec.rb +40 -0
- data/spec/models/catalogs_product_group_pricing_criteria_spec.rb +46 -0
- data/spec/models/catalogs_product_group_spec.rb +82 -0
- data/spec/models/catalogs_product_group_status_spec.rb +28 -0
- data/spec/models/catalogs_product_group_type_spec.rb +28 -0
- data/spec/models/catalogs_product_group_update_request_spec.rb +52 -0
- data/spec/models/catalogs_status_spec.rb +28 -0
- data/spec/models/condition_filter_spec.rb +34 -0
- data/spec/models/conversion_attribution_window_days_spec.rb +28 -0
- data/spec/models/conversion_report_attribution_type_spec.rb +28 -0
- data/spec/models/conversion_report_time_type_spec.rb +28 -0
- data/spec/models/country_spec.rb +28 -0
- data/spec/models/currency_filter_spec.rb +34 -0
- data/spec/models/currency_spec.rb +28 -0
- data/spec/models/custom_label0_filter_spec.rb +34 -0
- data/spec/models/custom_label1_filter_spec.rb +34 -0
- data/spec/models/custom_label2_filter_spec.rb +34 -0
- data/spec/models/custom_label3_filter_spec.rb +34 -0
- data/spec/models/custom_label4_filter_spec.rb +34 -0
- data/spec/models/data_output_format_spec.rb +28 -0
- data/spec/models/entity_status_spec.rb +28 -0
- data/spec/models/error_spec.rb +40 -0
- data/spec/models/feed_fields_spec.rb +88 -0
- data/spec/models/gender_filter_spec.rb +34 -0
- data/spec/models/google_product_category0_filter_spec.rb +34 -0
- data/spec/models/google_product_category1_filter_spec.rb +34 -0
- data/spec/models/google_product_category2_filter_spec.rb +34 -0
- data/spec/models/google_product_category3_filter_spec.rb +34 -0
- data/spec/models/google_product_category4_filter_spec.rb +34 -0
- data/spec/models/google_product_category5_filter_spec.rb +34 -0
- data/spec/models/google_product_category6_filter_spec.rb +34 -0
- data/spec/models/granularity_spec.rb +28 -0
- data/spec/models/image_details_spec.rb +46 -0
- data/spec/models/item_attributes_spec.rb +292 -0
- data/spec/models/item_batch_record_spec.rb +40 -0
- data/spec/models/item_group_id_filter_spec.rb +34 -0
- data/spec/models/item_id_filter_spec.rb +34 -0
- data/spec/models/item_processing_record_spec.rb +52 -0
- data/spec/models/item_processing_status_spec.rb +28 -0
- data/spec/models/item_validation_event_spec.rb +46 -0
- data/spec/models/language_spec.rb +28 -0
- data/spec/models/max_price_filter_spec.rb +34 -0
- data/spec/models/media_upload_all_of_spec.rb +52 -0
- data/spec/models/media_upload_all_of_upload_parameters_spec.rb +76 -0
- data/spec/models/media_upload_details_spec.rb +46 -0
- data/spec/models/media_upload_request_spec.rb +34 -0
- data/spec/models/media_upload_spec.rb +52 -0
- data/spec/models/media_upload_status_spec.rb +28 -0
- data/spec/models/media_upload_type_spec.rb +28 -0
- data/spec/models/metrics_reporting_level_spec.rb +28 -0
- data/spec/models/min_price_filter_spec.rb +34 -0
- data/spec/models/non_nullable_catalogs_currency_spec.rb +28 -0
- data/spec/models/nullable_currency_spec.rb +28 -0
- data/spec/models/oauth_access_token_request_code_all_of_spec.rb +40 -0
- data/spec/models/oauth_access_token_request_code_spec.rb +40 -0
- data/spec/models/oauth_access_token_request_refresh_all_of_spec.rb +40 -0
- data/spec/models/oauth_access_token_request_refresh_spec.rb +40 -0
- data/spec/models/oauth_access_token_request_spec.rb +38 -0
- data/spec/models/oauth_access_token_response_code_all_of_spec.rb +40 -0
- data/spec/models/oauth_access_token_response_code_spec.rb +40 -0
- data/spec/models/oauth_access_token_response_refresh_spec.rb +28 -0
- data/spec/models/oauth_access_token_response_spec.rb +62 -0
- data/spec/models/objective_type_spec.rb +28 -0
- data/spec/models/pacing_delivery_type_spec.rb +28 -0
- data/spec/models/paginated_spec.rb +40 -0
- data/spec/models/pin_media_source_image_base64_spec.rb +54 -0
- data/spec/models/pin_media_source_image_url_spec.rb +44 -0
- data/spec/models/pin_media_source_spec.rb +43 -0
- data/spec/models/pin_media_source_video_id_spec.rb +50 -0
- data/spec/models/pin_media_spec.rb +34 -0
- data/spec/models/pin_media_with_image_all_of_spec.rb +34 -0
- data/spec/models/pin_media_with_image_spec.rb +34 -0
- data/spec/models/pin_promotion_summary_status_spec.rb +28 -0
- data/spec/models/pin_spec.rb +94 -0
- data/spec/models/placement_group_type_spec.rb +28 -0
- data/spec/models/product_availability_type_spec.rb +28 -0
- data/spec/models/product_group_summary_status_spec.rb +28 -0
- data/spec/models/product_type0_filter_spec.rb +34 -0
- data/spec/models/product_type1_filter_spec.rb +34 -0
- data/spec/models/product_type2_filter_spec.rb +34 -0
- data/spec/models/product_type3_filter_spec.rb +34 -0
- data/spec/models/product_type4_filter_spec.rb +34 -0
- data/spec/models/reporting_column_async_spec.rb +28 -0
- data/spec/models/targeting_type_filter_spec.rb +34 -0
- data/spec/models/tracking_urls_spec.rb +58 -0
- data/spec/spec_helper.rb +111 -0
- metadata +726 -0
data/docs/BoardsApi.md
ADDED
@@ -0,0 +1,811 @@
|
|
1
|
+
# PinterestSdkClient::BoardsApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.pinterest.com/v5*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**board_sections_create**](BoardsApi.md#board_sections_create) | **POST** /boards/{board_id}/sections | Create board section |
|
8
|
+
| [**board_sections_delete**](BoardsApi.md#board_sections_delete) | **DELETE** /boards/{board_id}/sections/{section_id} | Delete board section |
|
9
|
+
| [**board_sections_list**](BoardsApi.md#board_sections_list) | **GET** /boards/{board_id}/sections | List board sections |
|
10
|
+
| [**board_sections_list_pins**](BoardsApi.md#board_sections_list_pins) | **GET** /boards/{board_id}/sections/{section_id}/pins | List Pins on board section |
|
11
|
+
| [**board_sections_update**](BoardsApi.md#board_sections_update) | **PATCH** /boards/{board_id}/sections/{section_id} | Update board section |
|
12
|
+
| [**boards_create**](BoardsApi.md#boards_create) | **POST** /boards | Create board |
|
13
|
+
| [**boards_delete**](BoardsApi.md#boards_delete) | **DELETE** /boards/{board_id} | Delete board |
|
14
|
+
| [**boards_get**](BoardsApi.md#boards_get) | **GET** /boards/{board_id} | Get board |
|
15
|
+
| [**boards_list**](BoardsApi.md#boards_list) | **GET** /boards | List boards |
|
16
|
+
| [**boards_list_pins**](BoardsApi.md#boards_list_pins) | **GET** /boards/{board_id}/pins | List Pins on board |
|
17
|
+
| [**boards_update**](BoardsApi.md#boards_update) | **PATCH** /boards/{board_id} | Update board |
|
18
|
+
|
19
|
+
|
20
|
+
## board_sections_create
|
21
|
+
|
22
|
+
> <BoardSection> board_sections_create(board_id, board_section)
|
23
|
+
|
24
|
+
Create board section
|
25
|
+
|
26
|
+
Create a board section on a board owned by the \"operation user_account\" - or on a group board that has been shared with this account. - By default, the \"operation user_account\" is the token user_account.
|
27
|
+
|
28
|
+
### Examples
|
29
|
+
|
30
|
+
```ruby
|
31
|
+
require 'time'
|
32
|
+
require 'pinterest_sdk'
|
33
|
+
# setup authorization
|
34
|
+
PinterestSdkClient.configure do |config|
|
35
|
+
# Configure OAuth2 access token for authorization: pinterest_oauth2
|
36
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
37
|
+
end
|
38
|
+
|
39
|
+
api_instance = PinterestSdkClient::BoardsApi.new
|
40
|
+
board_id = 'board_id_example' # String | Unique identifier of a board.
|
41
|
+
board_section = PinterestSdkClient::BoardSection.new # BoardSection | Create a board section.
|
42
|
+
|
43
|
+
begin
|
44
|
+
# Create board section
|
45
|
+
result = api_instance.board_sections_create(board_id, board_section)
|
46
|
+
p result
|
47
|
+
rescue PinterestSdkClient::ApiError => e
|
48
|
+
puts "Error when calling BoardsApi->board_sections_create: #{e}"
|
49
|
+
end
|
50
|
+
```
|
51
|
+
|
52
|
+
#### Using the board_sections_create_with_http_info variant
|
53
|
+
|
54
|
+
This returns an Array which contains the response data, status code and headers.
|
55
|
+
|
56
|
+
> <Array(<BoardSection>, Integer, Hash)> board_sections_create_with_http_info(board_id, board_section)
|
57
|
+
|
58
|
+
```ruby
|
59
|
+
begin
|
60
|
+
# Create board section
|
61
|
+
data, status_code, headers = api_instance.board_sections_create_with_http_info(board_id, board_section)
|
62
|
+
p status_code # => 2xx
|
63
|
+
p headers # => { ... }
|
64
|
+
p data # => <BoardSection>
|
65
|
+
rescue PinterestSdkClient::ApiError => e
|
66
|
+
puts "Error when calling BoardsApi->board_sections_create_with_http_info: #{e}"
|
67
|
+
end
|
68
|
+
```
|
69
|
+
|
70
|
+
### Parameters
|
71
|
+
|
72
|
+
| Name | Type | Description | Notes |
|
73
|
+
| ---- | ---- | ----------- | ----- |
|
74
|
+
| **board_id** | **String** | Unique identifier of a board. | |
|
75
|
+
| **board_section** | [**BoardSection**](BoardSection.md) | Create a board section. | |
|
76
|
+
|
77
|
+
### Return type
|
78
|
+
|
79
|
+
[**BoardSection**](BoardSection.md)
|
80
|
+
|
81
|
+
### Authorization
|
82
|
+
|
83
|
+
[pinterest_oauth2](../README.md#pinterest_oauth2)
|
84
|
+
|
85
|
+
### HTTP request headers
|
86
|
+
|
87
|
+
- **Content-Type**: application/json
|
88
|
+
- **Accept**: application/json
|
89
|
+
|
90
|
+
|
91
|
+
## board_sections_delete
|
92
|
+
|
93
|
+
> board_sections_delete(board_id, section_id)
|
94
|
+
|
95
|
+
Delete board section
|
96
|
+
|
97
|
+
Delete a board section on a board owned by the \"operation user_account\" - or on a group board that has been shared with this account. - By default, the \"operation user_account\" is the token user_account.
|
98
|
+
|
99
|
+
### Examples
|
100
|
+
|
101
|
+
```ruby
|
102
|
+
require 'time'
|
103
|
+
require 'pinterest_sdk'
|
104
|
+
# setup authorization
|
105
|
+
PinterestSdkClient.configure do |config|
|
106
|
+
# Configure OAuth2 access token for authorization: pinterest_oauth2
|
107
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
108
|
+
end
|
109
|
+
|
110
|
+
api_instance = PinterestSdkClient::BoardsApi.new
|
111
|
+
board_id = 'board_id_example' # String | Unique identifier of a board.
|
112
|
+
section_id = 'section_id_example' # String | Unique identifier of a board section.
|
113
|
+
|
114
|
+
begin
|
115
|
+
# Delete board section
|
116
|
+
api_instance.board_sections_delete(board_id, section_id)
|
117
|
+
rescue PinterestSdkClient::ApiError => e
|
118
|
+
puts "Error when calling BoardsApi->board_sections_delete: #{e}"
|
119
|
+
end
|
120
|
+
```
|
121
|
+
|
122
|
+
#### Using the board_sections_delete_with_http_info variant
|
123
|
+
|
124
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
125
|
+
|
126
|
+
> <Array(nil, Integer, Hash)> board_sections_delete_with_http_info(board_id, section_id)
|
127
|
+
|
128
|
+
```ruby
|
129
|
+
begin
|
130
|
+
# Delete board section
|
131
|
+
data, status_code, headers = api_instance.board_sections_delete_with_http_info(board_id, section_id)
|
132
|
+
p status_code # => 2xx
|
133
|
+
p headers # => { ... }
|
134
|
+
p data # => nil
|
135
|
+
rescue PinterestSdkClient::ApiError => e
|
136
|
+
puts "Error when calling BoardsApi->board_sections_delete_with_http_info: #{e}"
|
137
|
+
end
|
138
|
+
```
|
139
|
+
|
140
|
+
### Parameters
|
141
|
+
|
142
|
+
| Name | Type | Description | Notes |
|
143
|
+
| ---- | ---- | ----------- | ----- |
|
144
|
+
| **board_id** | **String** | Unique identifier of a board. | |
|
145
|
+
| **section_id** | **String** | Unique identifier of a board section. | |
|
146
|
+
|
147
|
+
### Return type
|
148
|
+
|
149
|
+
nil (empty response body)
|
150
|
+
|
151
|
+
### Authorization
|
152
|
+
|
153
|
+
[pinterest_oauth2](../README.md#pinterest_oauth2)
|
154
|
+
|
155
|
+
### HTTP request headers
|
156
|
+
|
157
|
+
- **Content-Type**: Not defined
|
158
|
+
- **Accept**: application/json
|
159
|
+
|
160
|
+
|
161
|
+
## board_sections_list
|
162
|
+
|
163
|
+
> <Paginated> board_sections_list(board_id, opts)
|
164
|
+
|
165
|
+
List board sections
|
166
|
+
|
167
|
+
Get a list of all board sections from a board owned by the \"operation user_account\" - or a group board that has been shared with this account. - By default, the \"operation user_account\" is the token user_account.
|
168
|
+
|
169
|
+
### Examples
|
170
|
+
|
171
|
+
```ruby
|
172
|
+
require 'time'
|
173
|
+
require 'pinterest_sdk'
|
174
|
+
# setup authorization
|
175
|
+
PinterestSdkClient.configure do |config|
|
176
|
+
# Configure OAuth2 access token for authorization: pinterest_oauth2
|
177
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
178
|
+
end
|
179
|
+
|
180
|
+
api_instance = PinterestSdkClient::BoardsApi.new
|
181
|
+
board_id = 'board_id_example' # String | Unique identifier of a board.
|
182
|
+
opts = {
|
183
|
+
bookmark: 'bookmark_example', # String | Cursor used to fetch the next page of items
|
184
|
+
page_size: 56 # Integer | Maximum number of items to include in a single page of the response. See documentation on <a href='/docs/api/v5/#tag/Pagination'>Pagination</a> for more information.
|
185
|
+
}
|
186
|
+
|
187
|
+
begin
|
188
|
+
# List board sections
|
189
|
+
result = api_instance.board_sections_list(board_id, opts)
|
190
|
+
p result
|
191
|
+
rescue PinterestSdkClient::ApiError => e
|
192
|
+
puts "Error when calling BoardsApi->board_sections_list: #{e}"
|
193
|
+
end
|
194
|
+
```
|
195
|
+
|
196
|
+
#### Using the board_sections_list_with_http_info variant
|
197
|
+
|
198
|
+
This returns an Array which contains the response data, status code and headers.
|
199
|
+
|
200
|
+
> <Array(<Paginated>, Integer, Hash)> board_sections_list_with_http_info(board_id, opts)
|
201
|
+
|
202
|
+
```ruby
|
203
|
+
begin
|
204
|
+
# List board sections
|
205
|
+
data, status_code, headers = api_instance.board_sections_list_with_http_info(board_id, opts)
|
206
|
+
p status_code # => 2xx
|
207
|
+
p headers # => { ... }
|
208
|
+
p data # => <Paginated>
|
209
|
+
rescue PinterestSdkClient::ApiError => e
|
210
|
+
puts "Error when calling BoardsApi->board_sections_list_with_http_info: #{e}"
|
211
|
+
end
|
212
|
+
```
|
213
|
+
|
214
|
+
### Parameters
|
215
|
+
|
216
|
+
| Name | Type | Description | Notes |
|
217
|
+
| ---- | ---- | ----------- | ----- |
|
218
|
+
| **board_id** | **String** | Unique identifier of a board. | |
|
219
|
+
| **bookmark** | **String** | Cursor used to fetch the next page of items | [optional] |
|
220
|
+
| **page_size** | **Integer** | Maximum number of items to include in a single page of the response. See documentation on <a href='/docs/api/v5/#tag/Pagination'>Pagination</a> for more information. | [optional][default to 25] |
|
221
|
+
|
222
|
+
### Return type
|
223
|
+
|
224
|
+
[**Paginated**](Paginated.md)
|
225
|
+
|
226
|
+
### Authorization
|
227
|
+
|
228
|
+
[pinterest_oauth2](../README.md#pinterest_oauth2)
|
229
|
+
|
230
|
+
### HTTP request headers
|
231
|
+
|
232
|
+
- **Content-Type**: Not defined
|
233
|
+
- **Accept**: application/json
|
234
|
+
|
235
|
+
|
236
|
+
## board_sections_list_pins
|
237
|
+
|
238
|
+
> <Paginated> board_sections_list_pins(board_id, section_id, opts)
|
239
|
+
|
240
|
+
List Pins on board section
|
241
|
+
|
242
|
+
Get a list of the Pins on a board section of a board owned by the \"operation user_account\" - or on a group board that has been shared with this account. - By default, the \"operation user_account\" is the token user_account.
|
243
|
+
|
244
|
+
### Examples
|
245
|
+
|
246
|
+
```ruby
|
247
|
+
require 'time'
|
248
|
+
require 'pinterest_sdk'
|
249
|
+
# setup authorization
|
250
|
+
PinterestSdkClient.configure do |config|
|
251
|
+
# Configure OAuth2 access token for authorization: pinterest_oauth2
|
252
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
253
|
+
end
|
254
|
+
|
255
|
+
api_instance = PinterestSdkClient::BoardsApi.new
|
256
|
+
board_id = 'board_id_example' # String | Unique identifier of a board.
|
257
|
+
section_id = 'section_id_example' # String | Unique identifier of a board section.
|
258
|
+
opts = {
|
259
|
+
bookmark: 'bookmark_example', # String | Cursor used to fetch the next page of items
|
260
|
+
page_size: 56 # Integer | Maximum number of items to include in a single page of the response. See documentation on <a href='/docs/api/v5/#tag/Pagination'>Pagination</a> for more information.
|
261
|
+
}
|
262
|
+
|
263
|
+
begin
|
264
|
+
# List Pins on board section
|
265
|
+
result = api_instance.board_sections_list_pins(board_id, section_id, opts)
|
266
|
+
p result
|
267
|
+
rescue PinterestSdkClient::ApiError => e
|
268
|
+
puts "Error when calling BoardsApi->board_sections_list_pins: #{e}"
|
269
|
+
end
|
270
|
+
```
|
271
|
+
|
272
|
+
#### Using the board_sections_list_pins_with_http_info variant
|
273
|
+
|
274
|
+
This returns an Array which contains the response data, status code and headers.
|
275
|
+
|
276
|
+
> <Array(<Paginated>, Integer, Hash)> board_sections_list_pins_with_http_info(board_id, section_id, opts)
|
277
|
+
|
278
|
+
```ruby
|
279
|
+
begin
|
280
|
+
# List Pins on board section
|
281
|
+
data, status_code, headers = api_instance.board_sections_list_pins_with_http_info(board_id, section_id, opts)
|
282
|
+
p status_code # => 2xx
|
283
|
+
p headers # => { ... }
|
284
|
+
p data # => <Paginated>
|
285
|
+
rescue PinterestSdkClient::ApiError => e
|
286
|
+
puts "Error when calling BoardsApi->board_sections_list_pins_with_http_info: #{e}"
|
287
|
+
end
|
288
|
+
```
|
289
|
+
|
290
|
+
### Parameters
|
291
|
+
|
292
|
+
| Name | Type | Description | Notes |
|
293
|
+
| ---- | ---- | ----------- | ----- |
|
294
|
+
| **board_id** | **String** | Unique identifier of a board. | |
|
295
|
+
| **section_id** | **String** | Unique identifier of a board section. | |
|
296
|
+
| **bookmark** | **String** | Cursor used to fetch the next page of items | [optional] |
|
297
|
+
| **page_size** | **Integer** | Maximum number of items to include in a single page of the response. See documentation on <a href='/docs/api/v5/#tag/Pagination'>Pagination</a> for more information. | [optional][default to 25] |
|
298
|
+
|
299
|
+
### Return type
|
300
|
+
|
301
|
+
[**Paginated**](Paginated.md)
|
302
|
+
|
303
|
+
### Authorization
|
304
|
+
|
305
|
+
[pinterest_oauth2](../README.md#pinterest_oauth2)
|
306
|
+
|
307
|
+
### HTTP request headers
|
308
|
+
|
309
|
+
- **Content-Type**: Not defined
|
310
|
+
- **Accept**: application/json
|
311
|
+
|
312
|
+
|
313
|
+
## board_sections_update
|
314
|
+
|
315
|
+
> <BoardSection> board_sections_update(board_id, section_id, board_section)
|
316
|
+
|
317
|
+
Update board section
|
318
|
+
|
319
|
+
Update a board section on a board owned by the \"operation user_account\" - or on a group board that has been shared with this account. - By default, the \"operation user_account\" is the token user_account.
|
320
|
+
|
321
|
+
### Examples
|
322
|
+
|
323
|
+
```ruby
|
324
|
+
require 'time'
|
325
|
+
require 'pinterest_sdk'
|
326
|
+
# setup authorization
|
327
|
+
PinterestSdkClient.configure do |config|
|
328
|
+
# Configure OAuth2 access token for authorization: pinterest_oauth2
|
329
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
330
|
+
end
|
331
|
+
|
332
|
+
api_instance = PinterestSdkClient::BoardsApi.new
|
333
|
+
board_id = 'board_id_example' # String | Unique identifier of a board.
|
334
|
+
section_id = 'section_id_example' # String | Unique identifier of a board section.
|
335
|
+
board_section = PinterestSdkClient::BoardSection.new # BoardSection | Update a board section.
|
336
|
+
|
337
|
+
begin
|
338
|
+
# Update board section
|
339
|
+
result = api_instance.board_sections_update(board_id, section_id, board_section)
|
340
|
+
p result
|
341
|
+
rescue PinterestSdkClient::ApiError => e
|
342
|
+
puts "Error when calling BoardsApi->board_sections_update: #{e}"
|
343
|
+
end
|
344
|
+
```
|
345
|
+
|
346
|
+
#### Using the board_sections_update_with_http_info variant
|
347
|
+
|
348
|
+
This returns an Array which contains the response data, status code and headers.
|
349
|
+
|
350
|
+
> <Array(<BoardSection>, Integer, Hash)> board_sections_update_with_http_info(board_id, section_id, board_section)
|
351
|
+
|
352
|
+
```ruby
|
353
|
+
begin
|
354
|
+
# Update board section
|
355
|
+
data, status_code, headers = api_instance.board_sections_update_with_http_info(board_id, section_id, board_section)
|
356
|
+
p status_code # => 2xx
|
357
|
+
p headers # => { ... }
|
358
|
+
p data # => <BoardSection>
|
359
|
+
rescue PinterestSdkClient::ApiError => e
|
360
|
+
puts "Error when calling BoardsApi->board_sections_update_with_http_info: #{e}"
|
361
|
+
end
|
362
|
+
```
|
363
|
+
|
364
|
+
### Parameters
|
365
|
+
|
366
|
+
| Name | Type | Description | Notes |
|
367
|
+
| ---- | ---- | ----------- | ----- |
|
368
|
+
| **board_id** | **String** | Unique identifier of a board. | |
|
369
|
+
| **section_id** | **String** | Unique identifier of a board section. | |
|
370
|
+
| **board_section** | [**BoardSection**](BoardSection.md) | Update a board section. | |
|
371
|
+
|
372
|
+
### Return type
|
373
|
+
|
374
|
+
[**BoardSection**](BoardSection.md)
|
375
|
+
|
376
|
+
### Authorization
|
377
|
+
|
378
|
+
[pinterest_oauth2](../README.md#pinterest_oauth2)
|
379
|
+
|
380
|
+
### HTTP request headers
|
381
|
+
|
382
|
+
- **Content-Type**: application/json
|
383
|
+
- **Accept**: application/json
|
384
|
+
|
385
|
+
|
386
|
+
## boards_create
|
387
|
+
|
388
|
+
> <Board> boards_create(board)
|
389
|
+
|
390
|
+
Create board
|
391
|
+
|
392
|
+
Create a board owned by the \"operation user_account\". - By default, the \"operation user_account\" is the token user_account.
|
393
|
+
|
394
|
+
### Examples
|
395
|
+
|
396
|
+
```ruby
|
397
|
+
require 'time'
|
398
|
+
require 'pinterest_sdk'
|
399
|
+
# setup authorization
|
400
|
+
PinterestSdkClient.configure do |config|
|
401
|
+
# Configure OAuth2 access token for authorization: pinterest_oauth2
|
402
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
403
|
+
end
|
404
|
+
|
405
|
+
api_instance = PinterestSdkClient::BoardsApi.new
|
406
|
+
board = PinterestSdkClient::Board.new({name: 'Summer Recipes'}) # Board | Create a board using a single board json object.
|
407
|
+
|
408
|
+
begin
|
409
|
+
# Create board
|
410
|
+
result = api_instance.boards_create(board)
|
411
|
+
p result
|
412
|
+
rescue PinterestSdkClient::ApiError => e
|
413
|
+
puts "Error when calling BoardsApi->boards_create: #{e}"
|
414
|
+
end
|
415
|
+
```
|
416
|
+
|
417
|
+
#### Using the boards_create_with_http_info variant
|
418
|
+
|
419
|
+
This returns an Array which contains the response data, status code and headers.
|
420
|
+
|
421
|
+
> <Array(<Board>, Integer, Hash)> boards_create_with_http_info(board)
|
422
|
+
|
423
|
+
```ruby
|
424
|
+
begin
|
425
|
+
# Create board
|
426
|
+
data, status_code, headers = api_instance.boards_create_with_http_info(board)
|
427
|
+
p status_code # => 2xx
|
428
|
+
p headers # => { ... }
|
429
|
+
p data # => <Board>
|
430
|
+
rescue PinterestSdkClient::ApiError => e
|
431
|
+
puts "Error when calling BoardsApi->boards_create_with_http_info: #{e}"
|
432
|
+
end
|
433
|
+
```
|
434
|
+
|
435
|
+
### Parameters
|
436
|
+
|
437
|
+
| Name | Type | Description | Notes |
|
438
|
+
| ---- | ---- | ----------- | ----- |
|
439
|
+
| **board** | [**Board**](Board.md) | Create a board using a single board json object. | |
|
440
|
+
|
441
|
+
### Return type
|
442
|
+
|
443
|
+
[**Board**](Board.md)
|
444
|
+
|
445
|
+
### Authorization
|
446
|
+
|
447
|
+
[pinterest_oauth2](../README.md#pinterest_oauth2)
|
448
|
+
|
449
|
+
### HTTP request headers
|
450
|
+
|
451
|
+
- **Content-Type**: application/json
|
452
|
+
- **Accept**: application/json
|
453
|
+
|
454
|
+
|
455
|
+
## boards_delete
|
456
|
+
|
457
|
+
> boards_delete(board_id)
|
458
|
+
|
459
|
+
Delete board
|
460
|
+
|
461
|
+
Delete a board owned by the \"operation user_account\". - By default, the \"operation user_account\" is the token user_account.
|
462
|
+
|
463
|
+
### Examples
|
464
|
+
|
465
|
+
```ruby
|
466
|
+
require 'time'
|
467
|
+
require 'pinterest_sdk'
|
468
|
+
# setup authorization
|
469
|
+
PinterestSdkClient.configure do |config|
|
470
|
+
# Configure OAuth2 access token for authorization: pinterest_oauth2
|
471
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
472
|
+
end
|
473
|
+
|
474
|
+
api_instance = PinterestSdkClient::BoardsApi.new
|
475
|
+
board_id = 'board_id_example' # String | Unique identifier of a board.
|
476
|
+
|
477
|
+
begin
|
478
|
+
# Delete board
|
479
|
+
api_instance.boards_delete(board_id)
|
480
|
+
rescue PinterestSdkClient::ApiError => e
|
481
|
+
puts "Error when calling BoardsApi->boards_delete: #{e}"
|
482
|
+
end
|
483
|
+
```
|
484
|
+
|
485
|
+
#### Using the boards_delete_with_http_info variant
|
486
|
+
|
487
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
488
|
+
|
489
|
+
> <Array(nil, Integer, Hash)> boards_delete_with_http_info(board_id)
|
490
|
+
|
491
|
+
```ruby
|
492
|
+
begin
|
493
|
+
# Delete board
|
494
|
+
data, status_code, headers = api_instance.boards_delete_with_http_info(board_id)
|
495
|
+
p status_code # => 2xx
|
496
|
+
p headers # => { ... }
|
497
|
+
p data # => nil
|
498
|
+
rescue PinterestSdkClient::ApiError => e
|
499
|
+
puts "Error when calling BoardsApi->boards_delete_with_http_info: #{e}"
|
500
|
+
end
|
501
|
+
```
|
502
|
+
|
503
|
+
### Parameters
|
504
|
+
|
505
|
+
| Name | Type | Description | Notes |
|
506
|
+
| ---- | ---- | ----------- | ----- |
|
507
|
+
| **board_id** | **String** | Unique identifier of a board. | |
|
508
|
+
|
509
|
+
### Return type
|
510
|
+
|
511
|
+
nil (empty response body)
|
512
|
+
|
513
|
+
### Authorization
|
514
|
+
|
515
|
+
[pinterest_oauth2](../README.md#pinterest_oauth2)
|
516
|
+
|
517
|
+
### HTTP request headers
|
518
|
+
|
519
|
+
- **Content-Type**: Not defined
|
520
|
+
- **Accept**: application/json
|
521
|
+
|
522
|
+
|
523
|
+
## boards_get
|
524
|
+
|
525
|
+
> <Board> boards_get(board_id)
|
526
|
+
|
527
|
+
Get board
|
528
|
+
|
529
|
+
Get a board owned by the operation user_account - or a group board that has been shared with this account. - By default, the \"operation user_account\" is the token user_account.
|
530
|
+
|
531
|
+
### Examples
|
532
|
+
|
533
|
+
```ruby
|
534
|
+
require 'time'
|
535
|
+
require 'pinterest_sdk'
|
536
|
+
# setup authorization
|
537
|
+
PinterestSdkClient.configure do |config|
|
538
|
+
# Configure OAuth2 access token for authorization: pinterest_oauth2
|
539
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
540
|
+
end
|
541
|
+
|
542
|
+
api_instance = PinterestSdkClient::BoardsApi.new
|
543
|
+
board_id = 'board_id_example' # String | Unique identifier of a board.
|
544
|
+
|
545
|
+
begin
|
546
|
+
# Get board
|
547
|
+
result = api_instance.boards_get(board_id)
|
548
|
+
p result
|
549
|
+
rescue PinterestSdkClient::ApiError => e
|
550
|
+
puts "Error when calling BoardsApi->boards_get: #{e}"
|
551
|
+
end
|
552
|
+
```
|
553
|
+
|
554
|
+
#### Using the boards_get_with_http_info variant
|
555
|
+
|
556
|
+
This returns an Array which contains the response data, status code and headers.
|
557
|
+
|
558
|
+
> <Array(<Board>, Integer, Hash)> boards_get_with_http_info(board_id)
|
559
|
+
|
560
|
+
```ruby
|
561
|
+
begin
|
562
|
+
# Get board
|
563
|
+
data, status_code, headers = api_instance.boards_get_with_http_info(board_id)
|
564
|
+
p status_code # => 2xx
|
565
|
+
p headers # => { ... }
|
566
|
+
p data # => <Board>
|
567
|
+
rescue PinterestSdkClient::ApiError => e
|
568
|
+
puts "Error when calling BoardsApi->boards_get_with_http_info: #{e}"
|
569
|
+
end
|
570
|
+
```
|
571
|
+
|
572
|
+
### Parameters
|
573
|
+
|
574
|
+
| Name | Type | Description | Notes |
|
575
|
+
| ---- | ---- | ----------- | ----- |
|
576
|
+
| **board_id** | **String** | Unique identifier of a board. | |
|
577
|
+
|
578
|
+
### Return type
|
579
|
+
|
580
|
+
[**Board**](Board.md)
|
581
|
+
|
582
|
+
### Authorization
|
583
|
+
|
584
|
+
[pinterest_oauth2](../README.md#pinterest_oauth2)
|
585
|
+
|
586
|
+
### HTTP request headers
|
587
|
+
|
588
|
+
- **Content-Type**: Not defined
|
589
|
+
- **Accept**: application/json
|
590
|
+
|
591
|
+
|
592
|
+
## boards_list
|
593
|
+
|
594
|
+
> <Paginated> boards_list(opts)
|
595
|
+
|
596
|
+
List boards
|
597
|
+
|
598
|
+
Get a list of the boards owned by the \"operation user_account\" + group boards where this account is a collaborator Optional: Specify a privacy type (public, protected, or secret) to indicate which boards to return. - If no privacy is specified, all boards that can be returned (based on the scopes of the token and ad_account role if applicable) will be returned.
|
599
|
+
|
600
|
+
### Examples
|
601
|
+
|
602
|
+
```ruby
|
603
|
+
require 'time'
|
604
|
+
require 'pinterest_sdk'
|
605
|
+
# setup authorization
|
606
|
+
PinterestSdkClient.configure do |config|
|
607
|
+
# Configure OAuth2 access token for authorization: pinterest_oauth2
|
608
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
609
|
+
end
|
610
|
+
|
611
|
+
api_instance = PinterestSdkClient::BoardsApi.new
|
612
|
+
opts = {
|
613
|
+
bookmark: 'bookmark_example', # String | Cursor used to fetch the next page of items
|
614
|
+
page_size: 56, # Integer | Maximum number of items to include in a single page of the response. See documentation on <a href='/docs/api/v5/#tag/Pagination'>Pagination</a> for more information.
|
615
|
+
privacy: 'PUBLIC' # String | Privacy setting for a board.
|
616
|
+
}
|
617
|
+
|
618
|
+
begin
|
619
|
+
# List boards
|
620
|
+
result = api_instance.boards_list(opts)
|
621
|
+
p result
|
622
|
+
rescue PinterestSdkClient::ApiError => e
|
623
|
+
puts "Error when calling BoardsApi->boards_list: #{e}"
|
624
|
+
end
|
625
|
+
```
|
626
|
+
|
627
|
+
#### Using the boards_list_with_http_info variant
|
628
|
+
|
629
|
+
This returns an Array which contains the response data, status code and headers.
|
630
|
+
|
631
|
+
> <Array(<Paginated>, Integer, Hash)> boards_list_with_http_info(opts)
|
632
|
+
|
633
|
+
```ruby
|
634
|
+
begin
|
635
|
+
# List boards
|
636
|
+
data, status_code, headers = api_instance.boards_list_with_http_info(opts)
|
637
|
+
p status_code # => 2xx
|
638
|
+
p headers # => { ... }
|
639
|
+
p data # => <Paginated>
|
640
|
+
rescue PinterestSdkClient::ApiError => e
|
641
|
+
puts "Error when calling BoardsApi->boards_list_with_http_info: #{e}"
|
642
|
+
end
|
643
|
+
```
|
644
|
+
|
645
|
+
### Parameters
|
646
|
+
|
647
|
+
| Name | Type | Description | Notes |
|
648
|
+
| ---- | ---- | ----------- | ----- |
|
649
|
+
| **bookmark** | **String** | Cursor used to fetch the next page of items | [optional] |
|
650
|
+
| **page_size** | **Integer** | Maximum number of items to include in a single page of the response. See documentation on <a href='/docs/api/v5/#tag/Pagination'>Pagination</a> for more information. | [optional][default to 25] |
|
651
|
+
| **privacy** | **String** | Privacy setting for a board. | [optional] |
|
652
|
+
|
653
|
+
### Return type
|
654
|
+
|
655
|
+
[**Paginated**](Paginated.md)
|
656
|
+
|
657
|
+
### Authorization
|
658
|
+
|
659
|
+
[pinterest_oauth2](../README.md#pinterest_oauth2)
|
660
|
+
|
661
|
+
### HTTP request headers
|
662
|
+
|
663
|
+
- **Content-Type**: Not defined
|
664
|
+
- **Accept**: application/json
|
665
|
+
|
666
|
+
|
667
|
+
## boards_list_pins
|
668
|
+
|
669
|
+
> <Paginated> boards_list_pins(board_id, opts)
|
670
|
+
|
671
|
+
List Pins on board
|
672
|
+
|
673
|
+
Get a list of the Pins on a board owned by the \"operation user_account\" - or on a group board that has been shared with this account. - By default, the \"operation user_account\" is the token user_account.
|
674
|
+
|
675
|
+
### Examples
|
676
|
+
|
677
|
+
```ruby
|
678
|
+
require 'time'
|
679
|
+
require 'pinterest_sdk'
|
680
|
+
# setup authorization
|
681
|
+
PinterestSdkClient.configure do |config|
|
682
|
+
# Configure OAuth2 access token for authorization: pinterest_oauth2
|
683
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
684
|
+
end
|
685
|
+
|
686
|
+
api_instance = PinterestSdkClient::BoardsApi.new
|
687
|
+
board_id = 'board_id_example' # String | Unique identifier of a board.
|
688
|
+
opts = {
|
689
|
+
bookmark: 'bookmark_example', # String | Cursor used to fetch the next page of items
|
690
|
+
page_size: 56 # Integer | Maximum number of items to include in a single page of the response. See documentation on <a href='/docs/api/v5/#tag/Pagination'>Pagination</a> for more information.
|
691
|
+
}
|
692
|
+
|
693
|
+
begin
|
694
|
+
# List Pins on board
|
695
|
+
result = api_instance.boards_list_pins(board_id, opts)
|
696
|
+
p result
|
697
|
+
rescue PinterestSdkClient::ApiError => e
|
698
|
+
puts "Error when calling BoardsApi->boards_list_pins: #{e}"
|
699
|
+
end
|
700
|
+
```
|
701
|
+
|
702
|
+
#### Using the boards_list_pins_with_http_info variant
|
703
|
+
|
704
|
+
This returns an Array which contains the response data, status code and headers.
|
705
|
+
|
706
|
+
> <Array(<Paginated>, Integer, Hash)> boards_list_pins_with_http_info(board_id, opts)
|
707
|
+
|
708
|
+
```ruby
|
709
|
+
begin
|
710
|
+
# List Pins on board
|
711
|
+
data, status_code, headers = api_instance.boards_list_pins_with_http_info(board_id, opts)
|
712
|
+
p status_code # => 2xx
|
713
|
+
p headers # => { ... }
|
714
|
+
p data # => <Paginated>
|
715
|
+
rescue PinterestSdkClient::ApiError => e
|
716
|
+
puts "Error when calling BoardsApi->boards_list_pins_with_http_info: #{e}"
|
717
|
+
end
|
718
|
+
```
|
719
|
+
|
720
|
+
### Parameters
|
721
|
+
|
722
|
+
| Name | Type | Description | Notes |
|
723
|
+
| ---- | ---- | ----------- | ----- |
|
724
|
+
| **board_id** | **String** | Unique identifier of a board. | |
|
725
|
+
| **bookmark** | **String** | Cursor used to fetch the next page of items | [optional] |
|
726
|
+
| **page_size** | **Integer** | Maximum number of items to include in a single page of the response. See documentation on <a href='/docs/api/v5/#tag/Pagination'>Pagination</a> for more information. | [optional][default to 25] |
|
727
|
+
|
728
|
+
### Return type
|
729
|
+
|
730
|
+
[**Paginated**](Paginated.md)
|
731
|
+
|
732
|
+
### Authorization
|
733
|
+
|
734
|
+
[pinterest_oauth2](../README.md#pinterest_oauth2)
|
735
|
+
|
736
|
+
### HTTP request headers
|
737
|
+
|
738
|
+
- **Content-Type**: Not defined
|
739
|
+
- **Accept**: application/json
|
740
|
+
|
741
|
+
|
742
|
+
## boards_update
|
743
|
+
|
744
|
+
> <Board> boards_update(board_id, board_update)
|
745
|
+
|
746
|
+
Update board
|
747
|
+
|
748
|
+
Update a board owned by the \"operating user_account\".
|
749
|
+
|
750
|
+
### Examples
|
751
|
+
|
752
|
+
```ruby
|
753
|
+
require 'time'
|
754
|
+
require 'pinterest_sdk'
|
755
|
+
# setup authorization
|
756
|
+
PinterestSdkClient.configure do |config|
|
757
|
+
# Configure OAuth2 access token for authorization: pinterest_oauth2
|
758
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
759
|
+
end
|
760
|
+
|
761
|
+
api_instance = PinterestSdkClient::BoardsApi.new
|
762
|
+
board_id = 'board_id_example' # String | Unique identifier of a board.
|
763
|
+
board_update = PinterestSdkClient::BoardUpdate.new # BoardUpdate | Update a board.
|
764
|
+
|
765
|
+
begin
|
766
|
+
# Update board
|
767
|
+
result = api_instance.boards_update(board_id, board_update)
|
768
|
+
p result
|
769
|
+
rescue PinterestSdkClient::ApiError => e
|
770
|
+
puts "Error when calling BoardsApi->boards_update: #{e}"
|
771
|
+
end
|
772
|
+
```
|
773
|
+
|
774
|
+
#### Using the boards_update_with_http_info variant
|
775
|
+
|
776
|
+
This returns an Array which contains the response data, status code and headers.
|
777
|
+
|
778
|
+
> <Array(<Board>, Integer, Hash)> boards_update_with_http_info(board_id, board_update)
|
779
|
+
|
780
|
+
```ruby
|
781
|
+
begin
|
782
|
+
# Update board
|
783
|
+
data, status_code, headers = api_instance.boards_update_with_http_info(board_id, board_update)
|
784
|
+
p status_code # => 2xx
|
785
|
+
p headers # => { ... }
|
786
|
+
p data # => <Board>
|
787
|
+
rescue PinterestSdkClient::ApiError => e
|
788
|
+
puts "Error when calling BoardsApi->boards_update_with_http_info: #{e}"
|
789
|
+
end
|
790
|
+
```
|
791
|
+
|
792
|
+
### Parameters
|
793
|
+
|
794
|
+
| Name | Type | Description | Notes |
|
795
|
+
| ---- | ---- | ----------- | ----- |
|
796
|
+
| **board_id** | **String** | Unique identifier of a board. | |
|
797
|
+
| **board_update** | [**BoardUpdate**](BoardUpdate.md) | Update a board. | |
|
798
|
+
|
799
|
+
### Return type
|
800
|
+
|
801
|
+
[**Board**](Board.md)
|
802
|
+
|
803
|
+
### Authorization
|
804
|
+
|
805
|
+
[pinterest_oauth2](../README.md#pinterest_oauth2)
|
806
|
+
|
807
|
+
### HTTP request headers
|
808
|
+
|
809
|
+
- **Content-Type**: application/json
|
810
|
+
- **Accept**: application/json
|
811
|
+
|