Version Description
Download this release
Release Info
Developer | PixelYourSite |
Plugin | PixelYourSite – Facebook Pixel (Events, WooCommerce & Easy Digital Downloads) |
Version | 2.8.9 |
Comparing to | |
See all releases |
Code changes from version 8.2.8 to 2.8.9
- dist/scripts/admin.js +1 -1
- dist/scripts/public.js +152 -74
- facebook-pixel-master.php +3 -3
- includes/class-custom-event.php +120 -92
- includes/class-events-manager-ajax_hook.php +3 -5
- includes/class-events-manager.php +8 -16
- includes/class-settings.php +3 -3
- includes/events/class-event-grouped.php +2 -2
- includes/events/class-event-single.php +2 -2
- includes/events/class-event.php +11 -4
- includes/events/class-events-custom.php +1 -1
- includes/events/class-events-edd.php +3 -3
- includes/events/class-events-fdp.php +2 -2
- includes/events/class-events-signal.php +11 -11
- includes/events/class-events-woo.php +5 -5
- includes/functions-common.php +9 -5
- includes/logger/class-pys-logger.php +1 -1
- includes/options_defaults.json +1 -1
- includes/options_fields.json +1 -1
- includes/views/html-logs.php +1 -1
- includes/views/html-main-edd.php +1 -1
- includes/views/html-main-events-edit.php +8 -8
- includes/views/html-main-events.php +13 -1
- includes/views/html-main-general.php +24 -12
- includes/views/html-main-woo.php +1 -1
- modules/facebook/facebook.php +10 -4
- modules/google_analytics/ga.php +10 -37
- modules/google_analytics/options_defaults.json +0 -1
- modules/google_analytics/options_fields.json +0 -1
- modules/google_analytics/views/html-settings.php +2 -2
- modules/pinterest/pinterest.php +2 -2
- pixelyoursite.php +1 -1
- readme.txt +22 -15
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/ApiConfig.php +2 -2
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/{AdAccountContentFilterLevelsInheritance.php → AREffectsBatchStatus.php} +4 -4
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/AdAccount.php +33 -13
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/AdAsyncRequestSet.php +0 -2
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/AdPlacePageSet.php +0 -2
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/AdRule.php +2 -0
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/AdSet.php +1 -1
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/AdStudyObjective.php +1 -1
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/AdStudyObjectiveOffsiteDatasets.php +54 -0
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/AdVideo.php +10 -0
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/AdsPixel.php +10 -0
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Application.php +10 -40
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Business.php +60 -25
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/{PlayableContent.php → BusinessImage.php} +5 -12
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/BusinessManagedPartnerEligibility.php +54 -0
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Canvas.php +10 -0
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/ChatPlugin.php +54 -0
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/CloudGame.php +64 -0
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/CommerceMerchantSettings.php +11 -1
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/CommerceOrder.php +1 -1
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Event.php +3 -8
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AREffectsBatchStatusFields.php +45 -0
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AdAccountDeliveryEstimateFields.php +4 -1
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AdAccountFields.php +3 -2
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AdAccountReachEstimateFields.php +3 -1
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AdAccountTargetingUnifiedFields.php +3 -1
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AdAssetFeedSpecFields.php +4 -1
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AdAsyncRequestSetFields.php +1 -1
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AdCampaignDeliveryEstimateFields.php +4 -1
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AdPlacePageSetFields.php +1 -2
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AdRuleFields.php +2 -1
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AdSetFields.php +3 -1
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/{ProductFeedUploadDiagnosticsReportFields.php → AdStudyObjectiveOffsiteDatasetsFields.php} +4 -4
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AdgroupPlacementSpecificReviewFeedbackFields.php +2 -1
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AdoptablePetFields.php +2 -1
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AdsActionStatsFields.php +3 -1
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AdsInsightsFields.php +2 -7
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AutomotiveModelFields.php +2 -1
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/BroadTargetingCategoriesFields.php +3 -1
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/BusinessFields.php +3 -2
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/{MeasurementUploadEventFields.php → BusinessImageFields.php} +11 -11
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/{AdAccountContentFilterLevelsInheritanceFields.php → BusinessManagedPartnerEligibilityFields.php} +5 -6
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/CanvasFields.php +15 -1
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/ChatPluginFields.php +54 -0
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/CloudGameFields.php +51 -0
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/CommerceMerchantSettingsFields.php +1 -2
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/CustomAudienceFields.php +4 -1
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/DestinationFields.php +2 -1
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/EventFields.php +3 -1
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/FlightFields.php +2 -1
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/HomeListingFields.php +2 -1
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/HotelFields.php +2 -1
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/IGCommentFields.php +3 -1
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/InvoiceCampaignFields.php +2 -1
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/{ReferralFields.php → JobsJobFields.php} +18 -14
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/LiveVideoFields.php +2 -1
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/LiveVideoRecommendedEncoderSettingsFields.php +45 -0
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/LocalServiceBusinessFields.php +62 -0
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/ManagedPartnerBusinessFields.php +49 -0
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/MessagingFeatureStatusFields.php +43 -0
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/OmegaCustomerTrxFields.php +2 -1
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/PageFields.php +3 -1
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/PageUserMessageThreadLabelFields.php +2 -2
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/ProductFeedFields.php +5 -1
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/ProductItemFields.php +6 -1
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/ProductItemImporterAddressFields.php +48 -0
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/ProductSetFields.php +3 -1
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/ReachFrequencyPredictionFields.php +3 -1
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/SavedAudienceFields.php +4 -1
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/ShopFields.php +45 -0
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/TextWithEntitiesFields.php +43 -0
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/VehicleFields.php +2 -1
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/VehicleOfferFields.php +2 -1
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/{PlayableContentFields.php → WoodhengePurchasedPAYGReceiptFields.php} +5 -9
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Group.php +12 -2
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/JobsJob.php +96 -0
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/LiveVideo.php +3 -3
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/LiveVideoRecommendedEncoderSettings.php +54 -0
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/{Referral.php → LocalServiceBusiness.php} +9 -17
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/ManagedPartnerBusiness.php +54 -0
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/MeasurementUploadEvent.php +0 -91
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/MessagingFeatureStatus.php +54 -0
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/MessengerDestinationPageWelcomeMessage.php +0 -10
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Page.php +52 -20
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/PartnerStudy.php +10 -0
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/ProductCatalog.php +24 -12
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/ProductFeed.php +12 -10
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/ProductItem.php +4 -2
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/{ProductFeedUploadDiagnosticsReport.php → ProductItemImporterAddress.php} +4 -4
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/ProductSet.php +1 -1
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Shop.php +64 -0
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/TextWithEntities.php +54 -0
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/User.php +1 -11
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdAccountAdVolumeRecommendationTypeValues.php +2 -0
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdAccountContentTypeValues.php +1 -0
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdAccountDeliveryEstimateOptimizationGoalValues.php +2 -8
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdAccountMatchedSearchApplicationsEdgeDataAppStoreValues.php +9 -0
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdAccountTargetingUnifiedAppStoreValues.php +9 -0
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdAccountTargetingUnifiedRegulatedCategoriesValues.php +1 -0
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdAccountTasksValues.php +1 -0
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdActivityDataSourceValues.php +1 -0
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdAssetFeedSpecCallToActionTypesValues.php +1 -0
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdCampaignActivityOptimizationGoalNewValues.php +2 -8
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdCampaignActivityOptimizationGoalOldValues.php +2 -8
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdCampaignDeliveryEstimateOptimizationGoalValues.php +2 -8
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdCreativeApplinkTreatmentValues.php +1 -0
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdCreativeCallToActionTypeValues.php +1 -0
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdCreativeLinkDataCallToActionTypeValues.php +1 -0
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdCreativeLinkDataImageOverlaySpecTextTypeValues.php +1 -0
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdNetworkAnalyticsSyncQueryResultMetricsValues.php +1 -0
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdPreviewAdFormatValues.php +5 -1
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdRuleExecutionSpecExecutionTypeValues.php +3 -0
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdRuleUiCreationSourceValues.php +62 -0
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdSetOptimizationGoalValues.php +2 -8
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdSetTuneForCategoryValues.php +1 -0
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdStudyObjectiveTypeValues.php +1 -1
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdStudyTypeValues.php +0 -1
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdVideoContainerTypeValues.php +11 -0
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdsInsightsBreakdownsValues.php +2 -0
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdsPixelTasksValues.php +3 -0
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/ApplicationAnPlatformsValues.php +2 -0
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/ApplicationSupportedPlatformsValues.php +1 -0
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/BusinessAssetGroupAdaccountTasksValues.php +1 -0
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/BusinessAssetGroupOfflineConversionDataSetTasksValues.php +1 -0
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/BusinessAssetGroupPageTasksValues.php +1 -0
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/BusinessAssetGroupPixelTasksValues.php +3 -0
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/BusinessPagePermittedTasksValues.php +1 -0
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/BusinessPermittedTasksValues.php +1 -0
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/CampaignSpecialAdCategoriesValues.php +1 -0
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/CampaignSpecialAdCategoryValues.php +1 -0
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/ContentDeliveryReportPositionValues.php +9 -0
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/CustomAudienceContentTypeValues.php +1 -0
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/EventTypeValues.php +1 -0
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/GroupGroupTypeValues.php +1 -0
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/GroupPurposeValues.php +1 -0
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/JobsJobImageFetchStatusValues.php +45 -0
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/LiveVideoLiveCommentModerationSettingValues.php +3 -0
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/{MeasurementUploadEventEventStatusValues.php → LocalServiceBusinessImageFetchStatusValues.php} +8 -8
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/MeasurementUploadEventTimezoneValues.php +0 -185
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/{AdPlacePageSetCategoryValues.php → PageAlignmentValues.php} +4 -4
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/{MeasurementUploadEventLookbackWindowValues.php → PageEntryPointIconValues.php} +6 -6
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/{MeasurementUploadEventAggregationLevelValues.php → PageEntryPointLabelValues.php} +5 -4
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/{AdAsyncRequestSetNotificationStatusValues.php → PageGreetingDialogDisplayValues.php} +5 -5
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/{MeasurementUploadEventMatchUniverseValues.php → PageGuestChatModeValues.php} +4 -5
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/PageMobileChatDisplayValues.php +41 -0
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/PagePermittedTasksValues.php +1 -0
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/PageSubscribedFieldsValues.php +1 -0
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/PageTasksValues.php +1 -0
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/ProductFeedIngestionSourceTypeValues.php +41 -0
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/ProductItemOriginCountryValues.php +290 -0
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/ProfileTypeValues.php +2 -0
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/WhatsAppBusinessAccount.php +40 -0
- vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/WoodhengePurchasedPAYGReceipt.php +64 -0
- vendor_prefix/guzzlehttp/guzzle/src/Client.php +3 -0
- vendor_prefix/guzzlehttp/guzzle/src/ClientInterface.php +1 -1
- vendor_prefix/guzzlehttp/guzzle/src/Cookie/SetCookie.php +42 -15
- vendor_prefix/guzzlehttp/guzzle/src/Handler/CurlFactory.php +4 -1
- vendor_prefix/guzzlehttp/guzzle/src/Handler/CurlHandler.php +2 -2
- vendor_prefix/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php +3 -0
- vendor_prefix/guzzlehttp/guzzle/src/Handler/StreamHandler.php +8 -3
- vendor_prefix/guzzlehttp/guzzle/src/HandlerStack.php +10 -7
- vendor_prefix/guzzlehttp/guzzle/src/RetryMiddleware.php +1 -1
- vendor_prefix/guzzlehttp/guzzle/src/Utils.php +6 -8
- vendor_prefix/guzzlehttp/promises/src/EachPromise.php +4 -3
- vendor_prefix/guzzlehttp/promises/src/Utils.php +3 -1
- vendor_prefix/guzzlehttp/psr7/src/AppendStream.php +30 -30
- vendor_prefix/guzzlehttp/psr7/src/BufferStream.php +26 -21
- vendor_prefix/guzzlehttp/psr7/src/CachingStream.php +20 -16
- vendor_prefix/guzzlehttp/psr7/src/DroppingStream.php +5 -5
- vendor_prefix/guzzlehttp/psr7/src/Exception/MalformedUriException.php +12 -0
- vendor_prefix/guzzlehttp/psr7/src/FnStream.php +41 -28
- vendor_prefix/guzzlehttp/psr7/src/Header.php +3 -6
- vendor_prefix/guzzlehttp/psr7/src/HttpFactory.php +76 -0
- vendor_prefix/guzzlehttp/psr7/src/InflateStream.php +10 -30
- vendor_prefix/guzzlehttp/psr7/src/LazyOpenStream.php +5 -8
- vendor_prefix/guzzlehttp/psr7/src/LimitStream.php +13 -17
- vendor_prefix/guzzlehttp/psr7/src/Message.php +11 -22
- vendor_prefix/guzzlehttp/psr7/src/MessageTrait.php +35 -20
- vendor_prefix/guzzlehttp/psr7/src/MimeType.php +5 -13
- vendor_prefix/guzzlehttp/psr7/src/MultipartStream.php +14 -20
- vendor_prefix/guzzlehttp/psr7/src/NoSeekStream.php +4 -5
- vendor_prefix/guzzlehttp/psr7/src/PumpStream.php +41 -33
- vendor_prefix/guzzlehttp/psr7/src/Query.php +10 -11
- vendor_prefix/guzzlehttp/psr7/src/Request.php +15 -11
- vendor_prefix/guzzlehttp/psr7/src/Response.php +19 -17
- vendor_prefix/guzzlehttp/psr7/src/Rfc7230.php +7 -4
- vendor_prefix/guzzlehttp/psr7/src/ServerRequest.php +28 -64
- vendor_prefix/guzzlehttp/psr7/src/Stream.php +39 -28
- vendor_prefix/guzzlehttp/psr7/src/StreamDecoratorTrait.php +32 -29
- vendor_prefix/guzzlehttp/psr7/src/StreamWrapper.php +26 -17
- vendor_prefix/guzzlehttp/psr7/src/UploadedFile.php +27 -130
- vendor_prefix/guzzlehttp/psr7/src/Uri.php +96 -169
- vendor_prefix/guzzlehttp/psr7/src/UriNormalizer.php +14 -20
- vendor_prefix/guzzlehttp/psr7/src/UriResolver.php +6 -18
- vendor_prefix/guzzlehttp/psr7/src/Utils.php +26 -40
- vendor_prefix/guzzlehttp/psr7/src/functions.php +0 -400
- vendor_prefix/guzzlehttp/psr7/src/functions_include.php +0 -8
- vendor_prefix/psr/http-factory/src/RequestFactoryInterface.php +18 -0
- vendor_prefix/psr/http-factory/src/ResponseFactoryInterface.php +18 -0
- vendor_prefix/psr/http-factory/src/ServerRequestFactoryInterface.php +24 -0
- vendor_prefix/psr/http-factory/src/StreamFactoryInterface.php +43 -0
- vendor_prefix/psr/http-factory/src/UploadedFileFactoryInterface.php +28 -0
- vendor_prefix/psr/http-factory/src/UriFactoryInterface.php +17 -0
dist/scripts/admin.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
|
2 |
-
jQuery(document).ready(function(c){function n(e){var t=c("#"+e.data("target"));e.val()===e.data("value")?t.removeClass("form-control-hidden"):t.addClass("form-control-hidden")}function e(){"price"===c('input[name="pys[core][woo_event_value]"]:checked').val()?c(".woo-event-value-option").hide():c(".woo-event-value-option").show()}function t(){"price"===c('input[name="pys[core][edd_event_value]"]:checked').val()?c(".edd-event-value-option").hide():c(".edd-event-value-option").show()}function a(){var e=c("#pys_event_trigger_type").val(),t="#"+e+"_panel";c(".event_triggers_panel").hide(),c(t).show(),"page_visit"===e?c("#url_filter_panel").hide():c("#url_filter_panel").show();var n=c(t),a=n.data("trigger_type");0===c(".event_trigger",n).length-1&&s(n,a)}function s(e,t){var n=c(".event_trigger",e),a=c(n[0]).clone(!0),s=c(n[n.length-1]).data("trigger_id")+1,i="pys[event]["+t+"_triggers]["+s+"]";a.data("trigger_id",s),c("select",a).attr("name",i+"[rule]"),c("input",a).attr("name",i+"[value]"),a.css("display","block"),a.insertBefore(c(".insert-marker",e))}function i(){"page_visit"===c("#pys_event_trigger_type").val()?c(".event-delay").css("visibility","visible"):c(".event-delay").css("visibility","hidden")}function o(){c("#pys_event_facebook_enabled").is(":checked")?c("#facebook_panel").show():c("#facebook_panel").hide()}function r(){"CustomEvent"===c("#pys_event_facebook_event_type").val()?c(".facebook-custom-event-type").css("visibility","visible"):c(".facebook-custom-event-type").css("visibility","hidden")}function p(){c("#pys_event_facebook_params_enabled").is(":checked")?c("#facebook_params_panel").show():c("#facebook_params_panel").hide()}function _(){var e=c("#pys_event_facebook_event_type").val();c("#facebook_params_panel").removeClass().addClass(e)}function l(){"custom"===c("#pys_event_facebook_params_currency").val()?c(".facebook-custom-currency").css("visibility","visible"):c(".facebook-custom-currency").css("visibility","hidden")}function v(){c("#pys_event_pinterest_enabled").is(":checked")?c("#pinterest_panel").show():c("#pinterest_panel").hide()}function u(){"CustomEvent"===c("#pys_event_pinterest_event_type").val()?c(".pinterest-custom-event-type").css("visibility","visible"):c(".pinterest-custom-event-type").css("visibility","hidden")}function d(){c("#pys_event_pinterest_params_enabled").is(":checked")?c("#pinterest_params_panel").show():c("#pinterest_params_panel").hide()}function y(){var e=c("#pys_event_pinterest_event_type").val();c("#pinterest_params_panel").removeClass().addClass(e)}function m(){"custom"===c("#pys_event_pinterest_params_currency").val()?c(".pinterest-custom-currency").css("visibility","visible"):c(".pinterest-custom-currency").css("visibility","hidden")}function f(){c("#pys_event_ga_enabled").is(":checked")?c("#analytics_panel").show():c("#analytics_panel").hide()}function h(){"_custom"===c("#pys_event_ga_event_action").val()?c("#ga-custom-action").css("visibility","visible"):c("#ga-custom-action").css("visibility","hidden")}function g(){c("#pys_event_bing_enabled").is(":checked")?c("#bing_panel").show():c("#bing_panel").hide()}c(function(){c('[data-toggle="pys-popover"]').popover({container:"#pys",html:!0,content:function(){return c("#pys-"+c(this).data("popover_id")).html()}})}),c(".pys-select2").select2(),c(".pys-tags-select2").select2({tags:!0,tokenSeparators:[","," "]}),c("select.controls-visibility").on("change",function(e){n(c(this))}).each(function(e,t){n(c(t))}),c(".card-collapse").on("click",function(){var e=c(this).closest(".card").find(".card-body");e.hasClass("show")?e.hide().removeClass("show"):e.show().addClass("show")}),c(".collapse-control .custom-switch-input").on('change',function(){var e=c(this),t=c("."+e.data("target"));0<t.length&&(e.prop("checked")?t.show():t.hide())}).trigger("change"),e(),c('input[name="pys[core][woo_event_value]"]').on('change',function(){e()}),t(),c('input[name="pys[core][edd_event_value]"]').on('change',function(){t()}),c("#pys_select_all_events").on('change',function(){c(this).prop("checked")?c(".pys-select-event").prop("checked","checked"):c(".pys-select-event").prop("checked",!1)}),i(),a(),c("#pys_event_trigger_type").on('change',function(){i(),a()}),c(".add-event-trigger").on("click",function(){var e=c(this).closest(".event_triggers_panel");s(e,e.data("trigger_type"))}),c(".remove-row").on("click",function(e){c(this).closest(".row.event_trigger, .row.facebook-custom-param, .row.pinterest-custom-param").remove()}),o(),r(),p(),_(),l(),c("#pys_event_facebook_enabled").on("click",function(){o()}),c("#pys_event_facebook_event_type").on('change',function(){r(),_()}),c("#pys_event_facebook_params_enabled").on("click",function(){p()}),c("#pys_event_facebook_params_currency").on('change',function(){l()}),c(".add-facebook-parameter").on("click",function(){var e=c("#facebook_params_panel"),t=c(".facebook-custom-param",e),n=c(t[0]).clone(!0),a=c(t[t.length-1]).data("param_id")+1,s="pys[event][facebook_custom_params]["+a+"]";n.data("param_id",a),c("input.custom-param-name",n).attr("name",s+"[name]"),c("input.custom-param-value",n).attr("name",s+"[value]"),n.css("display","flex"),n.insertBefore(c(".insert-marker",e))}),v(),u(),d(),y(),m(),c("#pys_event_pinterest_enabled").on("click",function(){v()}),c("#pys_event_pinterest_event_type").on('change',function(){u(),y()}),c("#pys_event_pinterest_params_enabled").on("click",function(){d()}),c("#pys_event_pinterest_params_currency").on('change',function(){m()}),c(".add-pinterest-parameter").on("click",function(){var e=c("#pinterest_params_panel"),t=c(".pinterest-custom-param",e),n=c(t[0]).clone(!0),a=c(t[t.length-1]).data("param_id")+1,s="pys[event][pinterest_custom_params]["+a+"]";n.data("param_id",a),c("input.custom-param-name",n).attr("name",s+"[name]"),c("input.custom-param-value",n).attr("name",s+"[value]"),n.css("display","flex"),n.insertBefore(c(".insert-marker",e))}),f(),h(),c("#pys_event_ga_enabled").on("click",function(){f()}),c("#pys_event_ga_event_action").on('change',function(){h()}),g(),c("#pys_event_bing_enabled").on("click",function(){g()})});
|
3 |
|
4 |
jQuery( document ).ready(function($) {
|
5 |
updateFDPValue($("#pys_facebook_fdp_purchase_event_fire"));
|
1 |
|
2 |
+
jQuery(document).ready(function(c){function n(e){var t=c("#"+e.data("target"));e.val()===e.data("value")?t.removeClass("form-control-hidden"):t.addClass("form-control-hidden")}function e(){"price"===c('input[name="pys[core][woo_event_value]"]:checked').val()?c(".woo-event-value-option").hide():c(".woo-event-value-option").show()}function t(){"price"===c('input[name="pys[core][edd_event_value]"]:checked').val()?c(".edd-event-value-option").hide():c(".edd-event-value-option").show()}function a(){var e=c("#pys_event_trigger_type").val(),t="#"+e+"_panel";c(".event_triggers_panel").hide(),c(t).show(),"page_visit"===e?c("#url_filter_panel").hide():c("#url_filter_panel").show();var n=c(t),a=n.data("trigger_type");0===c(".event_trigger",n).length-1&&s(n,a)}function s(e,t){var n=c(".event_trigger",e),a=c(n[0]).clone(!0),s=c(n[n.length-1]).data("trigger_id")+1,i="pys[event]["+t+"_triggers]["+s+"]";a.data("trigger_id",s),c("select",a).attr("name",i+"[rule]"),c("input",a).attr("name",i+"[value]"),a.css("display","block"),a.insertBefore(c(".insert-marker",e))}function i(){"page_visit"===c("#pys_event_trigger_type").val()?c(".event-delay").css("visibility","visible"):c(".event-delay").css("visibility","hidden")}function o(){c("#pys_event_facebook_enabled").is(":checked")?c("#facebook_panel").show():c("#facebook_panel").hide()}function r(){"CustomEvent"===c("#pys_event_facebook_event_type").val()?c(".facebook-custom-event-type").css("visibility","visible"):c(".facebook-custom-event-type").css("visibility","hidden")}function p(){c("#pys_event_facebook_params_enabled").is(":checked")?c("#facebook_params_panel").show():c("#facebook_params_panel").hide()}function _(){var e=c("#pys_event_facebook_event_type").val();c("#facebook_params_panel").removeClass().addClass(e)}function l(){"custom"===c("#pys_event_facebook_params_currency").val()?c(".facebook-custom-currency").css("visibility","visible"):c(".facebook-custom-currency").css("visibility","hidden")}function v(){c("#pys_event_pinterest_enabled").is(":checked")?c("#pinterest_panel").show():c("#pinterest_panel").hide()}function u(){"CustomEvent"===c("#pys_event_pinterest_event_type").val()?c(".pinterest-custom-event-type").css("visibility","visible"):c(".pinterest-custom-event-type").css("visibility","hidden")}function d(){c("#pys_event_pinterest_params_enabled").is(":checked")?c("#pinterest_params_panel").show():c("#pinterest_params_panel").hide()}function y(){var e=c("#pys_event_pinterest_event_type").val();c("#pinterest_params_panel").removeClass().addClass(e)}function m(){"custom"===c("#pys_event_pinterest_params_currency").val()?c(".pinterest-custom-currency").css("visibility","visible"):c(".pinterest-custom-currency").css("visibility","hidden")}function f(){c("#pys_event_ga_enabled").is(":checked")?c("#analytics_panel").show():c("#analytics_panel").hide()}function h(){"_custom"===c("#pys_event_ga_event_action").val() || "CustomEvent"===c("#pys_event_ga_event_action").val()?c("#ga-custom-action").css("visibility","visible"):c("#ga-custom-action").css("visibility","hidden")}function g(){c("#pys_event_bing_enabled").is(":checked")?c("#bing_panel").show():c("#bing_panel").hide()}c(function(){c('[data-toggle="pys-popover"]').popover({container:"#pys",html:!0,content:function(){return c("#pys-"+c(this).data("popover_id")).html()}})}),c(".pys-select2").select2(),c(".pys-tags-select2").select2({tags:!0,tokenSeparators:[","," "]}),c("select.controls-visibility").on("change",function(e){n(c(this))}).each(function(e,t){n(c(t))}),c(".card-collapse").on("click",function(){var e=c(this).closest(".card").find(".card-body");e.hasClass("show")?e.hide().removeClass("show"):e.show().addClass("show")}),c(".collapse-control .custom-switch-input").on('change',function(){var e=c(this),t=c("."+e.data("target"));0<t.length&&(e.prop("checked")?t.show():t.hide())}).trigger("change"),e(),c('input[name="pys[core][woo_event_value]"]').on('change',function(){e()}),t(),c('input[name="pys[core][edd_event_value]"]').on('change',function(){t()}),c("#pys_select_all_events").on('change',function(){c(this).prop("checked")?c(".pys-select-event").prop("checked","checked"):c(".pys-select-event").prop("checked",!1)}),i(),a(),c("#pys_event_trigger_type").on('change',function(){i(),a()}),c(".add-event-trigger").on("click",function(){var e=c(this).closest(".event_triggers_panel");s(e,e.data("trigger_type"))}),c(".remove-row").on("click",function(e){c(this).closest(".row.event_trigger, .row.facebook-custom-param, .row.pinterest-custom-param").remove()}),o(),r(),p(),_(),l(),c("#pys_event_facebook_enabled").on("click",function(){o()}),c("#pys_event_facebook_event_type").on('change',function(){r(),_()}),c("#pys_event_facebook_params_enabled").on("click",function(){p()}),c("#pys_event_facebook_params_currency").on('change',function(){l()}),c(".add-facebook-parameter").on("click",function(){var e=c("#facebook_params_panel"),t=c(".facebook-custom-param",e),n=c(t[0]).clone(!0),a=c(t[t.length-1]).data("param_id")+1,s="pys[event][facebook_custom_params]["+a+"]";n.data("param_id",a),c("input.custom-param-name",n).attr("name",s+"[name]"),c("input.custom-param-value",n).attr("name",s+"[value]"),n.css("display","flex"),n.insertBefore(c(".insert-marker",e))}),v(),u(),d(),y(),m(),c("#pys_event_pinterest_enabled").on("click",function(){v()}),c("#pys_event_pinterest_event_type").on('change',function(){u(),y()}),c("#pys_event_pinterest_params_enabled").on("click",function(){d()}),c("#pys_event_pinterest_params_currency").on('change',function(){m()}),c(".add-pinterest-parameter").on("click",function(){var e=c("#pinterest_params_panel"),t=c(".pinterest-custom-param",e),n=c(t[0]).clone(!0),a=c(t[t.length-1]).data("param_id")+1,s="pys[event][pinterest_custom_params]["+a+"]";n.data("param_id",a),c("input.custom-param-name",n).attr("name",s+"[name]"),c("input.custom-param-value",n).attr("name",s+"[value]"),n.css("display","flex"),n.insertBefore(c(".insert-marker",e))}),f(),h(),c("#pys_event_ga_enabled").on("click",function(){f()}),c("#pys_event_ga_event_action").on('change',function(){h()}),g(),c("#pys_event_bing_enabled").on("click",function(){g()})});
|
3 |
|
4 |
jQuery( document ).ready(function($) {
|
5 |
updateFDPValue($("#pys_facebook_fdp_purchase_event_fire"));
|
dist/scripts/public.js
CHANGED
@@ -1301,9 +1301,9 @@ if (!Array.prototype.includes) {
|
|
1301 |
|
1302 |
var eventParams = Utils.copyProperties(data, {});
|
1303 |
|
1304 |
-
var _fireEvent = function (tracking_id) {
|
1305 |
|
1306 |
-
|
1307 |
|
1308 |
if (options.debug) {
|
1309 |
console.log('[Google Analytics #' + tracking_id + '] ' + name, params);
|
@@ -1314,10 +1314,147 @@ if (!Array.prototype.includes) {
|
|
1314 |
};
|
1315 |
|
1316 |
options.ga.trackingIds.forEach(function (tracking_id) {
|
1317 |
-
|
|
|
|
|
1318 |
});
|
1319 |
|
1320 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1321 |
|
1322 |
/**
|
1323 |
* Public API
|
@@ -1355,14 +1492,7 @@ if (!Array.prototype.includes) {
|
|
1355 |
};
|
1356 |
}
|
1357 |
|
1358 |
-
|
1359 |
-
if(options.ga.disableAdvertisingFeatures) {
|
1360 |
-
config.allow_google_signals = false
|
1361 |
-
}
|
1362 |
-
if(options.ga.disableAdvertisingPersonalization) {
|
1363 |
-
config.allow_ad_personalization_signals = false
|
1364 |
-
}
|
1365 |
-
}
|
1366 |
|
1367 |
// configure tracking ids
|
1368 |
options.ga.trackingIds.forEach(function (trackingId,index) {
|
@@ -1371,6 +1501,14 @@ if (!Array.prototype.includes) {
|
|
1371 |
} else {
|
1372 |
config.debug_mode = false;
|
1373 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1374 |
gtag('config', trackingId, config);
|
1375 |
});
|
1376 |
|
@@ -1406,75 +1544,15 @@ if (!Array.prototype.includes) {
|
|
1406 |
},
|
1407 |
|
1408 |
onCommentEvent: function (event) {
|
1409 |
-
|
1410 |
-
if (initialized && this.isEnabled() ) {
|
1411 |
-
if(options.ga.isUse4Version) {
|
1412 |
-
this.fireEvent(event.name, event);
|
1413 |
-
} else {
|
1414 |
-
this.fireEvent(event.name, {
|
1415 |
-
params: {
|
1416 |
-
event_category: event.name,
|
1417 |
-
event_action: event.params.event_action,
|
1418 |
-
event_label: document.location.href,
|
1419 |
-
non_interaction: event.params.non_interaction,
|
1420 |
-
event_day:event.params.event_day,
|
1421 |
-
event_hour:event.params.event_hour,
|
1422 |
-
event_month:event.params.event_month,
|
1423 |
-
traffic_source:event.params.traffic_source,
|
1424 |
-
}
|
1425 |
-
});
|
1426 |
-
}
|
1427 |
-
}
|
1428 |
-
|
1429 |
-
|
1430 |
},
|
1431 |
|
1432 |
onDownloadEvent: function (event) {
|
1433 |
-
|
1434 |
-
if (initialized && this.isEnabled() ) {
|
1435 |
-
if(options.ga.isUse4Version) {
|
1436 |
-
this.fireEvent(event.name, event);
|
1437 |
-
} else {
|
1438 |
-
var params = {
|
1439 |
-
event_category: event.name,
|
1440 |
-
event_action: event.params.event_action,
|
1441 |
-
event_label:event.params.download_name,
|
1442 |
-
non_interaction: event.params.non_interaction,
|
1443 |
-
};
|
1444 |
-
this.fireEvent(event.name, {
|
1445 |
-
params: params
|
1446 |
-
});
|
1447 |
-
}
|
1448 |
-
}
|
1449 |
},
|
1450 |
|
1451 |
onFormEvent: function (event) {
|
1452 |
-
|
1453 |
-
if (initialized && this.isEnabled() ) {
|
1454 |
-
|
1455 |
-
if(options.ga.isUse4Version) {
|
1456 |
-
this.fireEvent(event.name, event);
|
1457 |
-
} else {
|
1458 |
-
var params = {
|
1459 |
-
event_category: event.name,
|
1460 |
-
event_action: event.params.event_action,
|
1461 |
-
non_interaction: event.params.non_interaction,
|
1462 |
-
event_day:event.params.event_day,
|
1463 |
-
event_hour:event.params.event_hour,
|
1464 |
-
event_month:event.params.event_month,
|
1465 |
-
traffic_source:event.params.traffic_source,
|
1466 |
-
};
|
1467 |
-
var formClass = (typeof event.params.form_class != 'undefined') ? 'class: ' + event.params.form_class : '';
|
1468 |
-
if(formClass != "") {
|
1469 |
-
params["event_label"] = formClass;
|
1470 |
-
}
|
1471 |
-
this.fireEvent(event.name, {
|
1472 |
-
params: params
|
1473 |
-
});
|
1474 |
-
}
|
1475 |
-
}
|
1476 |
-
|
1477 |
-
|
1478 |
},
|
1479 |
|
1480 |
onWooAddToCartOnButtonEvent: function (product_id) {
|
1301 |
|
1302 |
var eventParams = Utils.copyProperties(data, {});
|
1303 |
|
1304 |
+
var _fireEvent = function (tracking_id,name,params) {
|
1305 |
|
1306 |
+
params['send_to'] = tracking_id;
|
1307 |
|
1308 |
if (options.debug) {
|
1309 |
console.log('[Google Analytics #' + tracking_id + '] ' + name, params);
|
1314 |
};
|
1315 |
|
1316 |
options.ga.trackingIds.forEach(function (tracking_id) {
|
1317 |
+
var copyParams = Utils.copyProperties(eventParams, {}); // copy params because mapParamsTov4 can modify it
|
1318 |
+
var params = mapParamsTov4(tracking_id,name,copyParams)
|
1319 |
+
_fireEvent(tracking_id,name,params);
|
1320 |
});
|
1321 |
|
1322 |
}
|
1323 |
+
function mapParamsTov4(tag,name,param) {
|
1324 |
+
if(isv4(tag)) {
|
1325 |
+
delete param.traffic_source;
|
1326 |
+
delete param.event_category;
|
1327 |
+
delete param.event_label;
|
1328 |
+
delete param.ecomm_prodid;
|
1329 |
+
delete param.ecomm_pagetype;
|
1330 |
+
delete param.ecomm_totalvalue;
|
1331 |
+
if(name === 'search') {
|
1332 |
+
param['search'] = param.search_term;
|
1333 |
+
delete param.search_term;
|
1334 |
+
delete param.non_interaction;
|
1335 |
+
delete param.dynx_itemid;
|
1336 |
+
delete param.dynx_pagetype;
|
1337 |
+
delete param.dynx_totalvalue;
|
1338 |
+
}
|
1339 |
+
} else {
|
1340 |
+
//delete standard params
|
1341 |
+
delete param.page_title;
|
1342 |
+
delete param.post_type;
|
1343 |
+
delete param.post_id;
|
1344 |
+
delete param.plugin;
|
1345 |
+
delete param.page_title;
|
1346 |
+
delete param.event_url;
|
1347 |
+
delete param.user_role;
|
1348 |
+
delete param.cartlows;
|
1349 |
+
delete param.cartflows_flow;
|
1350 |
+
delete param.cartflows_step;
|
1351 |
+
|
1352 |
+
if(name === 'Signal') {
|
1353 |
+
switch (param.event_action) {
|
1354 |
+
case 'External Click':
|
1355 |
+
case 'Internal Click':
|
1356 |
+
case 'Tel':
|
1357 |
+
case 'Email': {
|
1358 |
+
let params = {
|
1359 |
+
event_category: name,
|
1360 |
+
event_action: param.event_action,
|
1361 |
+
non_interaction: param.non_interaction,
|
1362 |
+
}
|
1363 |
+
if(options.trackTrafficSource) {
|
1364 |
+
params['traffic_source'] = param.traffic_source
|
1365 |
+
}
|
1366 |
+
return params;
|
1367 |
+
}break;
|
1368 |
+
case 'Video': {
|
1369 |
+
let params = {
|
1370 |
+
event_category: name,
|
1371 |
+
event_action: param.event_action,
|
1372 |
+
event_label: param.video_title,
|
1373 |
+
non_interaction: param.non_interaction,
|
1374 |
+
}
|
1375 |
+
if(options.trackTrafficSource) {
|
1376 |
+
params['traffic_source'] = param.traffic_source
|
1377 |
+
}
|
1378 |
+
return params;
|
1379 |
+
}break;
|
1380 |
+
case 'Comment': {
|
1381 |
+
let params = {
|
1382 |
+
event_category: name,
|
1383 |
+
event_action: param.event_action,
|
1384 |
+
event_label: document.location.href,
|
1385 |
+
non_interaction: param.non_interaction,
|
1386 |
+
}
|
1387 |
+
if(options.trackTrafficSource) {
|
1388 |
+
params['traffic_source'] = param.traffic_source
|
1389 |
+
}
|
1390 |
+
return params;
|
1391 |
+
}break;
|
1392 |
+
case 'Form': {
|
1393 |
+
var params = {
|
1394 |
+
event_category: name,
|
1395 |
+
event_action: param.event_action,
|
1396 |
+
non_interaction: param.non_interaction,
|
1397 |
+
};
|
1398 |
+
if(options.trackTrafficSource) {
|
1399 |
+
params['traffic_source'] = param.traffic_source
|
1400 |
+
}
|
1401 |
+
var formClass = (typeof param.form_class != 'undefined') ? 'class: ' + event.params.form_class : '';
|
1402 |
+
if(formClass != "") {
|
1403 |
+
params["event_label"] = formClass;
|
1404 |
+
}
|
1405 |
+
return params;
|
1406 |
+
}break;
|
1407 |
+
case 'Download': {
|
1408 |
+
return {
|
1409 |
+
event_category: name,
|
1410 |
+
event_action: param.event_action,
|
1411 |
+
event_label: param.download_name,
|
1412 |
+
non_interaction: param.non_interaction,
|
1413 |
+
}
|
1414 |
+
}break;
|
1415 |
+
}
|
1416 |
+
if(param.event_action.indexOf('Scroll') === 0){
|
1417 |
+
var scroll_percent = param.event_action.substring(
|
1418 |
+
param.event_action.indexOf(' ')+1,
|
1419 |
+
param.event_action.indexOf('%')
|
1420 |
+
);
|
1421 |
+
let params = {
|
1422 |
+
event_category: name,
|
1423 |
+
event_action: param.event_action,
|
1424 |
+
event_label: scroll_percent,
|
1425 |
+
non_interaction: param.non_interaction,
|
1426 |
+
}
|
1427 |
+
if(options.trackTrafficSource) {
|
1428 |
+
params['traffic_source'] = param.traffic_source
|
1429 |
+
}
|
1430 |
+
return params;
|
1431 |
+
}
|
1432 |
+
if(param.event_action.indexOf('Time on page') === 0) {
|
1433 |
+
let time_on_page = param.event_action.substring(
|
1434 |
+
14,
|
1435 |
+
param.event_action.indexOf(' seconds')
|
1436 |
+
);
|
1437 |
+
let params = {
|
1438 |
+
event_category: name,
|
1439 |
+
event_action: param.event_action,
|
1440 |
+
event_label: time_on_page,
|
1441 |
+
non_interaction: param.non_interaction,
|
1442 |
+
|
1443 |
+
};
|
1444 |
+
if(options.trackTrafficSource) {
|
1445 |
+
params['traffic_source'] = param.traffic_source
|
1446 |
+
}
|
1447 |
+
return params
|
1448 |
+
}
|
1449 |
+
}
|
1450 |
+
|
1451 |
+
}
|
1452 |
+
return param;
|
1453 |
+
}
|
1454 |
+
|
1455 |
+
function isv4(tag) {
|
1456 |
+
return tag.indexOf('G') === 0;
|
1457 |
+
}
|
1458 |
|
1459 |
/**
|
1460 |
* Public API
|
1492 |
};
|
1493 |
}
|
1494 |
|
1495 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1496 |
|
1497 |
// configure tracking ids
|
1498 |
options.ga.trackingIds.forEach(function (trackingId,index) {
|
1501 |
} else {
|
1502 |
config.debug_mode = false;
|
1503 |
}
|
1504 |
+
if(isv4(trackingId)) {
|
1505 |
+
if(options.ga.disableAdvertisingFeatures) {
|
1506 |
+
config.allow_google_signals = false
|
1507 |
+
}
|
1508 |
+
if(options.ga.disableAdvertisingPersonalization) {
|
1509 |
+
config.allow_ad_personalization_signals = false
|
1510 |
+
}
|
1511 |
+
}
|
1512 |
gtag('config', trackingId, config);
|
1513 |
});
|
1514 |
|
1544 |
},
|
1545 |
|
1546 |
onCommentEvent: function (event) {
|
1547 |
+
this.fireEvent(event.name, event);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1548 |
},
|
1549 |
|
1550 |
onDownloadEvent: function (event) {
|
1551 |
+
this.fireEvent(event.name, event);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1552 |
},
|
1553 |
|
1554 |
onFormEvent: function (event) {
|
1555 |
+
this.fireEvent(event.name, event);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1556 |
},
|
1557 |
|
1558 |
onWooAddToCartOnButtonEvent: function (product_id) {
|
facebook-pixel-master.php
CHANGED
@@ -3,8 +3,8 @@
|
|
3 |
/**
|
4 |
* Plugin Name: PixelYourSite
|
5 |
* Plugin URI: http://www.pixelyoursite.com/
|
6 |
-
* Description: No coding <strong>Facebook Pixel, Facebook Converion API,</strong> and <strong>Google Analytics</strong> install. Track key actions with our Signal event, or configure your own events. WooCommerce and EDD fully supported, with Facebook Dynamic Ads Pixel set-up and Google Analytics Enhanced Ecommerce. Insert any custom script with our Head & Footer option. Add the <strong>Pinterest Tag</strong> with our
|
7 |
-
* Version: 8.2.
|
8 |
* Author: PixelYourSite
|
9 |
* Author URI: http://www.pixelyoursite.com
|
10 |
* License: GPLv3
|
@@ -13,7 +13,7 @@
|
|
13 |
* Tested up to: 5.8
|
14 |
*
|
15 |
* WC requires at least: 2.6.0
|
16 |
-
* WC tested up to: 5.
|
17 |
*
|
18 |
* Text Domain: pys
|
19 |
*/
|
3 |
/**
|
4 |
* Plugin Name: PixelYourSite
|
5 |
* Plugin URI: http://www.pixelyoursite.com/
|
6 |
+
* Description: No coding <strong>Facebook Pixel, Facebook Converion API,</strong> and <strong>Google Analytics</strong> install. Track key actions with our Signal event, or configure your own events. WooCommerce and EDD fully supported, with Facebook Dynamic Ads Pixel set-up and Google Analytics Enhanced Ecommerce. Insert any custom script with our Head & Footer option. Add the <strong>Pinterest Tag</strong> with our paid add-on. The PRO version adds support for the Google Ads tag plus a lot of extra stuff. Full support for <strong>ConsentMagic.com</strong>.
|
7 |
+
* Version: 8.2.9
|
8 |
* Author: PixelYourSite
|
9 |
* Author URI: http://www.pixelyoursite.com
|
10 |
* License: GPLv3
|
13 |
* Tested up to: 5.8
|
14 |
*
|
15 |
* WC requires at least: 2.6.0
|
16 |
+
* WC tested up to: 5.8
|
17 |
*
|
18 |
* Text Domain: pys
|
19 |
*/
|
includes/class-custom-event.php
CHANGED
@@ -29,7 +29,6 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
29 |
* @property array pinterest_custom_params
|
30 |
* @property array ga_custom_params
|
31 |
* @property array ga_params
|
32 |
-
* @property string ga_version
|
33 |
*
|
34 |
* @property bool ga_enabled
|
35 |
* @property string ga_event_action
|
@@ -164,7 +163,7 @@ class CustomEvent {
|
|
164 |
'ga_params' => array(),
|
165 |
'ga_custom_params' => array(),
|
166 |
'ga_custom_params_enabled' => false,
|
167 |
-
|
168 |
|
169 |
'bing_enabled' => false,
|
170 |
'bing_event_action' => null,
|
@@ -212,6 +211,12 @@ class CustomEvent {
|
|
212 |
$state = get_post_meta( $post_id, '_pys_event_state', true );
|
213 |
$this->enabled = $state == 'active' ? true : false;
|
214 |
|
|
|
|
|
|
|
|
|
|
|
|
|
215 |
}
|
216 |
|
217 |
}
|
@@ -555,120 +560,143 @@ class CustomEvent {
|
|
555 |
public function isBingEnabled() {
|
556 |
return (bool) $this->bing_enabled;
|
557 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
558 |
|
559 |
private function updateGA( $args) {
|
560 |
-
if(GA()->isUse4Version()) {
|
561 |
-
$this->data['ga_enabled'] = isset( $args['ga_enabled'] ) && $args['ga_enabled'] ? true : false;
|
562 |
|
563 |
-
|
564 |
|
565 |
-
|
566 |
-
|
567 |
-
|
568 |
|
569 |
-
|
570 |
-
|
571 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
572 |
|
573 |
-
$this->data['ga_params'] = array();
|
574 |
-
$this->data['ga_version'] = "4";
|
575 |
|
576 |
-
|
577 |
-
|
578 |
-
|
579 |
-
|
580 |
-
|
|
|
|
|
581 |
}
|
582 |
-
break;
|
583 |
}
|
584 |
}
|
585 |
-
}
|
586 |
|
587 |
-
|
588 |
-
|
589 |
-
|
|
|
590 |
}
|
591 |
-
}
|
592 |
|
593 |
-
|
594 |
-
|
595 |
|
596 |
-
|
597 |
-
|
598 |
|
599 |
-
|
600 |
|
601 |
-
|
602 |
|
603 |
-
|
604 |
-
|
605 |
-
|
606 |
-
|
|
|
|
|
607 |
|
608 |
}
|
609 |
|
610 |
}
|
|
|
|
|
|
|
611 |
|
612 |
-
}
|
613 |
-
$this->data['ga_non_interactive'] = isset( $args['ga_non_interactive'] ) && $args['ga_non_interactive'] ? true : false;
|
614 |
} else {
|
615 |
-
$this->data['ga_params'] = array();
|
616 |
-
$this->data['ga_version'] = "";
|
617 |
-
$this->data['ga_custom_params'] = array();
|
618 |
-
$this->data['ga_event_action'] = 'CustomEvent';
|
619 |
-
$this->data['ga_custom_event_action']=null;
|
620 |
-
$this->data['ga_non_interactive'] = false;
|
621 |
-
}
|
622 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
623 |
|
624 |
-
|
625 |
-
|
626 |
-
|
627 |
-
|
628 |
-
|
629 |
-
'
|
630 |
-
'
|
631 |
-
'
|
632 |
-
'
|
633 |
-
|
634 |
-
'generate_lead',
|
635 |
-
'login',
|
636 |
-
'purchase',
|
637 |
-
'refund',
|
638 |
-
'remove_from_cart',
|
639 |
-
'search',
|
640 |
-
'select_content',
|
641 |
-
'set_checkout_option',
|
642 |
-
'share',
|
643 |
-
'sign_up',
|
644 |
-
'view_item',
|
645 |
-
'view_item_list',
|
646 |
-
'view_promotion',
|
647 |
-
'view_search_results',
|
648 |
-
);
|
649 |
-
|
650 |
-
// event action
|
651 |
-
$this->data['ga_event_action'] = isset( $args['ga_event_action'] ) && in_array( $args['ga_event_action'], $ga_event_actions )
|
652 |
-
? sanitize_text_field( $args['ga_event_action'] )
|
653 |
-
: 'view_item';
|
654 |
-
|
655 |
-
// custom event type
|
656 |
-
$this->data['ga_custom_event_action'] = $this->ga_event_action == '_custom' && !empty( $args['ga_custom_event_action'] )
|
657 |
-
? sanitizeKey( $args['ga_custom_event_action'] )
|
658 |
-
: null;
|
659 |
-
|
660 |
-
$this->data['ga_event_category'] = ! empty( $args['ga_event_category'] ) ? sanitize_text_field( $args['ga_event_category'] ) : null;
|
661 |
-
$this->data['ga_event_label'] = ! empty( $args['ga_event_label'] ) ? sanitize_text_field( $args['ga_event_label'] ) : null;
|
662 |
-
$this->data['ga_event_value'] = ! empty( $args['ga_event_value'] ) ? sanitize_text_field( $args['ga_event_value'] ) : null;
|
663 |
-
$this->data['ga_non_interactive'] = isset( $args['ga_non_interactive'] ) && $args['ga_non_interactive'] ? true : false;
|
664 |
}
|
665 |
|
666 |
|
|
|
|
|
667 |
}
|
668 |
|
669 |
public function getGACustomParams() {
|
670 |
-
if($this->
|
671 |
-
|
|
|
|
|
|
|
672 |
}
|
673 |
$custom = array();
|
674 |
if($this->ga_event_category) {
|
@@ -685,8 +713,12 @@ class CustomEvent {
|
|
685 |
}
|
686 |
|
687 |
public function getGaParams() {
|
688 |
-
if($this->
|
689 |
-
|
|
|
|
|
|
|
|
|
690 |
$list = array();
|
691 |
foreach ($this->GAEvents as $group) {
|
692 |
foreach ($group as $name => $fields) {
|
@@ -701,9 +733,5 @@ class CustomEvent {
|
|
701 |
return $list;
|
702 |
}
|
703 |
|
704 |
-
|
705 |
-
if(isset($this->data['ga_version']))
|
706 |
-
return $this->ga_version;
|
707 |
-
return "";
|
708 |
-
}
|
709 |
}
|
29 |
* @property array pinterest_custom_params
|
30 |
* @property array ga_custom_params
|
31 |
* @property array ga_params
|
|
|
32 |
*
|
33 |
* @property bool ga_enabled
|
34 |
* @property string ga_event_action
|
163 |
'ga_params' => array(),
|
164 |
'ga_custom_params' => array(),
|
165 |
'ga_custom_params_enabled' => false,
|
166 |
+
|
167 |
|
168 |
'bing_enabled' => false,
|
169 |
'bing_event_action' => null,
|
211 |
$state = get_post_meta( $post_id, '_pys_event_state', true );
|
212 |
$this->enabled = $state == 'active' ? true : false;
|
213 |
|
214 |
+
|
215 |
+
if(count(GA()->getPixelIDs()) == 0) {
|
216 |
+
$this->data['ga_enabled'] = false;
|
217 |
+
$this->clearGa();
|
218 |
+
}
|
219 |
+
|
220 |
}
|
221 |
|
222 |
}
|
560 |
public function isBingEnabled() {
|
561 |
return (bool) $this->bing_enabled;
|
562 |
}
|
563 |
+
public function isGaV4() {
|
564 |
+
$all = GA()->getPixelIDs();
|
565 |
+
if(count($all) == 0) {
|
566 |
+
return false;
|
567 |
+
}
|
568 |
+
return strpos($all[0], 'G') === 0;
|
569 |
+
}
|
570 |
+
private function clearGa() {
|
571 |
+
$this->data['ga_params'] = array();
|
572 |
+
$this->data['ga_custom_params'] = array();
|
573 |
+
$this->data['ga_event_action'] = 'CustomEvent';
|
574 |
+
$this->data['ga_custom_event_action']=null;
|
575 |
+
$this->data['ga_non_interactive'] = false;
|
576 |
+
// old
|
577 |
+
$this->data['ga_event_category'] = null;
|
578 |
+
$this->data['ga_event_label'] = null;
|
579 |
+
$this->data['ga_event_value'] = null;
|
580 |
+
}
|
581 |
|
582 |
private function updateGA( $args) {
|
|
|
|
|
583 |
|
584 |
+
$all = GA()->getPixelIDs();
|
585 |
|
586 |
+
$this->data['ga_enabled'] = count($all) > 0
|
587 |
+
&& isset( $args['ga_enabled'] )
|
588 |
+
&& $args['ga_enabled'];
|
589 |
|
590 |
+
if(!$this->data['ga_enabled']) {
|
591 |
+
$this->clearGa();
|
592 |
+
} else {
|
593 |
+
if($this->isGaV4()) {
|
594 |
+
|
595 |
+
$this->data['ga_event_action'] = isset( $args['ga_event_action'] )
|
596 |
+
? sanitize_text_field( $args['ga_event_action'] )
|
597 |
+
: 'view_item';
|
598 |
+
|
599 |
+
$this->data['ga_custom_event_action'] = $this->ga_event_action == '_custom' || $this->ga_event_action == 'CustomEvent' && !empty( $args['ga_custom_event_action'] )
|
600 |
+
? sanitizeKey( $args['ga_custom_event_action'] )
|
601 |
+
: null;
|
602 |
+
|
603 |
+
$this->data['ga_params'] = array();
|
604 |
|
|
|
|
|
605 |
|
606 |
+
foreach ($this->GAEvents as $group) {
|
607 |
+
foreach ($group as $name => $fields) {
|
608 |
+
if($name == $this->data['ga_event_action']) {
|
609 |
+
foreach ($fields as $field) {
|
610 |
+
$this->data['ga_params'][$field] = isset($args['ga_params'][$field]) ? $args['ga_params'][$field] : "";
|
611 |
+
}
|
612 |
+
break;
|
613 |
}
|
|
|
614 |
}
|
615 |
}
|
|
|
616 |
|
617 |
+
if ( isset( $args['ga_params'] ) ) {
|
618 |
+
foreach ($args['ga_params'] as $key => $val) {
|
619 |
+
$this->data['ga_params'][$key] = sanitize_text_field( $val );
|
620 |
+
}
|
621 |
}
|
|
|
622 |
|
623 |
+
// reset old custom params
|
624 |
+
$this->data['ga_custom_params'] = array();
|
625 |
|
626 |
+
// custom params
|
627 |
+
if ( isset( $args['ga_custom_params'] ) ) {
|
628 |
|
629 |
+
foreach ( $args['ga_custom_params'] as $custom_param ) {
|
630 |
|
631 |
+
if ( ! empty( $custom_param['name'] ) && ! empty( $custom_param['value'] ) ) {
|
632 |
|
633 |
+
$this->data['ga_custom_params'][] = array(
|
634 |
+
'name' => sanitize_text_field( $custom_param['name'] ),
|
635 |
+
'value' => sanitize_text_field( $custom_param['value'] ),
|
636 |
+
);
|
637 |
+
|
638 |
+
}
|
639 |
|
640 |
}
|
641 |
|
642 |
}
|
643 |
+
$this->data['ga_non_interactive'] = isset( $args['ga_non_interactive'] ) && $args['ga_non_interactive'] ? true : false;
|
644 |
+
|
645 |
+
|
646 |
|
|
|
|
|
647 |
} else {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
648 |
|
649 |
+
$ga_event_actions = array(
|
650 |
+
'_custom',
|
651 |
+
'add_payment_info',
|
652 |
+
'add_to_cart',
|
653 |
+
'add_to_wishlist',
|
654 |
+
'begin_checkout',
|
655 |
+
'checkout_progress',
|
656 |
+
'generate_lead',
|
657 |
+
'login',
|
658 |
+
'purchase',
|
659 |
+
'refund',
|
660 |
+
'remove_from_cart',
|
661 |
+
'search',
|
662 |
+
'select_content',
|
663 |
+
'set_checkout_option',
|
664 |
+
'share',
|
665 |
+
'sign_up',
|
666 |
+
'view_item',
|
667 |
+
'view_item_list',
|
668 |
+
'view_promotion',
|
669 |
+
'view_search_results',
|
670 |
+
);
|
671 |
+
|
672 |
+
// event action
|
673 |
+
$this->data['ga_event_action'] = isset( $args['ga_event_action'] ) && in_array( $args['ga_event_action'], $ga_event_actions )
|
674 |
+
? sanitize_text_field( $args['ga_event_action'] )
|
675 |
+
: 'view_item';
|
676 |
|
677 |
+
// custom event type
|
678 |
+
$this->data['ga_custom_event_action'] = $this->ga_event_action == '_custom' && !empty( $args['ga_custom_event_action'] )
|
679 |
+
? sanitizeKey( $args['ga_custom_event_action'] )
|
680 |
+
: null;
|
681 |
+
|
682 |
+
$this->data['ga_event_category'] = ! empty( $args['ga_event_category'] ) ? sanitize_text_field( $args['ga_event_category'] ) : null;
|
683 |
+
$this->data['ga_event_label'] = ! empty( $args['ga_event_label'] ) ? sanitize_text_field( $args['ga_event_label'] ) : null;
|
684 |
+
$this->data['ga_event_value'] = ! empty( $args['ga_event_value'] ) ? sanitize_text_field( $args['ga_event_value'] ) : null;
|
685 |
+
$this->data['ga_non_interactive'] = isset( $args['ga_non_interactive'] ) && $args['ga_non_interactive'] ? true : false;
|
686 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
687 |
}
|
688 |
|
689 |
|
690 |
+
|
691 |
+
|
692 |
}
|
693 |
|
694 |
public function getGACustomParams() {
|
695 |
+
if($this->isGaV4()) {
|
696 |
+
if(is_array($this->ga_custom_params)) {
|
697 |
+
return $this->ga_custom_params;
|
698 |
+
}
|
699 |
+
return [];
|
700 |
}
|
701 |
$custom = array();
|
702 |
if($this->ga_event_category) {
|
713 |
}
|
714 |
|
715 |
public function getGaParams() {
|
716 |
+
if($this->isGaV4())
|
717 |
+
if(is_array($this->ga_params)) {
|
718 |
+
return $this->ga_params;
|
719 |
+
} else {
|
720 |
+
return [];
|
721 |
+
}
|
722 |
$list = array();
|
723 |
foreach ($this->GAEvents as $group) {
|
724 |
foreach ($group as $name => $fields) {
|
733 |
return $list;
|
734 |
}
|
735 |
|
736 |
+
|
|
|
|
|
|
|
|
|
737 |
}
|
includes/class-events-manager-ajax_hook.php
CHANGED
@@ -88,7 +88,7 @@ class AjaxHookEventManager {
|
|
88 |
|
89 |
if( $cart_id==$postId) {
|
90 |
PYS()->getLog()->debug('trackRemoveFromCartEvent send fb server with out browser event');
|
91 |
-
$event = new SingleEvent("woo_remove_from_cart",EventTypes::$STATIC);
|
92 |
$eventData = Facebook()->getEventData($eventId,$item);
|
93 |
$event->addParams($eventData['data']);
|
94 |
$event->addParams(getStandardParams());
|
@@ -207,7 +207,7 @@ class AjaxHookEventManager {
|
|
207 |
}
|
208 |
|
209 |
|
210 |
-
$event = new SingleEvent('woo_add_to_cart_on_button_click',EventTypes::$STATIC);
|
211 |
$event->args = ['productId' => $_product_id,'quantity' => $quantity];
|
212 |
$isSuccess = $pixel->addParamsToEvent( $event );
|
213 |
if ( !$isSuccess ) {
|
@@ -228,9 +228,7 @@ class AjaxHookEventManager {
|
|
228 |
|
229 |
|
230 |
// add standard params
|
231 |
-
|
232 |
-
$event->addParams($standardParams);
|
233 |
-
}
|
234 |
|
235 |
// prepare event data
|
236 |
$eventData = $event->getData();
|
88 |
|
89 |
if( $cart_id==$postId) {
|
90 |
PYS()->getLog()->debug('trackRemoveFromCartEvent send fb server with out browser event');
|
91 |
+
$event = new SingleEvent("woo_remove_from_cart",EventTypes::$STATIC,'woo');
|
92 |
$eventData = Facebook()->getEventData($eventId,$item);
|
93 |
$event->addParams($eventData['data']);
|
94 |
$event->addParams(getStandardParams());
|
207 |
}
|
208 |
|
209 |
|
210 |
+
$event = new SingleEvent('woo_add_to_cart_on_button_click',EventTypes::$STATIC,'woo');
|
211 |
$event->args = ['productId' => $_product_id,'quantity' => $quantity];
|
212 |
$isSuccess = $pixel->addParamsToEvent( $event );
|
213 |
if ( !$isSuccess ) {
|
228 |
|
229 |
|
230 |
// add standard params
|
231 |
+
$event->addParams($standardParams);
|
|
|
|
|
232 |
|
233 |
// prepare event data
|
234 |
$eventData = $event->getData();
|
includes/class-events-manager.php
CHANGED
@@ -126,7 +126,7 @@ class EventsManager {
|
|
126 |
// initial event
|
127 |
foreach ( PYS()->getRegisteredPixels() as $pixel ) {
|
128 |
|
129 |
-
$event = new SingleEvent('init_event',EventTypes::$STATIC);
|
130 |
$params = array();
|
131 |
if(get_post_type() == "post") {
|
132 |
global $post;
|
@@ -138,22 +138,18 @@ class EventsManager {
|
|
138 |
if ( !$isSuccess ) {
|
139 |
continue; // event is disabled or not supported for the pixel
|
140 |
}
|
141 |
-
|
142 |
-
$event->addParams($this->standardParams);
|
143 |
-
}
|
144 |
$this->addStaticEvent( $event,$pixel,"" );
|
145 |
}
|
146 |
// search event
|
147 |
if ( PYS()->getOption('search_event_enabled' ) && is_search() ) {
|
148 |
foreach (PYS()->getRegisteredPixels() as $pixel) {
|
149 |
-
$event = new SingleEvent('search_event', EventTypes::$STATIC);
|
150 |
$isSuccess = $pixel->addParamsToEvent( $event );
|
151 |
if ( !$isSuccess ) {
|
152 |
continue; // event is disabled or not supported for the pixel
|
153 |
}
|
154 |
-
|
155 |
-
$event->addParams($this->standardParams);
|
156 |
-
}
|
157 |
$this->addStaticEvent( $event,$pixel,"" );
|
158 |
}
|
159 |
}
|
@@ -225,14 +221,10 @@ class EventsManager {
|
|
225 |
// add standard params
|
226 |
if(is_a($event,GroupedEvent::class)) {
|
227 |
foreach ($event->getEvents() as $child) {
|
228 |
-
|
229 |
-
$child->addParams($this->standardParams);
|
230 |
-
}
|
231 |
}
|
232 |
} else {
|
233 |
-
|
234 |
-
$event->addParams($this->standardParams);
|
235 |
-
}
|
236 |
}
|
237 |
//save different types of events
|
238 |
if($event->getType() == EventTypes::$STATIC) {
|
@@ -436,7 +428,7 @@ class EventsManager {
|
|
436 |
|
437 |
foreach ( PYS()->getRegisteredPixels() as $pixel ) {
|
438 |
/** @var Pixel|Settings $pixel */
|
439 |
-
$event = new SingleEvent('woo_add_to_cart_on_button_click',EventTypes::$STATIC);
|
440 |
$event->args = ['productId' => $product_id,'quantity' => 1];
|
441 |
$isSuccess = $pixel->addParamsToEvent( $event );
|
442 |
if ( !$isSuccess ) {
|
@@ -517,7 +509,7 @@ class EventsManager {
|
|
517 |
foreach ( PYS()->getRegisteredPixels() as $pixel ) {
|
518 |
/** @var Pixel|Settings $pixel */
|
519 |
|
520 |
-
$event = new SingleEvent($eventType,EventTypes::$STATIC);
|
521 |
$event->args = ['productId' => $product_id,'quantity' => 1];
|
522 |
$isSuccess = $pixel->addParamsToEvent( $event );
|
523 |
if ( !$isSuccess ) {
|
126 |
// initial event
|
127 |
foreach ( PYS()->getRegisteredPixels() as $pixel ) {
|
128 |
|
129 |
+
$event = new SingleEvent('init_event',EventTypes::$STATIC,'');
|
130 |
$params = array();
|
131 |
if(get_post_type() == "post") {
|
132 |
global $post;
|
138 |
if ( !$isSuccess ) {
|
139 |
continue; // event is disabled or not supported for the pixel
|
140 |
}
|
141 |
+
$event->addParams($this->standardParams);
|
|
|
|
|
142 |
$this->addStaticEvent( $event,$pixel,"" );
|
143 |
}
|
144 |
// search event
|
145 |
if ( PYS()->getOption('search_event_enabled' ) && is_search() ) {
|
146 |
foreach (PYS()->getRegisteredPixels() as $pixel) {
|
147 |
+
$event = new SingleEvent('search_event', EventTypes::$STATIC,'');
|
148 |
$isSuccess = $pixel->addParamsToEvent( $event );
|
149 |
if ( !$isSuccess ) {
|
150 |
continue; // event is disabled or not supported for the pixel
|
151 |
}
|
152 |
+
$event->addParams($this->standardParams);
|
|
|
|
|
153 |
$this->addStaticEvent( $event,$pixel,"" );
|
154 |
}
|
155 |
}
|
221 |
// add standard params
|
222 |
if(is_a($event,GroupedEvent::class)) {
|
223 |
foreach ($event->getEvents() as $child) {
|
224 |
+
$child->addParams($this->standardParams);
|
|
|
|
|
225 |
}
|
226 |
} else {
|
227 |
+
$event->addParams($this->standardParams);
|
|
|
|
|
228 |
}
|
229 |
//save different types of events
|
230 |
if($event->getType() == EventTypes::$STATIC) {
|
428 |
|
429 |
foreach ( PYS()->getRegisteredPixels() as $pixel ) {
|
430 |
/** @var Pixel|Settings $pixel */
|
431 |
+
$event = new SingleEvent('woo_add_to_cart_on_button_click',EventTypes::$STATIC,'woo');
|
432 |
$event->args = ['productId' => $product_id,'quantity' => 1];
|
433 |
$isSuccess = $pixel->addParamsToEvent( $event );
|
434 |
if ( !$isSuccess ) {
|
509 |
foreach ( PYS()->getRegisteredPixels() as $pixel ) {
|
510 |
/** @var Pixel|Settings $pixel */
|
511 |
|
512 |
+
$event = new SingleEvent($eventType,EventTypes::$STATIC,'woo');
|
513 |
$event->args = ['productId' => $product_id,'quantity' => 1];
|
514 |
$isSuccess = $pixel->addParamsToEvent( $event );
|
515 |
if ( !$isSuccess ) {
|
includes/class-settings.php
CHANGED
@@ -488,11 +488,11 @@ abstract class Settings {
|
|
488 |
/**
|
489 |
* Output number input
|
490 |
*
|
491 |
-
* @param
|
492 |
-
* @param
|
493 |
* @param bool $disabled
|
494 |
*/
|
495 |
-
public function render_number_input( $key, $placeholder =
|
496 |
|
497 |
$attr_name = "pys[$this->slug][$key]";
|
498 |
$attr_id = 'pys_' . $this->slug . '_' . $key;
|
488 |
/**
|
489 |
* Output number input
|
490 |
*
|
491 |
+
* @param string $key
|
492 |
+
* @param string $placeholder
|
493 |
* @param bool $disabled
|
494 |
*/
|
495 |
+
public function render_number_input( $key, $placeholder = '', $disabled = false ) {
|
496 |
|
497 |
$attr_name = "pys[$this->slug][$key]";
|
498 |
$attr_id = 'pys_' . $this->slug . '_' . $key;
|
includes/events/class-event-grouped.php
CHANGED
@@ -4,8 +4,8 @@ namespace PixelYourSite;
|
|
4 |
class GroupedEvent extends PYSEvent
|
5 |
{
|
6 |
private $events = array();
|
7 |
-
public function __construct($id, $type) {
|
8 |
-
parent::__construct($id, $type);
|
9 |
}
|
10 |
|
11 |
/**
|
4 |
class GroupedEvent extends PYSEvent
|
5 |
{
|
6 |
private $events = array();
|
7 |
+
public function __construct($id, $type,$category='') {
|
8 |
+
parent::__construct($id, $type,$category);
|
9 |
}
|
10 |
|
11 |
/**
|
includes/events/class-event-single.php
CHANGED
@@ -8,8 +8,8 @@ class SingleEvent extends PYSEvent{
|
|
8 |
'delay' => 0
|
9 |
);
|
10 |
|
11 |
-
public function __construct($id,$type){
|
12 |
-
parent::__construct($id,$type);
|
13 |
$this->payload['type'] = $type;
|
14 |
}
|
15 |
|
8 |
'delay' => 0
|
9 |
);
|
10 |
|
11 |
+
public function __construct($id,$type,$category=''){
|
12 |
+
parent::__construct($id,$type,$category);
|
13 |
$this->payload['type'] = $type;
|
14 |
}
|
15 |
|
includes/events/class-event.php
CHANGED
@@ -9,15 +9,18 @@ class EventTypes {
|
|
9 |
abstract class PYSEvent {
|
10 |
protected $id;
|
11 |
protected $type;
|
|
|
12 |
public $args = null;
|
13 |
/**
|
14 |
* GroupedEvent constructor.
|
15 |
-
* @param $id // unique id use in js object like key
|
16 |
-
* @param $type // can be static(fire when open page) or dynamic (fire when some event did)
|
|
|
17 |
*/
|
18 |
-
public function __construct($id,$type){
|
19 |
$this->id = $id;
|
20 |
$this->type = $type;
|
|
|
21 |
}
|
22 |
|
23 |
function getId() {
|
@@ -27,4 +30,8 @@ abstract class PYSEvent {
|
|
27 |
function getType() {
|
28 |
return $this->type;
|
29 |
}
|
30 |
-
|
|
|
|
|
|
|
|
9 |
abstract class PYSEvent {
|
10 |
protected $id;
|
11 |
protected $type;
|
12 |
+
protected $category;
|
13 |
public $args = null;
|
14 |
/**
|
15 |
* GroupedEvent constructor.
|
16 |
+
* @param String $id // unique id use in js object like key
|
17 |
+
* @param String $type // can be static(fire when open page) or dynamic (fire when some event did)
|
18 |
+
* @param String $category // event category like woo, edd signal etc
|
19 |
*/
|
20 |
+
public function __construct($id,$type,$category=''){
|
21 |
$this->id = $id;
|
22 |
$this->type = $type;
|
23 |
+
$this->category = $category;
|
24 |
}
|
25 |
|
26 |
function getId() {
|
30 |
function getType() {
|
31 |
return $this->type;
|
32 |
}
|
33 |
+
|
34 |
+
function getCategory() {
|
35 |
+
return $this->category;
|
36 |
+
}
|
37 |
+
}
|
includes/events/class-events-custom.php
CHANGED
@@ -68,7 +68,7 @@ class EventsCustom extends EventsFactory {
|
|
68 |
|
69 |
switch ($event->getTriggerType()) {
|
70 |
case 'page_visit': {
|
71 |
-
$singleEvent = new SingleEvent('custom_event',EventTypes::$STATIC);
|
72 |
$singleEvent->args = $event;
|
73 |
return $singleEvent;
|
74 |
}
|
68 |
|
69 |
switch ($event->getTriggerType()) {
|
70 |
case 'page_visit': {
|
71 |
+
$singleEvent = new SingleEvent('custom_event',EventTypes::$STATIC,'custom');
|
72 |
$singleEvent->args = $event;
|
73 |
return $singleEvent;
|
74 |
}
|
includes/events/class-events-edd.php
CHANGED
@@ -136,15 +136,15 @@ class EventsEdd extends EventsFactory {
|
|
136 |
case 'edd_add_to_cart_on_checkout_page' :
|
137 |
case 'edd_view_category':
|
138 |
case 'edd_view_content':{
|
139 |
-
return new SingleEvent($event,EventTypes::$STATIC);
|
140 |
}
|
141 |
|
142 |
case 'edd_remove_from_cart': {
|
143 |
-
return new GroupedEvent($event,EventTypes::$DYNAMIC);
|
144 |
}
|
145 |
case 'edd_add_to_cart_on_button_click': {
|
146 |
|
147 |
-
return new SingleEvent($event,EventTypes::$DYNAMIC);
|
148 |
}
|
149 |
}
|
150 |
}
|
136 |
case 'edd_add_to_cart_on_checkout_page' :
|
137 |
case 'edd_view_category':
|
138 |
case 'edd_view_content':{
|
139 |
+
return new SingleEvent($event,EventTypes::$STATIC,'edd');
|
140 |
}
|
141 |
|
142 |
case 'edd_remove_from_cart': {
|
143 |
+
return new GroupedEvent($event,EventTypes::$DYNAMIC,'edd');
|
144 |
}
|
145 |
case 'edd_add_to_cart_on_button_click': {
|
146 |
|
147 |
+
return new SingleEvent($event,EventTypes::$DYNAMIC,'edd');
|
148 |
}
|
149 |
}
|
150 |
}
|
includes/events/class-events-fdp.php
CHANGED
@@ -70,11 +70,11 @@ class EventsFdp extends EventsFactory
|
|
70 |
switch ($event) {
|
71 |
case 'fdp_view_category':
|
72 |
case 'fdp_view_content': {
|
73 |
-
return new SingleEvent($event,EventTypes::$STATIC);
|
74 |
}
|
75 |
case 'fdp_add_to_cart':
|
76 |
case 'fdp_purchase': {
|
77 |
-
return new SingleEvent($event,EventTypes::$TRIGGER);
|
78 |
}
|
79 |
}
|
80 |
}
|
70 |
switch ($event) {
|
71 |
case 'fdp_view_category':
|
72 |
case 'fdp_view_content': {
|
73 |
+
return new SingleEvent($event,EventTypes::$STATIC,'fdp');
|
74 |
}
|
75 |
case 'fdp_add_to_cart':
|
76 |
case 'fdp_purchase': {
|
77 |
+
return new SingleEvent($event,EventTypes::$TRIGGER,'fdp');
|
78 |
}
|
79 |
}
|
80 |
}
|
includes/events/class-events-signal.php
CHANGED
@@ -105,7 +105,7 @@ class EventsSignal extends EventsFactory {
|
|
105 |
case "signal_download": {
|
106 |
$params['event_action'] = 'Download';
|
107 |
$payload["extensions"] = PYS()->getOption( 'download_event_extensions' );
|
108 |
-
$item = new SingleEvent($event,EventTypes::$DYNAMIC);
|
109 |
$item->addPayload($payload);
|
110 |
$item->addParams($params);
|
111 |
return $item;
|
@@ -114,7 +114,7 @@ class EventsSignal extends EventsFactory {
|
|
114 |
|
115 |
$payload["scroll_percent"] = PYS()->getOption( 'signal_page_scroll_value' );
|
116 |
$params['event_action'] = 'Scroll '. $payload["scroll_percent"]."%";
|
117 |
-
$item = new SingleEvent($event,EventTypes::$DYNAMIC);
|
118 |
$item->addPayload($payload);
|
119 |
$item->addParams($params);
|
120 |
return $item;
|
@@ -122,14 +122,14 @@ class EventsSignal extends EventsFactory {
|
|
122 |
case "signal_time_on_page": {
|
123 |
$payload["time_on_page"] = PYS()->getOption( 'signal_time_on_page_value' );
|
124 |
$params['event_action'] = 'Time on page '.$payload["time_on_page"]." seconds";
|
125 |
-
$item = new SingleEvent($event,EventTypes::$DYNAMIC);
|
126 |
$item->addPayload($payload);
|
127 |
$item->addParams($params);
|
128 |
return $item;
|
129 |
}
|
130 |
case "signal_user_signup": {
|
131 |
$params['event_action'] = 'User Signup';
|
132 |
-
$item = new SingleEvent($event,EventTypes::$STATIC);
|
133 |
$item->addPayload($payload);
|
134 |
$item->addParams($params);
|
135 |
return $item;
|
@@ -137,42 +137,42 @@ class EventsSignal extends EventsFactory {
|
|
137 |
|
138 |
case "signal_watch_video": {
|
139 |
$params['event_action'] = 'Video ';
|
140 |
-
$item = new SingleEvent($event,EventTypes::$DYNAMIC);
|
141 |
$item->addPayload($payload);
|
142 |
$item->addParams($params);
|
143 |
return $item;
|
144 |
}
|
145 |
case "signal_adsense": {
|
146 |
$params['event_action'] = 'Adsense';
|
147 |
-
$item = new SingleEvent($event,EventTypes::$DYNAMIC);
|
148 |
$item->addPayload($payload);
|
149 |
$item->addParams($params);
|
150 |
return $item;
|
151 |
}
|
152 |
case "signal_tel": {
|
153 |
$params['event_action'] = 'Tel';
|
154 |
-
$item = new SingleEvent($event,EventTypes::$DYNAMIC);
|
155 |
$item->addPayload($payload);
|
156 |
$item->addParams($params);
|
157 |
return $item;
|
158 |
}
|
159 |
case "signal_email": {
|
160 |
$params['event_action'] = 'Email';
|
161 |
-
$item = new SingleEvent($event,EventTypes::$DYNAMIC);
|
162 |
$item->addPayload($payload);
|
163 |
$item->addParams($params);
|
164 |
return $item;
|
165 |
}
|
166 |
case "signal_form": {
|
167 |
$params['event_action'] = 'Form';
|
168 |
-
$item = new SingleEvent($event,EventTypes::$DYNAMIC);
|
169 |
$item->addPayload($payload);
|
170 |
$item->addParams($params);
|
171 |
return $item;
|
172 |
}
|
173 |
case "signal_comment": {
|
174 |
$params['event_action'] = 'Comment';
|
175 |
-
$item = new SingleEvent($event,EventTypes::$DYNAMIC);
|
176 |
$item->addPayload($payload);
|
177 |
$item->addParams($params);
|
178 |
return $item;
|
@@ -180,7 +180,7 @@ class EventsSignal extends EventsFactory {
|
|
180 |
|
181 |
default:
|
182 |
{
|
183 |
-
$item = new SingleEvent($event, EventTypes::$DYNAMIC);
|
184 |
$item->addPayload($payload);
|
185 |
return $item;
|
186 |
}
|
105 |
case "signal_download": {
|
106 |
$params['event_action'] = 'Download';
|
107 |
$payload["extensions"] = PYS()->getOption( 'download_event_extensions' );
|
108 |
+
$item = new SingleEvent($event,EventTypes::$DYNAMIC,'signal');
|
109 |
$item->addPayload($payload);
|
110 |
$item->addParams($params);
|
111 |
return $item;
|
114 |
|
115 |
$payload["scroll_percent"] = PYS()->getOption( 'signal_page_scroll_value' );
|
116 |
$params['event_action'] = 'Scroll '. $payload["scroll_percent"]."%";
|
117 |
+
$item = new SingleEvent($event,EventTypes::$DYNAMIC,'signal');
|
118 |
$item->addPayload($payload);
|
119 |
$item->addParams($params);
|
120 |
return $item;
|
122 |
case "signal_time_on_page": {
|
123 |
$payload["time_on_page"] = PYS()->getOption( 'signal_time_on_page_value' );
|
124 |
$params['event_action'] = 'Time on page '.$payload["time_on_page"]." seconds";
|
125 |
+
$item = new SingleEvent($event,EventTypes::$DYNAMIC,'signal');
|
126 |
$item->addPayload($payload);
|
127 |
$item->addParams($params);
|
128 |
return $item;
|
129 |
}
|
130 |
case "signal_user_signup": {
|
131 |
$params['event_action'] = 'User Signup';
|
132 |
+
$item = new SingleEvent($event,EventTypes::$STATIC,'signal');
|
133 |
$item->addPayload($payload);
|
134 |
$item->addParams($params);
|
135 |
return $item;
|
137 |
|
138 |
case "signal_watch_video": {
|
139 |
$params['event_action'] = 'Video ';
|
140 |
+
$item = new SingleEvent($event,EventTypes::$DYNAMIC,'signal');
|
141 |
$item->addPayload($payload);
|
142 |
$item->addParams($params);
|
143 |
return $item;
|
144 |
}
|
145 |
case "signal_adsense": {
|
146 |
$params['event_action'] = 'Adsense';
|
147 |
+
$item = new SingleEvent($event,EventTypes::$DYNAMIC,'signal');
|
148 |
$item->addPayload($payload);
|
149 |
$item->addParams($params);
|
150 |
return $item;
|
151 |
}
|
152 |
case "signal_tel": {
|
153 |
$params['event_action'] = 'Tel';
|
154 |
+
$item = new SingleEvent($event,EventTypes::$DYNAMIC,'signal');
|
155 |
$item->addPayload($payload);
|
156 |
$item->addParams($params);
|
157 |
return $item;
|
158 |
}
|
159 |
case "signal_email": {
|
160 |
$params['event_action'] = 'Email';
|
161 |
+
$item = new SingleEvent($event,EventTypes::$DYNAMIC,'signal');
|
162 |
$item->addPayload($payload);
|
163 |
$item->addParams($params);
|
164 |
return $item;
|
165 |
}
|
166 |
case "signal_form": {
|
167 |
$params['event_action'] = 'Form';
|
168 |
+
$item = new SingleEvent($event,EventTypes::$DYNAMIC,'signal');
|
169 |
$item->addPayload($payload);
|
170 |
$item->addParams($params);
|
171 |
return $item;
|
172 |
}
|
173 |
case "signal_comment": {
|
174 |
$params['event_action'] = 'Comment';
|
175 |
+
$item = new SingleEvent($event,EventTypes::$DYNAMIC,'signal');
|
176 |
$item->addPayload($payload);
|
177 |
$item->addParams($params);
|
178 |
return $item;
|
180 |
|
181 |
default:
|
182 |
{
|
183 |
+
$item = new SingleEvent($event, EventTypes::$DYNAMIC,'signal');
|
184 |
$item->addPayload($payload);
|
185 |
return $item;
|
186 |
}
|
includes/events/class-events-woo.php
CHANGED
@@ -174,7 +174,7 @@ class EventsWoo extends EventsFactory {
|
|
174 |
{
|
175 |
switch ($event) {
|
176 |
case 'woo_remove_from_cart':{
|
177 |
-
$event = new GroupedEvent($event,EventTypes::$DYNAMIC);
|
178 |
return $event;
|
179 |
}
|
180 |
|
@@ -184,21 +184,21 @@ class EventsWoo extends EventsFactory {
|
|
184 |
case 'woo_view_category':
|
185 |
case 'woo_view_item_list':
|
186 |
case 'woo_view_content':
|
187 |
-
return new SingleEvent($event,EventTypes::$STATIC);
|
188 |
|
189 |
case 'woo_add_to_cart_on_button_click':
|
190 |
-
return new SingleEvent($event,EventTypes::$DYNAMIC);
|
191 |
case 'woo_purchase' : {
|
192 |
$events = array();
|
193 |
$order_key = sanitize_key($_REQUEST['key']);
|
194 |
$order_id = (int) wc_get_order_id_by_order_key( $order_key );
|
195 |
|
196 |
update_post_meta( $order_id, '_pys_purchase_event_fired', true );
|
197 |
-
$events[] = new SingleEvent($event,EventTypes::$STATIC);
|
198 |
|
199 |
// add child event complete_registration
|
200 |
if(PYS()->getOption( 'woo_complete_registration_enabled' )) {
|
201 |
-
$events[] = new SingleEvent('woo_complete_registration',EventTypes::$STATIC);
|
202 |
}
|
203 |
|
204 |
|
174 |
{
|
175 |
switch ($event) {
|
176 |
case 'woo_remove_from_cart':{
|
177 |
+
$event = new GroupedEvent($event,EventTypes::$DYNAMIC,'woo');
|
178 |
return $event;
|
179 |
}
|
180 |
|
184 |
case 'woo_view_category':
|
185 |
case 'woo_view_item_list':
|
186 |
case 'woo_view_content':
|
187 |
+
return new SingleEvent($event,EventTypes::$STATIC,'woo');
|
188 |
|
189 |
case 'woo_add_to_cart_on_button_click':
|
190 |
+
return new SingleEvent($event,EventTypes::$DYNAMIC,'woo');
|
191 |
case 'woo_purchase' : {
|
192 |
$events = array();
|
193 |
$order_key = sanitize_key($_REQUEST['key']);
|
194 |
$order_id = (int) wc_get_order_id_by_order_key( $order_key );
|
195 |
|
196 |
update_post_meta( $order_id, '_pys_purchase_event_fired', true );
|
197 |
+
$events[] = new SingleEvent($event,EventTypes::$STATIC,'woo');
|
198 |
|
199 |
// add child event complete_registration
|
200 |
if(PYS()->getOption( 'woo_complete_registration_enabled' )) {
|
201 |
+
$events[] = new SingleEvent('woo_complete_registration',EventTypes::$STATIC,'woo');
|
202 |
}
|
203 |
|
204 |
|
includes/functions-common.php
CHANGED
@@ -548,9 +548,10 @@ function getTheContentParams( $allowedContentTypes = array() ) {
|
|
548 |
$term = get_term_by( 'slug', $slug, 'post_tag' );
|
549 |
|
550 |
$params['post_type'] = 'tag';
|
551 |
-
$
|
552 |
-
|
553 |
-
|
|
|
554 |
} else {
|
555 |
|
556 |
$term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) );
|
@@ -1071,8 +1072,11 @@ function getStandardParams() {
|
|
1071 |
$slug = get_query_var( 'tag' );
|
1072 |
$term = get_term_by( 'slug', $slug, 'post_tag' );
|
1073 |
$params['post_type'] = 'tag';
|
1074 |
-
$
|
1075 |
-
|
|
|
|
|
|
|
1076 |
|
1077 |
} elseif (is_tax()) {
|
1078 |
$term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) );
|
548 |
$term = get_term_by( 'slug', $slug, 'post_tag' );
|
549 |
|
550 |
$params['post_type'] = 'tag';
|
551 |
+
if($term) {
|
552 |
+
$params['post_id'] = $term->term_id;
|
553 |
+
$params['content_name'] = $term->name;
|
554 |
+
}
|
555 |
} else {
|
556 |
|
557 |
$term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) );
|
1072 |
$slug = get_query_var( 'tag' );
|
1073 |
$term = get_term_by( 'slug', $slug, 'post_tag' );
|
1074 |
$params['post_type'] = 'tag';
|
1075 |
+
if($term) {
|
1076 |
+
$params['post_id'] = $term->term_id;
|
1077 |
+
$params['page_title'] = $term->name;
|
1078 |
+
}
|
1079 |
+
|
1080 |
|
1081 |
} elseif (is_tax()) {
|
1082 |
$term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) );
|
includes/logger/class-pys-logger.php
CHANGED
@@ -21,7 +21,7 @@ class PYS_Logger
|
|
21 |
}
|
22 |
|
23 |
public function init() {
|
24 |
-
$this->isEnabled = PYS()->getOption('
|
25 |
}
|
26 |
|
27 |
/**
|
21 |
}
|
22 |
|
23 |
public function init() {
|
24 |
+
$this->isEnabled = PYS()->getOption('pys_logs_enable');
|
25 |
}
|
26 |
|
27 |
/**
|
includes/options_defaults.json
CHANGED
@@ -120,6 +120,6 @@
|
|
120 |
"enable_edd_num_items_param": true,
|
121 |
"enable_edd_product_price_param": true,
|
122 |
"enable_remove_download_url_param": true,
|
123 |
-
"
|
124 |
"woo_add_to_cart_catch_method": "add_cart_js"
|
125 |
}
|
120 |
"enable_edd_num_items_param": true,
|
121 |
"enable_edd_product_price_param": true,
|
122 |
"enable_remove_download_url_param": true,
|
123 |
+
"pys_logs_enable": false,
|
124 |
"woo_add_to_cart_catch_method": "add_cart_js"
|
125 |
}
|
includes/options_fields.json
CHANGED
@@ -108,6 +108,6 @@
|
|
108 |
"enable_edd_num_items_param": "checkbox",
|
109 |
"enable_edd_product_price_param": "checkbox",
|
110 |
"enable_remove_download_url_param": "checkbox",
|
111 |
-
"
|
112 |
"woo_add_to_cart_catch_method": "select"
|
113 |
}
|
108 |
"enable_edd_num_items_param": "checkbox",
|
109 |
"enable_edd_product_price_param": "checkbox",
|
110 |
"enable_remove_download_url_param": "checkbox",
|
111 |
+
"pys_logs_enable": "checkbox",
|
112 |
"woo_add_to_cart_catch_method": "select"
|
113 |
}
|
includes/views/html-logs.php
CHANGED
@@ -17,7 +17,7 @@ if(isset($_GET['clear_logs'])) {
|
|
17 |
|
18 |
<div class="card card-static">
|
19 |
<div class="card-header ">
|
20 |
-
<?php PYS()->render_switcher_input('
|
21 |
<div style="float: right;margin-top: 10px;">
|
22 |
<a style="margin-right: 30px" href="<?php echo esc_url( buildAdminUrl( 'pixelyoursite', 'logs' ) ); ?>&clear_logs=true">Clear Logs</a>
|
23 |
<a href="<?= PYS_Logger::get_log_file_url() ?>" target="_blank" download>Download Logs</a>
|
17 |
|
18 |
<div class="card card-static">
|
19 |
<div class="card-header ">
|
20 |
+
<?php PYS()->render_switcher_input('pys_logs_enable');?> Plugin Logs
|
21 |
<div style="float: right;margin-top: 10px;">
|
22 |
<a style="margin-right: 30px" href="<?php echo esc_url( buildAdminUrl( 'pixelyoursite', 'logs' ) ); ?>&clear_logs=true">Clear Logs</a>
|
23 |
<a href="<?= PYS_Logger::get_log_file_url() ?>" target="_blank" download>Download Logs</a>
|
includes/views/html-main-edd.php
CHANGED
@@ -192,7 +192,7 @@ e&utm_campaign=pro-feature' ); ?>
|
|
192 |
<div class="card-header">
|
193 |
Pinterest Tag ID setting
|
194 |
<?php renderProBadge("https://www.pixelyoursite.com/pinterest-tag?utm_source=pys-free-plugin&utm_medium=pinterest-badge&utm_campaign=requiere-free-add-on",
|
195 |
-
"Requires
|
196 |
</div>
|
197 |
</div>
|
198 |
<?php endif; ?>
|
192 |
<div class="card-header">
|
193 |
Pinterest Tag ID setting
|
194 |
<?php renderProBadge("https://www.pixelyoursite.com/pinterest-tag?utm_source=pys-free-plugin&utm_medium=pinterest-badge&utm_campaign=requiere-free-add-on",
|
195 |
+
"Requires paid add-on"); ?>
|
196 |
</div>
|
197 |
</div>
|
198 |
<?php endif; ?>
|
includes/views/html-main-events-edit.php
CHANGED
@@ -14,7 +14,7 @@ if(isset( $_REQUEST['id'] )) {
|
|
14 |
} else {
|
15 |
$event = new CustomEvent();
|
16 |
}
|
17 |
-
|
18 |
|
19 |
?>
|
20 |
|
@@ -457,7 +457,7 @@ if(isset( $_REQUEST['id'] )) {
|
|
457 |
<div class="row mt-3">
|
458 |
<div class="col ">
|
459 |
<?php
|
460 |
-
if(
|
461 |
?>
|
462 |
<div class="row mb-3">
|
463 |
<div class="col col-offset-left form-inline" >
|
@@ -522,8 +522,6 @@ if(isset( $_REQUEST['id'] )) {
|
|
522 |
</div>
|
523 |
<?php endforeach; ?>
|
524 |
</div>
|
525 |
-
|
526 |
-
|
527 |
<div class="row mt-3">
|
528 |
<div class="col-5"></div>
|
529 |
<div class="col-4">
|
@@ -547,10 +545,6 @@ if(isset( $_REQUEST['id'] )) {
|
|
547 |
<strong>ATTENTION</strong>: the plugin automatically tracks ecommerce specific events for WooCommerce and Easy Digital Downloads. Make sure you really need this event.
|
548 |
</div>
|
549 |
</div>
|
550 |
-
<?php elseif($event->getGaVersion() == "4"): ?>
|
551 |
-
<div class="row mb-3">
|
552 |
-
Google Analytics doesn't work for this event. Enable Google Analytics 4
|
553 |
-
</div>
|
554 |
|
555 |
<?php else:?>
|
556 |
<div class="row mb-3">
|
@@ -689,6 +683,12 @@ if(isset( $_REQUEST['id'] )) {
|
|
689 |
<li><code>[total]</code> - it will pull WooCommerce or EDD order's total when it exists</li>
|
690 |
<li><code>[subtotal]</code> - it will pull WooCommerce or EDD orders's subtotal when it exists</li>
|
691 |
</ul>
|
|
|
|
|
|
|
|
|
|
|
|
|
692 |
<p class="text-secondary mb-0"><strong>Note:</strong> if a parameter is missing from a particular
|
693 |
page, the event won't include it.</p>
|
694 |
</div>
|
14 |
} else {
|
15 |
$event = new CustomEvent();
|
16 |
}
|
17 |
+
$serverUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://$_SERVER[HTTP_HOST]";
|
18 |
|
19 |
?>
|
20 |
|
457 |
<div class="row mt-3">
|
458 |
<div class="col ">
|
459 |
<?php
|
460 |
+
if($event->isGaV4()) :
|
461 |
?>
|
462 |
<div class="row mb-3">
|
463 |
<div class="col col-offset-left form-inline" >
|
522 |
</div>
|
523 |
<?php endforeach; ?>
|
524 |
</div>
|
|
|
|
|
525 |
<div class="row mt-3">
|
526 |
<div class="col-5"></div>
|
527 |
<div class="col-4">
|
545 |
<strong>ATTENTION</strong>: the plugin automatically tracks ecommerce specific events for WooCommerce and Easy Digital Downloads. Make sure you really need this event.
|
546 |
</div>
|
547 |
</div>
|
|
|
|
|
|
|
|
|
548 |
|
549 |
<?php else:?>
|
550 |
<div class="row mb-3">
|
683 |
<li><code>[total]</code> - it will pull WooCommerce or EDD order's total when it exists</li>
|
684 |
<li><code>[subtotal]</code> - it will pull WooCommerce or EDD orders's subtotal when it exists</li>
|
685 |
</ul>
|
686 |
+
<p><strong class="text-secondary">Track URL parameters:</strong></p>
|
687 |
+
<p class="text-secondary"> Use <code>[url_ParameterName]</code> where ParameterName = the name of the parameter. <br/>
|
688 |
+
Example:<br/>
|
689 |
+
This is your URL: <?=$serverUrl?>?ParameterName=123<br/>
|
690 |
+
The parameter value will be 123.<br/>
|
691 |
+
</p>
|
692 |
<p class="text-secondary mb-0"><strong>Note:</strong> if a parameter is missing from a particular
|
693 |
page, the event won't include it.</p>
|
694 |
</div>
|
includes/views/html-main-events.php
CHANGED
@@ -40,7 +40,19 @@ $new_event_url = buildAdminUrl( 'pixelyoursite', 'events', 'edit' );
|
|
40 |
</div>
|
41 |
</div>
|
42 |
</div>
|
43 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
<div class="card card-static">
|
45 |
<div class="card-header">
|
46 |
About Parameters
|
40 |
</div>
|
41 |
</div>
|
42 |
</div>
|
43 |
+
<div class="card card-static">
|
44 |
+
<div class="card-header">
|
45 |
+
Recommeded videos
|
46 |
+
</div>
|
47 |
+
<div class="card-body">
|
48 |
+
<div class="row">
|
49 |
+
<div class="col">
|
50 |
+
<p><a href="ttps://www.youtube.com/watch?v=kEp5BDg7dP0" target="_blank">How to fire EVENTS with PixelYourSite (22:28) - watch now</a></p>
|
51 |
+
<p><a href="https://www.youtube.com/watch?v=PcXYYGOvahc" target="_blank">Track URL tags as event parameters (8:15) - watch now</a></p>
|
52 |
+
</div>
|
53 |
+
</div>
|
54 |
+
</div>
|
55 |
+
</div>
|
56 |
<div class="card card-static">
|
57 |
<div class="card-header">
|
58 |
About Parameters
|
includes/views/html-main-general.php
CHANGED
@@ -45,8 +45,14 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
45 |
|
46 |
<div class="row mb-3">
|
47 |
<div class="col">
|
48 |
-
|
49 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
50 |
</div>
|
51 |
</div>
|
52 |
|
@@ -123,15 +129,6 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
123 |
|
124 |
<input type="checkbox" id="gan_settings_switch" style="display: none">
|
125 |
<div class="settings_content">
|
126 |
-
<div class="row pt-3 pb-3">
|
127 |
-
<div class="col-12">
|
128 |
-
<?php GA()->render_switcher_input("use_4_version");?>
|
129 |
-
<h4 class="switcher-label">Enable Google Analytics 4</h4>
|
130 |
-
<div class="mt-1">
|
131 |
-
<a href="https://www.pixelyoursite.com/pixelyoursite-free-version/enable-google-analytics-4" target="_blank">Watch this help video</a>
|
132 |
-
</div>
|
133 |
-
</div>
|
134 |
-
</div>
|
135 |
<div class="plate pt-3 pb-3">
|
136 |
<div class="row mb-3">
|
137 |
<div class="col-12">
|
@@ -148,6 +145,10 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
148 |
|
149 |
<p class="mt-3 ">Add multiple Google Analytics tags with the <a href="https://www.pixelyoursite.com/?utm_source=pixelyoursite-free-plugin&utm_medium=plugin&utm_campaign=free-plugin-ids"
|
150 |
target="_blank">pro version</a>.</p>
|
|
|
|
|
|
|
|
|
151 |
</div>
|
152 |
</div>
|
153 |
<?php if(isWPMLActive()) : ?>
|
@@ -175,6 +176,10 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
175 |
Add the Google Ads tag with the <a
|
176 |
href="https://www.pixelyoursite.com/google-ads-tag?utm_source=pixelyoursite-free-plugin&utm_medium=plugin&utm_campaign=free-plugin-ids"
|
177 |
target="_blank">pro version</a>.
|
|
|
|
|
|
|
|
|
178 |
</div>
|
179 |
</div>
|
180 |
|
@@ -207,6 +212,13 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
207 |
<p><a href="https://www.youtube.com/watch?v=1W1yA9L-6F8" target="_blank">Facebook Pixel Events and Parameters (12:05 min) - watch now</a></p>
|
208 |
<p><a href="https://www.youtube.com/watch?v=sM9yNkBK6Eg" target="_blank">Potentially Violating Personal Data Sent to Facebook (7:30 min) - watch now</a></p>
|
209 |
<p><a href="https://www.youtube.com/watch?v=PsKdCkKNeLU" target="_blank">Facebook Conversion API and the Consent Problem (9:25 min) - watch now</a></p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
210 |
</div>
|
211 |
</div>
|
212 |
<div class="row">
|
@@ -341,7 +353,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
341 |
|
342 |
<div class=" form-inline">
|
343 |
<?php PYS()->render_checkbox_input( 'signal_page_scroll_enabled',"trigger for scroll value:" ); ?>
|
344 |
-
<?php PYS()->render_number_input( 'signal_page_scroll_value',
|
345 |
<div>% (add %)</div>
|
346 |
</div>
|
347 |
|
45 |
|
46 |
<div class="row mb-3">
|
47 |
<div class="col">
|
48 |
+
<p>
|
49 |
+
Learn about Conversion API and Advanced Matching privacy and consent:
|
50 |
+
<a href="https://www.youtube.com/watch?v=PsKdCkKNeLU" target="_blank">watch video</a>
|
51 |
+
</p>
|
52 |
+
<p>
|
53 |
+
Install multiple Facebook Pixles with CAPI support:
|
54 |
+
<a href="https://www.youtube.com/watch?v=HM98mGZshvc" target="_blank">watch video</a>
|
55 |
+
</p>
|
56 |
</div>
|
57 |
</div>
|
58 |
|
129 |
|
130 |
<input type="checkbox" id="gan_settings_switch" style="display: none">
|
131 |
<div class="settings_content">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
132 |
<div class="plate pt-3 pb-3">
|
133 |
<div class="row mb-3">
|
134 |
<div class="col-12">
|
145 |
|
146 |
<p class="mt-3 ">Add multiple Google Analytics tags with the <a href="https://www.pixelyoursite.com/?utm_source=pixelyoursite-free-plugin&utm_medium=plugin&utm_campaign=free-plugin-ids"
|
147 |
target="_blank">pro version</a>.</p>
|
148 |
+
<p>
|
149 |
+
Install the old Google Analytics UA property and the new GA4 at the same time:
|
150 |
+
<a href="https://www.youtube.com/watch?v=JUuss5sewxg" target="_blank">watch video</a>
|
151 |
+
</p>
|
152 |
</div>
|
153 |
</div>
|
154 |
<?php if(isWPMLActive()) : ?>
|
176 |
Add the Google Ads tag with the <a
|
177 |
href="https://www.pixelyoursite.com/google-ads-tag?utm_source=pixelyoursite-free-plugin&utm_medium=plugin&utm_campaign=free-plugin-ids"
|
178 |
target="_blank">pro version</a>.
|
179 |
+
<div class="mt-3">
|
180 |
+
Learn how to install the Google Ads Tag:
|
181 |
+
<a href="https://www.youtube.com/watch?v=plkv_v4nz8I" target="_blank">watch video</a>
|
182 |
+
</div>
|
183 |
</div>
|
184 |
</div>
|
185 |
|
212 |
<p><a href="https://www.youtube.com/watch?v=1W1yA9L-6F8" target="_blank">Facebook Pixel Events and Parameters (12:05 min) - watch now</a></p>
|
213 |
<p><a href="https://www.youtube.com/watch?v=sM9yNkBK6Eg" target="_blank">Potentially Violating Personal Data Sent to Facebook (7:30 min) - watch now</a></p>
|
214 |
<p><a href="https://www.youtube.com/watch?v=PsKdCkKNeLU" target="_blank">Facebook Conversion API and the Consent Problem (9:25 min) - watch now</a></p>
|
215 |
+
|
216 |
+
<p><a href="https://www.youtube.com/watch?v=jJlhnF_QNxk" target="_blank">What you MUST know about Facebook Attribution Settings (8:49) - watch now</a></p>
|
217 |
+
<p><a href="https://www.youtube.com/watch?v=hbecImCa9d0" target="_blank">Google Ads DATA-DRIVEN Attribution (8:14) - watch now</a></p>
|
218 |
+
<p><a href="https://www.youtube.com/watch?v=kEp5BDg7dP0" target="_blank">How to fire EVENTS with PixelYourSite (22:28) - watch now</a></p>
|
219 |
+
|
220 |
+
<p><a href="https://www.youtube.com/watch?v=HM98mGZshvc" target="_blank">Multiple Facebook Pixels with CAPI events for WordPress and WooCommerce (12:20) - watch now</a></p>
|
221 |
+
<p><a href="https://www.youtube.com/watch?v=JUuss5sewxg" target="_blank">Multiple Google Analytics properties on WordPress and WooCommerce (6:17) - watch now</a></p>
|
222 |
</div>
|
223 |
</div>
|
224 |
<div class="row">
|
353 |
|
354 |
<div class=" form-inline">
|
355 |
<?php PYS()->render_checkbox_input( 'signal_page_scroll_enabled',"trigger for scroll value:" ); ?>
|
356 |
+
<?php PYS()->render_number_input( 'signal_page_scroll_value','',false,100 ); ?>
|
357 |
<div>% (add %)</div>
|
358 |
</div>
|
359 |
|
includes/views/html-main-woo.php
CHANGED
@@ -264,7 +264,7 @@ e&utm_campaign=pro-feature' ); ?>
|
|
264 |
<div class="card-header">
|
265 |
Pinterest Tag ID setting
|
266 |
<?php renderProBadge( 'https://www.pixelyoursite.com/pinterest-tag?utm_source=pys-free-plugin&utm_medium=pinterest-badge&utm_campaign=requiere-free-add-on',
|
267 |
-
"Requires
|
268 |
</div>
|
269 |
</div>
|
270 |
<?php endif; ?>
|
264 |
<div class="card-header">
|
265 |
Pinterest Tag ID setting
|
266 |
<?php renderProBadge( 'https://www.pixelyoursite.com/pinterest-tag?utm_source=pys-free-plugin&utm_medium=pinterest-badge&utm_campaign=requiere-free-add-on',
|
267 |
+
"Requires paid add-on"); ?>
|
268 |
</div>
|
269 |
</div>
|
270 |
<?php endif; ?>
|
modules/facebook/facebook.php
CHANGED
@@ -231,7 +231,7 @@ class Facebook extends Settings implements Pixel {
|
|
231 |
foreach ( WC()->cart->get_cart() as $cart_item_key => $cart_item ) {
|
232 |
$eventData = $this->getWooRemoveFromCartParams( $cart_item );
|
233 |
if ($eventData) {
|
234 |
-
$child = new SingleEvent($cart_item_key,EventTypes::$DYNAMIC);
|
235 |
$isActive = true;
|
236 |
$this->addDataToEvent($eventData, $child);
|
237 |
$event->addEvent($child);
|
@@ -279,7 +279,7 @@ class Facebook extends Settings implements Pixel {
|
|
279 |
foreach ( edd_get_cart_contents() as $cart_item_key => $cart_item ) {
|
280 |
$eventData = $this->getEddRemoveFromCartParams( $cart_item );
|
281 |
if ($eventData) {
|
282 |
-
$child = new SingleEvent($cart_item_key,EventTypes::$DYNAMIC);
|
283 |
$isActive = true;
|
284 |
$this->addDataToEvent($eventData, $child);
|
285 |
$event->addEvent($child);
|
@@ -740,7 +740,10 @@ class Facebook extends Settings implements Pixel {
|
|
740 |
|
741 |
foreach ( $parent_ids as $term_id ) {
|
742 |
$term = get_term_by( 'id', $term_id, 'product_cat' );
|
743 |
-
$
|
|
|
|
|
|
|
744 |
}
|
745 |
|
746 |
}
|
@@ -1164,6 +1167,7 @@ class Facebook extends Settings implements Pixel {
|
|
1164 |
$params['content_type'] = 'product';
|
1165 |
|
1166 |
$term = get_term_by( 'slug', get_query_var( 'term' ), 'download_category' );
|
|
|
1167 |
$params['content_name'] = $term->name;
|
1168 |
|
1169 |
$parent_ids = get_ancestors( $term->term_id, 'download_category', 'taxonomy' );
|
@@ -1171,7 +1175,9 @@ class Facebook extends Settings implements Pixel {
|
|
1171 |
|
1172 |
foreach ( $parent_ids as $term_id ) {
|
1173 |
$term = get_term_by( 'id', $term_id, 'download_category' );
|
1174 |
-
$
|
|
|
|
|
1175 |
}
|
1176 |
|
1177 |
$params['content_category'] = implode( ', ', $params['content_category'] );
|
231 |
foreach ( WC()->cart->get_cart() as $cart_item_key => $cart_item ) {
|
232 |
$eventData = $this->getWooRemoveFromCartParams( $cart_item );
|
233 |
if ($eventData) {
|
234 |
+
$child = new SingleEvent($cart_item_key,EventTypes::$DYNAMIC,'woo');
|
235 |
$isActive = true;
|
236 |
$this->addDataToEvent($eventData, $child);
|
237 |
$event->addEvent($child);
|
279 |
foreach ( edd_get_cart_contents() as $cart_item_key => $cart_item ) {
|
280 |
$eventData = $this->getEddRemoveFromCartParams( $cart_item );
|
281 |
if ($eventData) {
|
282 |
+
$child = new SingleEvent($cart_item_key,EventTypes::$DYNAMIC,'edd');
|
283 |
$isActive = true;
|
284 |
$this->addDataToEvent($eventData, $child);
|
285 |
$event->addEvent($child);
|
740 |
|
741 |
foreach ( $parent_ids as $term_id ) {
|
742 |
$term = get_term_by( 'id', $term_id, 'product_cat' );
|
743 |
+
if($term) {
|
744 |
+
$params['content_category'][] = $term->name;
|
745 |
+
}
|
746 |
+
|
747 |
}
|
748 |
|
749 |
}
|
1167 |
$params['content_type'] = 'product';
|
1168 |
|
1169 |
$term = get_term_by( 'slug', get_query_var( 'term' ), 'download_category' );
|
1170 |
+
if(!$term) return false;
|
1171 |
$params['content_name'] = $term->name;
|
1172 |
|
1173 |
$parent_ids = get_ancestors( $term->term_id, 'download_category', 'taxonomy' );
|
1175 |
|
1176 |
foreach ( $parent_ids as $term_id ) {
|
1177 |
$term = get_term_by( 'id', $term_id, 'download_category' );
|
1178 |
+
if($term) {
|
1179 |
+
$params['content_category'][] = $term->name;
|
1180 |
+
}
|
1181 |
}
|
1182 |
|
1183 |
$params['content_category'] = implode( ', ', $params['content_category'] );
|
modules/google_analytics/ga.php
CHANGED
@@ -42,9 +42,7 @@ class GA extends Settings implements Pixel {
|
|
42 |
} );
|
43 |
}
|
44 |
|
45 |
-
|
46 |
-
return $this->getOption( 'use_4_version' );
|
47 |
-
}
|
48 |
|
49 |
public function enabled() {
|
50 |
return $this->getOption( 'enabled' );
|
@@ -101,7 +99,6 @@ class GA extends Settings implements Pixel {
|
|
101 |
'crossDomainAcceptIncoming' => $this->getOption('cross_domain_accept_incoming'),
|
102 |
'crossDomainDomains' => $this->getOption('cross_domain_domains'),
|
103 |
'isDebugEnabled' => $this->getPixelDebugMode(),
|
104 |
-
'isUse4Version' => $this->isUse4Version(),
|
105 |
'disableAdvertisingFeatures' => $this->getOption( 'disable_advertising_features' ),
|
106 |
'disableAdvertisingPersonalization' => $this->getOption( 'disable_advertising_personalization' ),
|
107 |
'wooVariableAsSimple' => $this->getOption( 'woo_variable_as_simple' )
|
@@ -140,10 +137,7 @@ class GA extends Settings implements Pixel {
|
|
140 |
}
|
141 |
} break;
|
142 |
case 'search_event': {
|
143 |
-
|
144 |
-
$eventData = getSearchEventDataV4();
|
145 |
-
else
|
146 |
-
$eventData = $this->getSearchEventData();
|
147 |
if ($eventData) {
|
148 |
$isActive = true;
|
149 |
$this->addDataToEvent($eventData, $event);
|
@@ -178,7 +172,7 @@ class GA extends Settings implements Pixel {
|
|
178 |
if(is_a($event,GroupedEvent::class)) {
|
179 |
$eventData = $this->getWooRemoveFromCartParams( $cart_item );
|
180 |
if ($eventData) {
|
181 |
-
$child = new SingleEvent($cart_item_key,EventTypes::$DYNAMIC);
|
182 |
$isActive = true;
|
183 |
$this->addDataToEvent($eventData, $child);
|
184 |
$event->addEvent($child);
|
@@ -227,7 +221,7 @@ class GA extends Settings implements Pixel {
|
|
227 |
foreach ( edd_get_cart_contents() as $cart_item_key => $cart_item ) {
|
228 |
$eventData = $this->getEddRemoveFromCartParams( $cart_item );
|
229 |
if ($eventData) {
|
230 |
-
$child = new SingleEvent($cart_item_key,EventTypes::$DYNAMIC);
|
231 |
$isActive = true;
|
232 |
$this->addDataToEvent($eventData, $child);
|
233 |
$event->addEvent($child);
|
@@ -289,17 +283,6 @@ class GA extends Settings implements Pixel {
|
|
289 |
}break;
|
290 |
}
|
291 |
|
292 |
-
if($isActive) {
|
293 |
-
|
294 |
-
if($this->isUse4Version()) {
|
295 |
-
unset($event->params['event_category']);
|
296 |
-
unset($event->params['event_label']);
|
297 |
-
|
298 |
-
unset($event->params['ecomm_pagetype']);
|
299 |
-
unset($event->params['ecomm_prodid']);
|
300 |
-
unset($event->params['ecomm_totalvalue']);
|
301 |
-
}
|
302 |
-
}
|
303 |
return $isActive;
|
304 |
}
|
305 |
|
@@ -319,15 +302,6 @@ class GA extends Settings implements Pixel {
|
|
319 |
$data = $this->getEddAddToCartOnButtonClickEventParams( $args );break;
|
320 |
|
321 |
}
|
322 |
-
if($data && $this->isUse4Version()) {
|
323 |
-
unset($data['data']['event_category']);
|
324 |
-
unset($data['data']['event_label']);
|
325 |
-
|
326 |
-
unset($data['data']['ecomm_pagetype']);
|
327 |
-
unset($data['data']['ecomm_prodid']);
|
328 |
-
unset($data['data']['ecomm_totalvalue']);
|
329 |
-
|
330 |
-
}
|
331 |
|
332 |
return $data;
|
333 |
}
|
@@ -449,16 +423,14 @@ class GA extends Settings implements Pixel {
|
|
449 |
if ( ! $event->isGoogleAnalyticsEnabled() || empty( $ga_action ) ) {
|
450 |
return false;
|
451 |
}
|
452 |
-
// not fire event if for new event type use old version
|
453 |
-
if($event->getGaVersion() == "4" && !$this->isUse4Version()) {
|
454 |
-
return false;
|
455 |
-
}
|
456 |
|
457 |
-
|
|
|
458 |
$params = $event->getGaParams();
|
459 |
|
460 |
-
foreach ($event->getGACustomParams() as $item)
|
461 |
-
$params[$item['name']]
|
|
|
462 |
|
463 |
} else {
|
464 |
$params = array(
|
@@ -1076,6 +1048,7 @@ class GA extends Settings implements Pixel {
|
|
1076 |
}
|
1077 |
|
1078 |
$term = get_term_by( 'slug', get_query_var( 'term' ), 'download_category' );
|
|
|
1079 |
$parent_ids = get_ancestors( $term->term_id, 'download_category', 'taxonomy' );
|
1080 |
|
1081 |
$download_categories = array();
|
42 |
} );
|
43 |
}
|
44 |
|
45 |
+
|
|
|
|
|
46 |
|
47 |
public function enabled() {
|
48 |
return $this->getOption( 'enabled' );
|
99 |
'crossDomainAcceptIncoming' => $this->getOption('cross_domain_accept_incoming'),
|
100 |
'crossDomainDomains' => $this->getOption('cross_domain_domains'),
|
101 |
'isDebugEnabled' => $this->getPixelDebugMode(),
|
|
|
102 |
'disableAdvertisingFeatures' => $this->getOption( 'disable_advertising_features' ),
|
103 |
'disableAdvertisingPersonalization' => $this->getOption( 'disable_advertising_personalization' ),
|
104 |
'wooVariableAsSimple' => $this->getOption( 'woo_variable_as_simple' )
|
137 |
}
|
138 |
} break;
|
139 |
case 'search_event': {
|
140 |
+
$eventData = $this->getSearchEventData();
|
|
|
|
|
|
|
141 |
if ($eventData) {
|
142 |
$isActive = true;
|
143 |
$this->addDataToEvent($eventData, $event);
|
172 |
if(is_a($event,GroupedEvent::class)) {
|
173 |
$eventData = $this->getWooRemoveFromCartParams( $cart_item );
|
174 |
if ($eventData) {
|
175 |
+
$child = new SingleEvent($cart_item_key,EventTypes::$DYNAMIC,'woo');
|
176 |
$isActive = true;
|
177 |
$this->addDataToEvent($eventData, $child);
|
178 |
$event->addEvent($child);
|
221 |
foreach ( edd_get_cart_contents() as $cart_item_key => $cart_item ) {
|
222 |
$eventData = $this->getEddRemoveFromCartParams( $cart_item );
|
223 |
if ($eventData) {
|
224 |
+
$child = new SingleEvent($cart_item_key,EventTypes::$DYNAMIC,'edd');
|
225 |
$isActive = true;
|
226 |
$this->addDataToEvent($eventData, $child);
|
227 |
$event->addEvent($child);
|
283 |
}break;
|
284 |
}
|
285 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
286 |
return $isActive;
|
287 |
}
|
288 |
|
302 |
$data = $this->getEddAddToCartOnButtonClickEventParams( $args );break;
|
303 |
|
304 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
305 |
|
306 |
return $data;
|
307 |
}
|
423 |
if ( ! $event->isGoogleAnalyticsEnabled() || empty( $ga_action ) ) {
|
424 |
return false;
|
425 |
}
|
|
|
|
|
|
|
|
|
426 |
|
427 |
+
|
428 |
+
if($event->isGaV4()) {
|
429 |
$params = $event->getGaParams();
|
430 |
|
431 |
+
foreach ($event->getGACustomParams() as $item) {
|
432 |
+
$params[$item['name']] = $item['value'];
|
433 |
+
}
|
434 |
|
435 |
} else {
|
436 |
$params = array(
|
1048 |
}
|
1049 |
|
1050 |
$term = get_term_by( 'slug', get_query_var( 'term' ), 'download_category' );
|
1051 |
+
if ( !$term ) return false;
|
1052 |
$parent_ids = get_ancestors( $term->term_id, 'download_category', 'taxonomy' );
|
1053 |
|
1054 |
$download_categories = array();
|
modules/google_analytics/options_defaults.json
CHANGED
@@ -1,6 +1,5 @@
|
|
1 |
{
|
2 |
"enabled": true,
|
3 |
-
"use_4_version": false,
|
4 |
"is_enable_debug_mode": "",
|
5 |
"tracking_id": "",
|
6 |
"enhance_link_attribution": false,
|
1 |
{
|
2 |
"enabled": true,
|
|
|
3 |
"is_enable_debug_mode": "",
|
4 |
"tracking_id": "",
|
5 |
"enhance_link_attribution": false,
|
modules/google_analytics/options_fields.json
CHANGED
@@ -4,7 +4,6 @@
|
|
4 |
"tracking_id": "array",
|
5 |
"enhance_link_attribution": "checkbox",
|
6 |
"anonimize_ip": "checkbox",
|
7 |
-
"use_4_version": "checkbox",
|
8 |
|
9 |
"cross_domain_enabled": "checkbox",
|
10 |
"cross_domain_accept_incoming": "checkbox",
|
4 |
"tracking_id": "array",
|
5 |
"enhance_link_attribution": "checkbox",
|
6 |
"anonimize_ip": "checkbox",
|
|
|
7 |
|
8 |
"cross_domain_enabled": "checkbox",
|
9 |
"cross_domain_accept_incoming": "checkbox",
|
modules/google_analytics/views/html-settings.php
CHANGED
@@ -30,7 +30,7 @@ use PixelYourSite\GA\Helpers;
|
|
30 |
<h4 class="switcher-label">Enable Enhance Link Attribution</h4>
|
31 |
</div>
|
32 |
</div>
|
33 |
-
|
34 |
<div class="row">
|
35 |
<div class="col">
|
36 |
<?php GA()->render_switcher_input( 'disable_advertising_features' ); ?>
|
@@ -43,7 +43,7 @@ use PixelYourSite\GA\Helpers;
|
|
43 |
<h4 class="switcher-label">Disable advertising personalization</h4>
|
44 |
</div>
|
45 |
</div>
|
46 |
-
|
47 |
|
48 |
<div class="row">
|
49 |
<div class="col">
|
30 |
<h4 class="switcher-label">Enable Enhance Link Attribution</h4>
|
31 |
</div>
|
32 |
</div>
|
33 |
+
|
34 |
<div class="row">
|
35 |
<div class="col">
|
36 |
<?php GA()->render_switcher_input( 'disable_advertising_features' ); ?>
|
43 |
<h4 class="switcher-label">Disable advertising personalization</h4>
|
44 |
</div>
|
45 |
</div>
|
46 |
+
|
47 |
|
48 |
<div class="row">
|
49 |
<div class="col">
|
modules/pinterest/pinterest.php
CHANGED
@@ -70,7 +70,7 @@ class Pinterest extends Settings implements Pixel {
|
|
70 |
public function renderCustomEventOptions( $event ) {}
|
71 |
|
72 |
public function renderAddonNotice() {
|
73 |
-
echo ' <a href="https://www.pixelyoursite.com/pinterest-tag?utm_source=pys-free-plugin&utm_medium=pinterest-badge&utm_campaign=requiere-free-add-on" target="_blank" class="badge badge-pill badge-pinterest">Requires
|
74 |
}
|
75 |
|
76 |
public function renderPixelIdField() {
|
@@ -81,7 +81,7 @@ class Pinterest extends Settings implements Pixel {
|
|
81 |
</div>
|
82 |
<div class="col-10">
|
83 |
Add the Pinterest tag with our <a href="https://www.pixelyoursite.com/pinterest-tag?utm_source=pixelyoursite-free-plugin&utm_medium=plugin&utm_campaign=free-plugin-ids"
|
84 |
-
target="_blank">
|
85 |
</div>
|
86 |
</div>
|
87 |
<hr>
|
70 |
public function renderCustomEventOptions( $event ) {}
|
71 |
|
72 |
public function renderAddonNotice() {
|
73 |
+
echo ' <a href="https://www.pixelyoursite.com/pinterest-tag?utm_source=pys-free-plugin&utm_medium=pinterest-badge&utm_campaign=requiere-free-add-on" target="_blank" class="badge badge-pill badge-pinterest">Requires paid add-on <i class="fa fa-external-link" aria-hidden="true"></i></a>';
|
74 |
}
|
75 |
|
76 |
public function renderPixelIdField() {
|
81 |
</div>
|
82 |
<div class="col-10">
|
83 |
Add the Pinterest tag with our <a href="https://www.pixelyoursite.com/pinterest-tag?utm_source=pixelyoursite-free-plugin&utm_medium=plugin&utm_campaign=free-plugin-ids"
|
84 |
+
target="_blank">Paid addon</a>.
|
85 |
</div>
|
86 |
</div>
|
87 |
<hr>
|
pixelyoursite.php
CHANGED
@@ -4,7 +4,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
4 |
exit; // Exit if accessed directly.
|
5 |
}
|
6 |
|
7 |
-
define( 'PYS_FREE_VERSION', '8.2.
|
8 |
define( 'PYS_FREE_PINTEREST_MIN_VERSION', '3.0.0' );
|
9 |
define( 'PYS_FREE_BING_MIN_VERSION', '2.0.0' );
|
10 |
define( 'PYS_FREE_PATH', untrailingslashit( plugin_dir_path( __FILE__ ) ) );
|
4 |
exit; // Exit if accessed directly.
|
5 |
}
|
6 |
|
7 |
+
define( 'PYS_FREE_VERSION', '8.2.9' );
|
8 |
define( 'PYS_FREE_PINTEREST_MIN_VERSION', '3.0.0' );
|
9 |
define( 'PYS_FREE_BING_MIN_VERSION', '2.0.0' );
|
10 |
define( 'PYS_FREE_PATH', untrailingslashit( plugin_dir_path( __FILE__ ) ) );
|
readme.txt
CHANGED
@@ -4,14 +4,14 @@ Tags: Facebook Pixel, Facebook Conversion API, CAPI, Facebook Pixel Events, Face
|
|
4 |
Requires at least: 3.0.1
|
5 |
Requires PHP: 5.4
|
6 |
Tested up to: 5.8
|
7 |
-
Stable tag: 8.2.
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
11 |
-
Facebook Pixel & Conversion API (CAPI), Google Analytics Universal or GA4, plus ANY other script. WooCommerce and EDD with Facebook Dynamic Product Ads and Google Enhanced Ecommerce. Track any action with events. Pinterest Tag support via a
|
12 |
|
13 |
== Description ==
|
14 |
-
**Manage your Facebook Pixel, implement Facebook Conversion API, add your Google Analytics Universal or GA4 with a single plugin. Add ANY other script (Head & Footer feature). The Pinterest Tag can be implemented via [
|
15 |
|
16 |
PixelYourSite's Signal event will automatically track important actions and send them to all your configured pixels (searches, form submit, comments, downloads).
|
17 |
|
@@ -41,11 +41,15 @@ TRACK EVERYTHING WITH A SINGLE PLUGIN:
|
|
41 |
|
42 |
* ANY script: add any other script with our flexible Head & Footer option
|
43 |
|
44 |
-
* The Pinterest Tag: via [
|
45 |
|
46 |
* Google Ads (formerly AdWords) [pro feature](https://www.pixelyoursite.com/google-ads-tag)
|
47 |
|
48 |
-
* Microsoft (BING) UET tag [paid add-on](https://www.pixelyoursite.com/bing-tag)
|
|
|
|
|
|
|
|
|
49 |
|
50 |
|
51 |
|
@@ -63,7 +67,8 @@ FANTASTIC WOOCOMMERCE INTEGRATION:
|
|
63 |
|
64 |
* Head & Footer scripts: you can insert scripts on the WooCommerce “order-received” page.
|
65 |
|
66 |
-
* Pinterest e-commerce events.
|
|
|
67 |
|
68 |
|
69 |
|
@@ -98,12 +103,7 @@ You can fire standard or custom events using triggers like:
|
|
98 |
|
99 |
PixelYourSite is fully integrated with [ConsentMagic.com](https://www.consentmagic.com)
|
100 |
|
101 |
-
And it works with some of the most popular “cookie consent” plugins
|
102 |
-
|
103 |
-
* Cookiebot
|
104 |
-
* GDPR Cookie Consent
|
105 |
-
* Cookie Notice Plugin
|
106 |
-
* Real Cookie Banner
|
107 |
|
108 |
|
109 |
Additionally we offer filters that developers can use to create their own custom integrations. These filters can control the way each pixel works.
|
@@ -132,9 +132,6 @@ OTHER USEFUL FEATURES:
|
|
132 |
|
133 |
* Google Analytics Anonymize IPs.
|
134 |
|
135 |
-
* Pinterest Enhanced Matching.
|
136 |
-
|
137 |
-
|
138 |
|
139 |
**EVEN MORE FEATURES WITH THE PRO VERSION:**
|
140 |
|
@@ -460,6 +457,16 @@ NO, absolutely not! We don't track any type of data about your website. We simpl
|
|
460 |
== Changelog ==
|
461 |
|
462 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
463 |
= PixelYourSite 8.2.8 =
|
464 |
|
465 |
* Fix for a potential issue with the AddToCart event.
|
4 |
Requires at least: 3.0.1
|
5 |
Requires PHP: 5.4
|
6 |
Tested up to: 5.8
|
7 |
+
Stable tag: 8.2.9
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
11 |
+
Facebook Pixel & Conversion API (CAPI), Google Analytics Universal or GA4, plus ANY other script. WooCommerce and EDD with Facebook Dynamic Product Ads and Google Enhanced Ecommerce. Track any action with events. Pinterest Tag support via a dedicated paid add-on. Dedicated paid Bing Tag add-on.
|
12 |
|
13 |
== Description ==
|
14 |
+
**Manage your Facebook Pixel, implement Facebook Conversion API, add your Google Analytics Universal or GA4 with a single plugin. Add ANY other script (Head & Footer feature). The Pinterest Tag can be implemented via [paid add-on](https://www.pixelyoursite.com/pinterest-tag).**
|
15 |
|
16 |
PixelYourSite's Signal event will automatically track important actions and send them to all your configured pixels (searches, form submit, comments, downloads).
|
17 |
|
41 |
|
42 |
* ANY script: add any other script with our flexible Head & Footer option
|
43 |
|
44 |
+
* The Pinterest Tag: via [paid add-on](https://www.pixelyoursite.com/pinterest-tag)
|
45 |
|
46 |
* Google Ads (formerly AdWords) [pro feature](https://www.pixelyoursite.com/google-ads-tag)
|
47 |
|
48 |
+
* Microsoft (BING) UET tag [paid add-on](https://www.pixelyoursite.com/bing-tag)
|
49 |
+
|
50 |
+
* Learn how to track both UA and GA4 properties at the same time (paid feature): [watch video](https://www.youtube.com/watch?v=JUuss5sewxg)
|
51 |
+
|
52 |
+
* Learn how to fire multiple Facebook Pixels with CAPI support (paid feature): [watch video](https://www.youtube.com/watch?v=HM98mGZshvc)
|
53 |
|
54 |
|
55 |
|
67 |
|
68 |
* Head & Footer scripts: you can insert scripts on the WooCommerce “order-received” page.
|
69 |
|
70 |
+
* Pinterest e-commerce events.
|
71 |
+
|
72 |
|
73 |
|
74 |
|
103 |
|
104 |
PixelYourSite is fully integrated with [ConsentMagic.com](https://www.consentmagic.com)
|
105 |
|
106 |
+
And it works with some of the most popular “cookie consent” plugins.
|
|
|
|
|
|
|
|
|
|
|
107 |
|
108 |
|
109 |
Additionally we offer filters that developers can use to create their own custom integrations. These filters can control the way each pixel works.
|
132 |
|
133 |
* Google Analytics Anonymize IPs.
|
134 |
|
|
|
|
|
|
|
135 |
|
136 |
**EVEN MORE FEATURES WITH THE PRO VERSION:**
|
137 |
|
457 |
== Changelog ==
|
458 |
|
459 |
|
460 |
+
= PixelYourSite 8.2.9 =
|
461 |
+
|
462 |
+
* Google Analytics property format auto detection: the plugin will automatically detect the old UA and the new GA4 properties, sending events in the correct format. The paid version will allow to run both type at the same time.
|
463 |
+
|
464 |
+
* Facebook API update.
|
465 |
+
|
466 |
+
* Various bug fixes and code improvements.
|
467 |
+
|
468 |
+
|
469 |
+
|
470 |
= PixelYourSite 8.2.8 =
|
471 |
|
472 |
* Fix for a potential issue with the AddToCart event.
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/ApiConfig.php
CHANGED
@@ -26,7 +26,7 @@ namespace PYS_PRO_GLOBAL\FacebookAds;
|
|
26 |
|
27 |
class ApiConfig
|
28 |
{
|
29 |
-
const APIVersion = '
|
30 |
-
const SDKVersion = '
|
31 |
const TYPE_CHECKER_STRICT_MODE = \false;
|
32 |
}
|
26 |
|
27 |
class ApiConfig
|
28 |
{
|
29 |
+
const APIVersion = '12.0';
|
30 |
+
const SDKVersion = '12.0.1';
|
31 |
const TYPE_CHECKER_STRICT_MODE = \false;
|
32 |
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/{AdAccountContentFilterLevelsInheritance.php → AREffectsBatchStatus.php}
RENAMED
@@ -28,7 +28,7 @@ use PYS_PRO_GLOBAL\FacebookAds\ApiRequest;
|
|
28 |
use PYS_PRO_GLOBAL\FacebookAds\Cursor;
|
29 |
use PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface;
|
30 |
use PYS_PRO_GLOBAL\FacebookAds\TypeChecker;
|
31 |
-
use PYS_PRO_GLOBAL\FacebookAds\Object\Fields\
|
32 |
/**
|
33 |
* This class is auto-generated.
|
34 |
*
|
@@ -37,14 +37,14 @@ use PYS_PRO_GLOBAL\FacebookAds\Object\Fields\AdAccountContentFilterLevelsInherit
|
|
37 |
* pull request for this class.
|
38 |
*
|
39 |
*/
|
40 |
-
class
|
41 |
{
|
42 |
/**
|
43 |
-
* @return
|
44 |
*/
|
45 |
public static function getFieldsEnum()
|
46 |
{
|
47 |
-
return \PYS_PRO_GLOBAL\FacebookAds\Object\Fields\
|
48 |
}
|
49 |
protected static function getReferencedEnums()
|
50 |
{
|
28 |
use PYS_PRO_GLOBAL\FacebookAds\Cursor;
|
29 |
use PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface;
|
30 |
use PYS_PRO_GLOBAL\FacebookAds\TypeChecker;
|
31 |
+
use PYS_PRO_GLOBAL\FacebookAds\Object\Fields\AREffectsBatchStatusFields;
|
32 |
/**
|
33 |
* This class is auto-generated.
|
34 |
*
|
37 |
* pull request for this class.
|
38 |
*
|
39 |
*/
|
40 |
+
class AREffectsBatchStatus extends \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractObject
|
41 |
{
|
42 |
/**
|
43 |
+
* @return AREffectsBatchStatusFields
|
44 |
*/
|
45 |
public static function getFieldsEnum()
|
46 |
{
|
47 |
+
return \PYS_PRO_GLOBAL\FacebookAds\Object\Fields\AREffectsBatchStatusFields::getInstance();
|
48 |
}
|
49 |
protected static function getReferencedEnums()
|
50 |
{
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/AdAccount.php
CHANGED
@@ -58,12 +58,12 @@ use PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdCreativeOperatorValues;
|
|
58 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdDatePresetValues;
|
59 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdExecutionOptionsValues;
|
60 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdOperatorValues;
|
61 |
-
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdPlacePageSetCategoryValues;
|
62 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdPlacePageSetLocationTypesValues;
|
63 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdPlacePageSetTargetedAreaTypeValues;
|
64 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdPreviewAdFormatValues;
|
65 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdPreviewRenderTypeValues;
|
66 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdRuleStatusValues;
|
|
|
67 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdSetBidStrategyValues;
|
68 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdSetBillingEventValues;
|
69 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdSetDatePresetValues;
|
@@ -173,8 +173,8 @@ class AdAccount extends \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject
|
|
173 |
public function createAdPlacePageSet(array $fields = array(), array $params = array(), $pending = \false)
|
174 |
{
|
175 |
$this->assureId();
|
176 |
-
$param_types = array('
|
177 |
-
$enums = array('
|
178 |
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_POST, '/ad_place_page_sets', new \PYS_PRO_GLOBAL\FacebookAds\Object\AdPlacePageSet(), 'EDGE', \PYS_PRO_GLOBAL\FacebookAds\Object\AdPlacePageSet::getFieldsEnum()->getValues(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
179 |
$request->addParams($params);
|
180 |
$request->addFields($fields);
|
@@ -183,8 +183,8 @@ class AdAccount extends \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject
|
|
183 |
public function createAdPlacePageSetsAsync(array $fields = array(), array $params = array(), $pending = \false)
|
184 |
{
|
185 |
$this->assureId();
|
186 |
-
$param_types = array('
|
187 |
-
$enums = array('
|
188 |
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_POST, '/ad_place_page_sets_async', new \PYS_PRO_GLOBAL\FacebookAds\Object\AdPlacePageSet(), 'EDGE', \PYS_PRO_GLOBAL\FacebookAds\Object\AdPlacePageSet::getFieldsEnum()->getValues(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
189 |
$request->addParams($params);
|
190 |
$request->addFields($fields);
|
@@ -215,7 +215,7 @@ class AdAccount extends \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject
|
|
215 |
$this->assureId();
|
216 |
$param_types = array();
|
217 |
$enums = array();
|
218 |
-
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_GET, '/adcloudplayables', new \PYS_PRO_GLOBAL\FacebookAds\Object\
|
219 |
$request->addParams($params);
|
220 |
$request->addFields($fields);
|
221 |
return $pending ? $request : $request->execute();
|
@@ -305,7 +305,7 @@ class AdAccount extends \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject
|
|
305 |
$this->assureId();
|
306 |
$param_types = array();
|
307 |
$enums = array();
|
308 |
-
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_GET, '/adplayables', new \PYS_PRO_GLOBAL\FacebookAds\Object\
|
309 |
$request->addParams($params);
|
310 |
$request->addFields($fields);
|
311 |
return $pending ? $request : $request->execute();
|
@@ -315,7 +315,7 @@ class AdAccount extends \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject
|
|
315 |
$this->assureId();
|
316 |
$param_types = array('app_id' => 'string', 'name' => 'string', 'session_id' => 'string', 'source' => 'file', 'source_url' => 'string', 'source_zip' => 'file');
|
317 |
$enums = array();
|
318 |
-
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_POST, '/adplayables', new \PYS_PRO_GLOBAL\FacebookAds\Object\
|
319 |
$request->addParams($params);
|
320 |
$request->addFields($fields);
|
321 |
return $pending ? $request : $request->execute();
|
@@ -343,8 +343,8 @@ class AdAccount extends \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject
|
|
343 |
public function createAdRulesLibrary(array $fields = array(), array $params = array(), $pending = \false)
|
344 |
{
|
345 |
$this->assureId();
|
346 |
-
$param_types = array('account_id' => 'string', 'evaluation_spec' => 'Object', 'execution_spec' => 'Object', 'name' => 'string', 'schedule_spec' => 'Object', 'status' => 'status_enum');
|
347 |
-
$enums = array('status_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdRuleStatusValues::getInstance()->getValues());
|
348 |
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_POST, '/adrules_library', new \PYS_PRO_GLOBAL\FacebookAds\Object\AdRule(), 'EDGE', \PYS_PRO_GLOBAL\FacebookAds\Object\AdRule::getFieldsEnum()->getValues(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
349 |
$request->addParams($params);
|
350 |
$request->addFields($fields);
|
@@ -403,7 +403,7 @@ class AdAccount extends \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject
|
|
403 |
public function createAdSet(array $fields = array(), array $params = array(), $pending = \false)
|
404 |
{
|
405 |
$this->assureId();
|
406 |
-
$param_types = array('adlabels' => 'list<Object>', 'adset_schedule' => 'list<Object>', 'attribution_spec' => 'list<map>', 'bid_adjustments' => 'Object', 'bid_amount' => 'int', 'bid_constraints' => 'map<string, Object>', 'bid_strategy' => 'bid_strategy_enum', 'billing_event' => 'billing_event_enum', 'campaign_id' => 'string', 'campaign_spec' => 'Object', 'creative_sequence' => 'list<string>', 'daily_budget' => 'unsigned int', 'daily_imps' => 'unsigned int', 'daily_min_spend_target' => 'unsigned int', 'daily_spend_cap' => 'unsigned int', 'date_format' => 'string', 'destination_type' => 'destination_type_enum', 'end_time' => 'datetime', 'execution_options' => 'list<execution_options_enum>', 'frequency_control_specs' => 'list<Object>', 'full_funnel_exploration_mode' => 'full_funnel_exploration_mode_enum', 'is_dynamic_creative' => 'bool', 'lifetime_budget' => 'unsigned int', 'lifetime_imps' => 'unsigned int', 'lifetime_min_spend_target' => 'unsigned int', 'lifetime_spend_cap' => 'unsigned int', 'line_number' => 'unsigned int', 'multi_optimization_goal_weight' => 'multi_optimization_goal_weight_enum', 'name' => 'string', 'optimization_goal' => 'optimization_goal_enum', 'optimization_sub_event' => 'optimization_sub_event_enum', 'pacing_type' => 'list<string>', 'promoted_object' => 'Object', 'rb_prediction_id' => 'string', 'rf_prediction_id' => 'string', 'source_adset_id' => 'string', 'start_time' => 'datetime', 'status' => 'status_enum', 'targeting' => 'Targeting', 'time_based_ad_rotation_id_blocks' => 'list<list<unsigned int>>', 'time_based_ad_rotation_intervals' => 'list<unsigned int>', 'time_start' => 'datetime', 'time_stop' => 'datetime', 'topline_id' => 'string', 'tune_for_category' => 'tune_for_category_enum', 'upstream_events' => 'map');
|
407 |
$enums = array('bid_strategy_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdSetBidStrategyValues::getInstance()->getValues(), 'billing_event_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdSetBillingEventValues::getInstance()->getValues(), 'destination_type_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdSetDestinationTypeValues::getInstance()->getValues(), 'execution_options_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdSetExecutionOptionsValues::getInstance()->getValues(), 'full_funnel_exploration_mode_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdSetFullFunnelExplorationModeValues::getInstance()->getValues(), 'multi_optimization_goal_weight_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdSetMultiOptimizationGoalWeightValues::getInstance()->getValues(), 'optimization_goal_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdSetOptimizationGoalValues::getInstance()->getValues(), 'optimization_sub_event_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdSetOptimizationSubEventValues::getInstance()->getValues(), 'status_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdSetStatusValues::getInstance()->getValues(), 'tune_for_category_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdSetTuneForCategoryValues::getInstance()->getValues());
|
408 |
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_POST, '/adsets', new \PYS_PRO_GLOBAL\FacebookAds\Object\AdSet(), 'EDGE', \PYS_PRO_GLOBAL\FacebookAds\Object\AdSet::getFieldsEnum()->getValues(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
409 |
$request->addParams($params);
|
@@ -435,7 +435,7 @@ class AdAccount extends \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject
|
|
435 |
$this->assureId();
|
436 |
$param_types = array('name' => 'string');
|
437 |
$enums = array();
|
438 |
-
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_POST, '/adspixels', new \PYS_PRO_GLOBAL\FacebookAds\Object\
|
439 |
$request->addParams($params);
|
440 |
$request->addFields($fields);
|
441 |
return $pending ? $request : $request->execute();
|
@@ -610,6 +610,16 @@ class AdAccount extends \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject
|
|
610 |
$request->addFields($fields);
|
611 |
return $pending ? $request : $request->execute();
|
612 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
613 |
public function deleteCampaigns(array $fields = array(), array $params = array(), $pending = \false)
|
614 |
{
|
615 |
$this->assureId();
|
@@ -820,6 +830,16 @@ class AdAccount extends \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject
|
|
820 |
$request->addFields($fields);
|
821 |
return $pending ? $request : $request->execute();
|
822 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
823 |
public function getMatchedSearchApplications(array $fields = array(), array $params = array(), $pending = \false)
|
824 |
{
|
825 |
$this->assureId();
|
@@ -1083,7 +1103,7 @@ class AdAccount extends \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject
|
|
1083 |
public function updateSelf(array $fields = array(), array $params = array(), $pending = \false)
|
1084 |
{
|
1085 |
$this->assureId();
|
1086 |
-
$param_types = array('agency_client_declaration' => 'map', 'attribution_spec' => 'list<Object>', 'business_info' => 'map', 'currency' => 'currency_enum', 'end_advertiser' => 'string', 'is_notifications_enabled' => 'bool', 'media_agency' => 'string', 'name' => 'string', 'partner' => 'string', 'spend_cap' => 'float', 'spend_cap_action' => 'string', 'timezone_id' => 'unsigned int', 'tos_accepted' => 'map');
|
1087 |
$enums = array('currency_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdAccountCurrencyValues::getInstance()->getValues());
|
1088 |
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_POST, '/', new \PYS_PRO_GLOBAL\FacebookAds\Object\AdAccount(), 'NODE', \PYS_PRO_GLOBAL\FacebookAds\Object\AdAccount::getFieldsEnum()->getValues(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
1089 |
$request->addParams($params);
|
58 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdDatePresetValues;
|
59 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdExecutionOptionsValues;
|
60 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdOperatorValues;
|
|
|
61 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdPlacePageSetLocationTypesValues;
|
62 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdPlacePageSetTargetedAreaTypeValues;
|
63 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdPreviewAdFormatValues;
|
64 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdPreviewRenderTypeValues;
|
65 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdRuleStatusValues;
|
66 |
+
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdRuleUiCreationSourceValues;
|
67 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdSetBidStrategyValues;
|
68 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdSetBillingEventValues;
|
69 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdSetDatePresetValues;
|
173 |
public function createAdPlacePageSet(array $fields = array(), array $params = array(), $pending = \false)
|
174 |
{
|
175 |
$this->assureId();
|
176 |
+
$param_types = array('location_types' => 'list<location_types_enum>', 'name' => 'string', 'parent_page' => 'string', 'targeted_area_type' => 'targeted_area_type_enum');
|
177 |
+
$enums = array('location_types_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdPlacePageSetLocationTypesValues::getInstance()->getValues(), 'targeted_area_type_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdPlacePageSetTargetedAreaTypeValues::getInstance()->getValues());
|
178 |
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_POST, '/ad_place_page_sets', new \PYS_PRO_GLOBAL\FacebookAds\Object\AdPlacePageSet(), 'EDGE', \PYS_PRO_GLOBAL\FacebookAds\Object\AdPlacePageSet::getFieldsEnum()->getValues(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
179 |
$request->addParams($params);
|
180 |
$request->addFields($fields);
|
183 |
public function createAdPlacePageSetsAsync(array $fields = array(), array $params = array(), $pending = \false)
|
184 |
{
|
185 |
$this->assureId();
|
186 |
+
$param_types = array('location_types' => 'list<location_types_enum>', 'name' => 'string', 'parent_page' => 'string', 'targeted_area_type' => 'targeted_area_type_enum');
|
187 |
+
$enums = array('location_types_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdPlacePageSetLocationTypesValues::getInstance()->getValues(), 'targeted_area_type_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdPlacePageSetTargetedAreaTypeValues::getInstance()->getValues());
|
188 |
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_POST, '/ad_place_page_sets_async', new \PYS_PRO_GLOBAL\FacebookAds\Object\AdPlacePageSet(), 'EDGE', \PYS_PRO_GLOBAL\FacebookAds\Object\AdPlacePageSet::getFieldsEnum()->getValues(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
189 |
$request->addParams($params);
|
190 |
$request->addFields($fields);
|
215 |
$this->assureId();
|
216 |
$param_types = array();
|
217 |
$enums = array();
|
218 |
+
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_GET, '/adcloudplayables', new \PYS_PRO_GLOBAL\FacebookAds\Object\CloudGame(), 'EDGE', \PYS_PRO_GLOBAL\FacebookAds\Object\CloudGame::getFieldsEnum()->getValues(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
219 |
$request->addParams($params);
|
220 |
$request->addFields($fields);
|
221 |
return $pending ? $request : $request->execute();
|
305 |
$this->assureId();
|
306 |
$param_types = array();
|
307 |
$enums = array();
|
308 |
+
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_GET, '/adplayables', new \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject(), 'EDGE', array(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
309 |
$request->addParams($params);
|
310 |
$request->addFields($fields);
|
311 |
return $pending ? $request : $request->execute();
|
315 |
$this->assureId();
|
316 |
$param_types = array('app_id' => 'string', 'name' => 'string', 'session_id' => 'string', 'source' => 'file', 'source_url' => 'string', 'source_zip' => 'file');
|
317 |
$enums = array();
|
318 |
+
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_POST, '/adplayables', new \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject(), 'EDGE', array(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
319 |
$request->addParams($params);
|
320 |
$request->addFields($fields);
|
321 |
return $pending ? $request : $request->execute();
|
343 |
public function createAdRulesLibrary(array $fields = array(), array $params = array(), $pending = \false)
|
344 |
{
|
345 |
$this->assureId();
|
346 |
+
$param_types = array('account_id' => 'string', 'evaluation_spec' => 'Object', 'execution_spec' => 'Object', 'name' => 'string', 'schedule_spec' => 'Object', 'status' => 'status_enum', 'ui_creation_source' => 'ui_creation_source_enum');
|
347 |
+
$enums = array('status_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdRuleStatusValues::getInstance()->getValues(), 'ui_creation_source_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdRuleUiCreationSourceValues::getInstance()->getValues());
|
348 |
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_POST, '/adrules_library', new \PYS_PRO_GLOBAL\FacebookAds\Object\AdRule(), 'EDGE', \PYS_PRO_GLOBAL\FacebookAds\Object\AdRule::getFieldsEnum()->getValues(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
349 |
$request->addParams($params);
|
350 |
$request->addFields($fields);
|
403 |
public function createAdSet(array $fields = array(), array $params = array(), $pending = \false)
|
404 |
{
|
405 |
$this->assureId();
|
406 |
+
$param_types = array('adlabels' => 'list<Object>', 'adset_schedule' => 'list<Object>', 'attribution_spec' => 'list<map>', 'bid_adjustments' => 'Object', 'bid_amount' => 'int', 'bid_constraints' => 'map<string, Object>', 'bid_strategy' => 'bid_strategy_enum', 'billing_event' => 'billing_event_enum', 'campaign_id' => 'string', 'campaign_spec' => 'Object', 'creative_sequence' => 'list<string>', 'daily_budget' => 'unsigned int', 'daily_imps' => 'unsigned int', 'daily_min_spend_target' => 'unsigned int', 'daily_spend_cap' => 'unsigned int', 'date_format' => 'string', 'destination_type' => 'destination_type_enum', 'end_time' => 'datetime', 'execution_options' => 'list<execution_options_enum>', 'existing_customer_budget_percentage' => 'unsigned int', 'frequency_control_specs' => 'list<Object>', 'full_funnel_exploration_mode' => 'full_funnel_exploration_mode_enum', 'is_dynamic_creative' => 'bool', 'lifetime_budget' => 'unsigned int', 'lifetime_imps' => 'unsigned int', 'lifetime_min_spend_target' => 'unsigned int', 'lifetime_spend_cap' => 'unsigned int', 'line_number' => 'unsigned int', 'multi_optimization_goal_weight' => 'multi_optimization_goal_weight_enum', 'name' => 'string', 'optimization_goal' => 'optimization_goal_enum', 'optimization_sub_event' => 'optimization_sub_event_enum', 'pacing_type' => 'list<string>', 'promoted_object' => 'Object', 'rb_prediction_id' => 'string', 'rf_prediction_id' => 'string', 'source_adset_id' => 'string', 'start_time' => 'datetime', 'status' => 'status_enum', 'targeting' => 'Targeting', 'time_based_ad_rotation_id_blocks' => 'list<list<unsigned int>>', 'time_based_ad_rotation_intervals' => 'list<unsigned int>', 'time_start' => 'datetime', 'time_stop' => 'datetime', 'topline_id' => 'string', 'tune_for_category' => 'tune_for_category_enum', 'upstream_events' => 'map');
|
407 |
$enums = array('bid_strategy_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdSetBidStrategyValues::getInstance()->getValues(), 'billing_event_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdSetBillingEventValues::getInstance()->getValues(), 'destination_type_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdSetDestinationTypeValues::getInstance()->getValues(), 'execution_options_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdSetExecutionOptionsValues::getInstance()->getValues(), 'full_funnel_exploration_mode_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdSetFullFunnelExplorationModeValues::getInstance()->getValues(), 'multi_optimization_goal_weight_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdSetMultiOptimizationGoalWeightValues::getInstance()->getValues(), 'optimization_goal_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdSetOptimizationGoalValues::getInstance()->getValues(), 'optimization_sub_event_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdSetOptimizationSubEventValues::getInstance()->getValues(), 'status_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdSetStatusValues::getInstance()->getValues(), 'tune_for_category_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdSetTuneForCategoryValues::getInstance()->getValues());
|
408 |
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_POST, '/adsets', new \PYS_PRO_GLOBAL\FacebookAds\Object\AdSet(), 'EDGE', \PYS_PRO_GLOBAL\FacebookAds\Object\AdSet::getFieldsEnum()->getValues(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
409 |
$request->addParams($params);
|
435 |
$this->assureId();
|
436 |
$param_types = array('name' => 'string');
|
437 |
$enums = array();
|
438 |
+
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_POST, '/adspixels', new \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject(), 'EDGE', array(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
439 |
$request->addParams($params);
|
440 |
$request->addFields($fields);
|
441 |
return $pending ? $request : $request->execute();
|
610 |
$request->addFields($fields);
|
611 |
return $pending ? $request : $request->execute();
|
612 |
}
|
613 |
+
public function getBusinessProjects(array $fields = array(), array $params = array(), $pending = \false)
|
614 |
+
{
|
615 |
+
$this->assureId();
|
616 |
+
$param_types = array('business' => 'string');
|
617 |
+
$enums = array();
|
618 |
+
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_GET, '/businessprojects', new \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject(), 'EDGE', array(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
619 |
+
$request->addParams($params);
|
620 |
+
$request->addFields($fields);
|
621 |
+
return $pending ? $request : $request->execute();
|
622 |
+
}
|
623 |
public function deleteCampaigns(array $fields = array(), array $params = array(), $pending = \false)
|
624 |
{
|
625 |
$this->assureId();
|
830 |
$request->addFields($fields);
|
831 |
return $pending ? $request : $request->execute();
|
832 |
}
|
833 |
+
public function createManagedPartnerAd(array $fields = array(), array $params = array(), $pending = \false)
|
834 |
+
{
|
835 |
+
$this->assureId();
|
836 |
+
$param_types = array('campaign_group_id' => 'unsigned int', 'campaign_group_status' => 'campaign_group_status_enum', 'conversion_domain' => 'string', 'end_time' => 'unsigned int', 'lifetime_budget' => 'unsigned int', 'override_creative_text' => 'string', 'override_targeting_countries' => 'list<string>', 'product_set_id' => 'string', 'start_time' => 'unsigned int', 'use_marketplace_template' => 'bool', 'use_seller_template' => 'bool');
|
837 |
+
$enums = array('campaign_group_status_enum' => array('ACTIVE', 'ADSET_PAUSED', 'ARCHIVED', 'CAMPAIGN_PAUSED', 'DELETED', 'DISAPPROVED', 'IN_PROCESS', 'PAUSED', 'PENDING_BILLING_INFO', 'PENDING_REVIEW', 'PREAPPROVED', 'WITH_ISSUES'));
|
838 |
+
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_POST, '/managed_partner_ads', new \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject(), 'EDGE', array(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
839 |
+
$request->addParams($params);
|
840 |
+
$request->addFields($fields);
|
841 |
+
return $pending ? $request : $request->execute();
|
842 |
+
}
|
843 |
public function getMatchedSearchApplications(array $fields = array(), array $params = array(), $pending = \false)
|
844 |
{
|
845 |
$this->assureId();
|
1103 |
public function updateSelf(array $fields = array(), array $params = array(), $pending = \false)
|
1104 |
{
|
1105 |
$this->assureId();
|
1106 |
+
$param_types = array('agency_client_declaration' => 'map', 'attribution_spec' => 'list<Object>', 'business_info' => 'map', 'currency' => 'currency_enum', 'end_advertiser' => 'string', 'existing_customers' => 'list<string>', 'is_notifications_enabled' => 'bool', 'media_agency' => 'string', 'name' => 'string', 'partner' => 'string', 'spend_cap' => 'float', 'spend_cap_action' => 'string', 'timezone_id' => 'unsigned int', 'tos_accepted' => 'map');
|
1107 |
$enums = array('currency_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdAccountCurrencyValues::getInstance()->getValues());
|
1108 |
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_POST, '/', new \PYS_PRO_GLOBAL\FacebookAds\Object\AdAccount(), 'NODE', \PYS_PRO_GLOBAL\FacebookAds\Object\AdAccount::getFieldsEnum()->getValues(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
1109 |
$request->addParams($params);
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/AdAsyncRequestSet.php
CHANGED
@@ -30,7 +30,6 @@ use PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface;
|
|
30 |
use PYS_PRO_GLOBAL\FacebookAds\TypeChecker;
|
31 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Fields\AdAsyncRequestSetFields;
|
32 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdAsyncRequestSetNotificationModeValues;
|
33 |
-
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdAsyncRequestSetNotificationStatusValues;
|
34 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdAsyncRequestStatusesValues;
|
35 |
/**
|
36 |
* This class is auto-generated.
|
@@ -60,7 +59,6 @@ class AdAsyncRequestSet extends \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudO
|
|
60 |
{
|
61 |
$ref_enums = array();
|
62 |
$ref_enums['NotificationMode'] = \PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdAsyncRequestSetNotificationModeValues::getInstance()->getValues();
|
63 |
-
$ref_enums['NotificationStatus'] = \PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdAsyncRequestSetNotificationStatusValues::getInstance()->getValues();
|
64 |
return $ref_enums;
|
65 |
}
|
66 |
public function getRequests(array $fields = array(), array $params = array(), $pending = \false)
|
30 |
use PYS_PRO_GLOBAL\FacebookAds\TypeChecker;
|
31 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Fields\AdAsyncRequestSetFields;
|
32 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdAsyncRequestSetNotificationModeValues;
|
|
|
33 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdAsyncRequestStatusesValues;
|
34 |
/**
|
35 |
* This class is auto-generated.
|
59 |
{
|
60 |
$ref_enums = array();
|
61 |
$ref_enums['NotificationMode'] = \PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdAsyncRequestSetNotificationModeValues::getInstance()->getValues();
|
|
|
62 |
return $ref_enums;
|
63 |
}
|
64 |
public function getRequests(array $fields = array(), array $params = array(), $pending = \false)
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/AdPlacePageSet.php
CHANGED
@@ -29,7 +29,6 @@ use PYS_PRO_GLOBAL\FacebookAds\Cursor;
|
|
29 |
use PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface;
|
30 |
use PYS_PRO_GLOBAL\FacebookAds\TypeChecker;
|
31 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Fields\AdPlacePageSetFields;
|
32 |
-
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdPlacePageSetCategoryValues;
|
33 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdPlacePageSetLocationTypesValues;
|
34 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdPlacePageSetTargetedAreaTypeValues;
|
35 |
/**
|
@@ -59,7 +58,6 @@ class AdPlacePageSet extends \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObje
|
|
59 |
protected static function getReferencedEnums()
|
60 |
{
|
61 |
$ref_enums = array();
|
62 |
-
$ref_enums['Category'] = \PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdPlacePageSetCategoryValues::getInstance()->getValues();
|
63 |
$ref_enums['LocationTypes'] = \PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdPlacePageSetLocationTypesValues::getInstance()->getValues();
|
64 |
$ref_enums['TargetedAreaType'] = \PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdPlacePageSetTargetedAreaTypeValues::getInstance()->getValues();
|
65 |
return $ref_enums;
|
29 |
use PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface;
|
30 |
use PYS_PRO_GLOBAL\FacebookAds\TypeChecker;
|
31 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Fields\AdPlacePageSetFields;
|
|
|
32 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdPlacePageSetLocationTypesValues;
|
33 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdPlacePageSetTargetedAreaTypeValues;
|
34 |
/**
|
58 |
protected static function getReferencedEnums()
|
59 |
{
|
60 |
$ref_enums = array();
|
|
|
61 |
$ref_enums['LocationTypes'] = \PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdPlacePageSetLocationTypesValues::getInstance()->getValues();
|
62 |
$ref_enums['TargetedAreaType'] = \PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdPlacePageSetTargetedAreaTypeValues::getInstance()->getValues();
|
63 |
return $ref_enums;
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/AdRule.php
CHANGED
@@ -31,6 +31,7 @@ use PYS_PRO_GLOBAL\FacebookAds\TypeChecker;
|
|
31 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Fields\AdRuleFields;
|
32 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdRuleHistoryActionValues;
|
33 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdRuleStatusValues;
|
|
|
34 |
/**
|
35 |
* This class is auto-generated.
|
36 |
*
|
@@ -59,6 +60,7 @@ class AdRule extends \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject
|
|
59 |
{
|
60 |
$ref_enums = array();
|
61 |
$ref_enums['Status'] = \PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdRuleStatusValues::getInstance()->getValues();
|
|
|
62 |
return $ref_enums;
|
63 |
}
|
64 |
public function createExecute(array $fields = array(), array $params = array(), $pending = \false)
|
31 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Fields\AdRuleFields;
|
32 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdRuleHistoryActionValues;
|
33 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdRuleStatusValues;
|
34 |
+
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdRuleUiCreationSourceValues;
|
35 |
/**
|
36 |
* This class is auto-generated.
|
37 |
*
|
60 |
{
|
61 |
$ref_enums = array();
|
62 |
$ref_enums['Status'] = \PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdRuleStatusValues::getInstance()->getValues();
|
63 |
+
$ref_enums['UiCreationSource'] = \PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdRuleUiCreationSourceValues::getInstance()->getValues();
|
64 |
return $ref_enums;
|
65 |
}
|
66 |
public function createExecute(array $fields = array(), array $params = array(), $pending = \false)
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/AdSet.php
CHANGED
@@ -278,7 +278,7 @@ class AdSet extends \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractArchivableCrudObj
|
|
278 |
public function updateSelf(array $fields = array(), array $params = array(), $pending = \false)
|
279 |
{
|
280 |
$this->assureId();
|
281 |
-
$param_types = array('account_id' => 'string', 'adlabels' => 'list<Object>', 'adset_schedule' => 'list<Object>', 'attribution_spec' => 'list<map>', 'bid_adjustments' => 'Object', 'bid_amount' => 'int', 'bid_constraints' => 'map<string, Object>', 'bid_strategy' => 'bid_strategy_enum', 'billing_event' => 'billing_event_enum', 'campaign_spec' => 'Object', 'creative_sequence' => 'list<string>', 'daily_budget' => 'unsigned int', 'daily_imps' => 'unsigned int', 'daily_min_spend_target' => 'unsigned int', 'daily_spend_cap' => 'unsigned int', 'date_format' => 'string', 'destination_type' => 'destination_type_enum', 'end_time' => 'datetime', 'execution_options' => 'list<execution_options_enum>', 'full_funnel_exploration_mode' => 'full_funnel_exploration_mode_enum', 'lifetime_budget' => 'unsigned int', 'lifetime_imps' => 'unsigned int', 'lifetime_min_spend_target' => 'unsigned int', 'lifetime_spend_cap' => 'unsigned int', 'multi_optimization_goal_weight' => 'multi_optimization_goal_weight_enum', 'name' => 'string', 'optimization_goal' => 'optimization_goal_enum', 'optimization_sub_event' => 'optimization_sub_event_enum', 'pacing_type' => 'list<string>', 'promoted_object' => 'Object', 'rb_prediction_id' => 'string', 'rf_prediction_id' => 'string', 'start_time' => 'datetime', 'status' => 'status_enum', 'targeting' => 'Targeting', 'time_based_ad_rotation_id_blocks' => 'list<list<unsigned int>>', 'time_based_ad_rotation_intervals' => 'list<unsigned int>', 'time_start' => 'datetime', 'time_stop' => 'datetime', 'tune_for_category' => 'tune_for_category_enum', 'upstream_events' => 'map');
|
282 |
$enums = array('bid_strategy_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdSetBidStrategyValues::getInstance()->getValues(), 'billing_event_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdSetBillingEventValues::getInstance()->getValues(), 'destination_type_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdSetDestinationTypeValues::getInstance()->getValues(), 'execution_options_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdSetExecutionOptionsValues::getInstance()->getValues(), 'full_funnel_exploration_mode_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdSetFullFunnelExplorationModeValues::getInstance()->getValues(), 'multi_optimization_goal_weight_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdSetMultiOptimizationGoalWeightValues::getInstance()->getValues(), 'optimization_goal_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdSetOptimizationGoalValues::getInstance()->getValues(), 'optimization_sub_event_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdSetOptimizationSubEventValues::getInstance()->getValues(), 'status_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdSetStatusValues::getInstance()->getValues(), 'tune_for_category_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdSetTuneForCategoryValues::getInstance()->getValues());
|
283 |
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_POST, '/', new \PYS_PRO_GLOBAL\FacebookAds\Object\AdSet(), 'NODE', \PYS_PRO_GLOBAL\FacebookAds\Object\AdSet::getFieldsEnum()->getValues(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
284 |
$request->addParams($params);
|
278 |
public function updateSelf(array $fields = array(), array $params = array(), $pending = \false)
|
279 |
{
|
280 |
$this->assureId();
|
281 |
+
$param_types = array('account_id' => 'string', 'adlabels' => 'list<Object>', 'adset_schedule' => 'list<Object>', 'attribution_spec' => 'list<map>', 'bid_adjustments' => 'Object', 'bid_amount' => 'int', 'bid_constraints' => 'map<string, Object>', 'bid_strategy' => 'bid_strategy_enum', 'billing_event' => 'billing_event_enum', 'campaign_spec' => 'Object', 'creative_sequence' => 'list<string>', 'daily_budget' => 'unsigned int', 'daily_imps' => 'unsigned int', 'daily_min_spend_target' => 'unsigned int', 'daily_spend_cap' => 'unsigned int', 'date_format' => 'string', 'destination_type' => 'destination_type_enum', 'end_time' => 'datetime', 'execution_options' => 'list<execution_options_enum>', 'existing_customer_budget_percentage' => 'unsigned int', 'full_funnel_exploration_mode' => 'full_funnel_exploration_mode_enum', 'lifetime_budget' => 'unsigned int', 'lifetime_imps' => 'unsigned int', 'lifetime_min_spend_target' => 'unsigned int', 'lifetime_spend_cap' => 'unsigned int', 'multi_optimization_goal_weight' => 'multi_optimization_goal_weight_enum', 'name' => 'string', 'optimization_goal' => 'optimization_goal_enum', 'optimization_sub_event' => 'optimization_sub_event_enum', 'pacing_type' => 'list<string>', 'promoted_object' => 'Object', 'rb_prediction_id' => 'string', 'rf_prediction_id' => 'string', 'start_time' => 'datetime', 'status' => 'status_enum', 'targeting' => 'Targeting', 'time_based_ad_rotation_id_blocks' => 'list<list<unsigned int>>', 'time_based_ad_rotation_intervals' => 'list<unsigned int>', 'time_start' => 'datetime', 'time_stop' => 'datetime', 'tune_for_category' => 'tune_for_category_enum', 'upstream_events' => 'map');
|
282 |
$enums = array('bid_strategy_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdSetBidStrategyValues::getInstance()->getValues(), 'billing_event_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdSetBillingEventValues::getInstance()->getValues(), 'destination_type_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdSetDestinationTypeValues::getInstance()->getValues(), 'execution_options_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdSetExecutionOptionsValues::getInstance()->getValues(), 'full_funnel_exploration_mode_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdSetFullFunnelExplorationModeValues::getInstance()->getValues(), 'multi_optimization_goal_weight_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdSetMultiOptimizationGoalWeightValues::getInstance()->getValues(), 'optimization_goal_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdSetOptimizationGoalValues::getInstance()->getValues(), 'optimization_sub_event_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdSetOptimizationSubEventValues::getInstance()->getValues(), 'status_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdSetStatusValues::getInstance()->getValues(), 'tune_for_category_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdSetTuneForCategoryValues::getInstance()->getValues());
|
283 |
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_POST, '/', new \PYS_PRO_GLOBAL\FacebookAds\Object\AdSet(), 'NODE', \PYS_PRO_GLOBAL\FacebookAds\Object\AdSet::getFieldsEnum()->getValues(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
284 |
$request->addParams($params);
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/AdStudyObjective.php
CHANGED
@@ -116,7 +116,7 @@ class AdStudyObjective extends \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudOb
|
|
116 |
public function updateSelf(array $fields = array(), array $params = array(), $pending = \false)
|
117 |
{
|
118 |
$this->assureId();
|
119 |
-
$param_types = array('adspixels' => 'list<Object>', 'applications' => 'list<Object>', 'customconversions' => 'list<Object>', 'is_primary' => 'bool', 'name' => 'string', 'offline_conversion_data_sets' => 'list<Object>', 'product_catalogs' => 'list<Object>', 'product_sets' => 'list<Object>', 'type' => 'type_enum');
|
120 |
$enums = array('type_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdStudyObjectiveTypeValues::getInstance()->getValues());
|
121 |
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_POST, '/', new \PYS_PRO_GLOBAL\FacebookAds\Object\AdStudyObjective(), 'NODE', \PYS_PRO_GLOBAL\FacebookAds\Object\AdStudyObjective::getFieldsEnum()->getValues(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
122 |
$request->addParams($params);
|
116 |
public function updateSelf(array $fields = array(), array $params = array(), $pending = \false)
|
117 |
{
|
118 |
$this->assureId();
|
119 |
+
$param_types = array('adspixels' => 'list<Object>', 'applications' => 'list<Object>', 'customconversions' => 'list<Object>', 'is_primary' => 'bool', 'name' => 'string', 'offline_conversion_data_sets' => 'list<Object>', 'offsite_datasets' => 'list<Object>', 'product_catalogs' => 'list<Object>', 'product_sets' => 'list<Object>', 'type' => 'type_enum');
|
120 |
$enums = array('type_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdStudyObjectiveTypeValues::getInstance()->getValues());
|
121 |
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_POST, '/', new \PYS_PRO_GLOBAL\FacebookAds\Object\AdStudyObjective(), 'NODE', \PYS_PRO_GLOBAL\FacebookAds\Object\AdStudyObjective::getFieldsEnum()->getValues(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
122 |
$request->addParams($params);
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/AdStudyObjectiveOffsiteDatasets.php
ADDED
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Copyright (c) 2015-present, Facebook, Inc. All rights reserved.
|
5 |
+
*
|
6 |
+
* You are hereby granted a non-exclusive, worldwide, royalty-free license to
|
7 |
+
* use, copy, modify, and distribute this software in source code or binary
|
8 |
+
* form for use in connection with the web services and APIs provided by
|
9 |
+
* Facebook.
|
10 |
+
*
|
11 |
+
* As with any software that integrates with the Facebook platform, your use
|
12 |
+
* of this software is subject to the Facebook Developer Principles and
|
13 |
+
* Policies [http://developers.facebook.com/policy/]. This copyright notice
|
14 |
+
* shall be included in all copies or substantial portions of the software.
|
15 |
+
*
|
16 |
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
17 |
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
18 |
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
19 |
+
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
20 |
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
21 |
+
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
22 |
+
* DEALINGS IN THE SOFTWARE.
|
23 |
+
*
|
24 |
+
*/
|
25 |
+
namespace PYS_PRO_GLOBAL\FacebookAds\Object;
|
26 |
+
|
27 |
+
use PYS_PRO_GLOBAL\FacebookAds\ApiRequest;
|
28 |
+
use PYS_PRO_GLOBAL\FacebookAds\Cursor;
|
29 |
+
use PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface;
|
30 |
+
use PYS_PRO_GLOBAL\FacebookAds\TypeChecker;
|
31 |
+
use PYS_PRO_GLOBAL\FacebookAds\Object\Fields\AdStudyObjectiveOffsiteDatasetsFields;
|
32 |
+
/**
|
33 |
+
* This class is auto-generated.
|
34 |
+
*
|
35 |
+
* For any issues or feature requests related to this class, please let us know
|
36 |
+
* on github and we'll fix in our codegen framework. We'll not be able to accept
|
37 |
+
* pull request for this class.
|
38 |
+
*
|
39 |
+
*/
|
40 |
+
class AdStudyObjectiveOffsiteDatasets extends \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject
|
41 |
+
{
|
42 |
+
/**
|
43 |
+
* @return AdStudyObjectiveOffsiteDatasetsFields
|
44 |
+
*/
|
45 |
+
public static function getFieldsEnum()
|
46 |
+
{
|
47 |
+
return \PYS_PRO_GLOBAL\FacebookAds\Object\Fields\AdStudyObjectiveOffsiteDatasetsFields::getInstance();
|
48 |
+
}
|
49 |
+
protected static function getReferencedEnums()
|
50 |
+
{
|
51 |
+
$ref_enums = array();
|
52 |
+
return $ref_enums;
|
53 |
+
}
|
54 |
+
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/AdVideo.php
CHANGED
@@ -134,6 +134,16 @@ class AdVideo extends \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject
|
|
134 |
$request->addFields($fields);
|
135 |
return $pending ? $request : $request->execute();
|
136 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
137 |
public function getLikes(array $fields = array(), array $params = array(), $pending = \false)
|
138 |
{
|
139 |
$this->assureId();
|
134 |
$request->addFields($fields);
|
135 |
return $pending ? $request : $request->execute();
|
136 |
}
|
137 |
+
public function createGamingClipCreate(array $fields = array(), array $params = array(), $pending = \false)
|
138 |
+
{
|
139 |
+
$this->assureId();
|
140 |
+
$param_types = array('duration_seconds' => 'float');
|
141 |
+
$enums = array();
|
142 |
+
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_POST, '/gaming_clip_create', new \PYS_PRO_GLOBAL\FacebookAds\Object\AdVideo(), 'EDGE', \PYS_PRO_GLOBAL\FacebookAds\Object\AdVideo::getFieldsEnum()->getValues(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
143 |
+
$request->addParams($params);
|
144 |
+
$request->addFields($fields);
|
145 |
+
return $pending ? $request : $request->execute();
|
146 |
+
}
|
147 |
public function getLikes(array $fields = array(), array $params = array(), $pending = \false)
|
148 |
{
|
149 |
$this->assureId();
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/AdsPixel.php
CHANGED
@@ -170,6 +170,16 @@ class AdsPixel extends \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject
|
|
170 |
$request->addFields($fields);
|
171 |
return $pending ? $request : $request->execute();
|
172 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
173 |
public function getSelf(array $fields = array(), array $params = array(), $pending = \false)
|
174 |
{
|
175 |
$this->assureId();
|
170 |
$request->addFields($fields);
|
171 |
return $pending ? $request : $request->execute();
|
172 |
}
|
173 |
+
public function createTelemetry(array $fields = array(), array $params = array(), $pending = \false)
|
174 |
+
{
|
175 |
+
$this->assureId();
|
176 |
+
$param_types = array();
|
177 |
+
$enums = array();
|
178 |
+
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_POST, '/telemetry', new \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject(), 'EDGE', array(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
179 |
+
$request->addParams($params);
|
180 |
+
$request->addFields($fields);
|
181 |
+
return $pending ? $request : $request->execute();
|
182 |
+
}
|
183 |
public function getSelf(array $fields = array(), array $params = array(), $pending = \false)
|
184 |
{
|
185 |
$this->assureId();
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Application.php
CHANGED
@@ -118,6 +118,16 @@ class Application extends \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject
|
|
118 |
$request->addFields($fields);
|
119 |
return $pending ? $request : $request->execute();
|
120 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
121 |
public function getAdNetworkAnalytics(array $fields = array(), array $params = array(), $pending = \false)
|
122 |
{
|
123 |
$this->assureId();
|
@@ -218,16 +228,6 @@ class Application extends \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject
|
|
218 |
$request->addFields($fields);
|
219 |
return $pending ? $request : $request->execute();
|
220 |
}
|
221 |
-
public function getAppInsights(array $fields = array(), array $params = array(), $pending = \false)
|
222 |
-
{
|
223 |
-
$this->assureId();
|
224 |
-
$param_types = array('aggregateBy' => 'aggregateBy_enum', 'breakdowns' => 'list<string>', 'ecosystem' => 'ecosystem_enum', 'event_name' => 'string', 'intervals_to_aggregate' => 'int', 'metric_key' => 'string', 'period' => 'period_enum', 'since' => 'datetime', 'until' => 'datetime');
|
225 |
-
$enums = array('aggregateBy_enum' => array('AVERAGE_JOURNEY_LENGTH', 'CONVERTED_JOURNEY_PERCENT', 'COUNT', 'COUNT_IDENTIFIED_USERS', 'COUNT_PER_USER', 'DAU', 'EVENT_LATEST_FIRE_TIME', 'EVENT_SOURCE_IDS', 'JOURNEY_CHANNEL_INCLUSION', 'JOURNEY_INCLUSION', 'MAU', 'MEDIAN_JOURNEY_LENGTH', 'MEDIAN_VALUE', 'MEDIAN_VALUE_PER_USER', 'OVERLAP', 'PERCENTILES_COUNT', 'PERCENTILES_USD_VALUE', 'PERCENTILES_VALUE', 'SCORE', 'SESSIONS_PER_JOURNEY', 'SESSION_BOUNCE_RATE', 'SUM', 'SUM_IDENTIFIED_USERS', 'SUM_PER_EVENT', 'TOPK', 'UNKNOWN_USERS', 'USD_SUM', 'USD_SUM_IDENTIFIED_USERS', 'USD_SUM_PER_EVENT', 'USD_SUM_PER_USER', 'USD_VALUE_PER_USER', 'USERS', 'USER_PROPERTY_USER_COUNT', 'VALUE_PER_USER', 'WAU'), 'ecosystem_enum' => array('GAME', 'NON_GAME'), 'period_enum' => array('daily', 'days_28', 'days_60', 'days_90', 'hourly', 'lifetime', 'mins_15', 'monthly', 'range', 'weekly'));
|
226 |
-
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_GET, '/app_insights', new \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject(), 'EDGE', array(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
227 |
-
$request->addParams($params);
|
228 |
-
$request->addFields($fields);
|
229 |
-
return $pending ? $request : $request->execute();
|
230 |
-
}
|
231 |
public function getAppInstalledGroups(array $fields = array(), array $params = array(), $pending = \false)
|
232 |
{
|
233 |
$this->assureId();
|
@@ -298,16 +298,6 @@ class Application extends \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject
|
|
298 |
$request->addFields($fields);
|
299 |
return $pending ? $request : $request->execute();
|
300 |
}
|
301 |
-
public function createButtonIndexing(array $fields = array(), array $params = array(), $pending = \false)
|
302 |
-
{
|
303 |
-
$this->assureId();
|
304 |
-
$param_types = array('app_version' => 'string', 'device_id' => 'string', 'extinfo' => 'string', 'indexed_button_list' => 'list<map>');
|
305 |
-
$enums = array();
|
306 |
-
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_POST, '/button_indexing', new \PYS_PRO_GLOBAL\FacebookAds\Object\Application(), 'EDGE', \PYS_PRO_GLOBAL\FacebookAds\Object\Application::getFieldsEnum()->getValues(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
307 |
-
$request->addParams($params);
|
308 |
-
$request->addFields($fields);
|
309 |
-
return $pending ? $request : $request->execute();
|
310 |
-
}
|
311 |
public function createCodelessEventMapping(array $fields = array(), array $params = array(), $pending = \false)
|
312 |
{
|
313 |
$this->assureId();
|
@@ -398,16 +388,6 @@ class Application extends \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject
|
|
398 |
$request->addFields($fields);
|
399 |
return $pending ? $request : $request->execute();
|
400 |
}
|
401 |
-
public function createLeaderboardsSetScore(array $fields = array(), array $params = array(), $pending = \false)
|
402 |
-
{
|
403 |
-
$this->assureId();
|
404 |
-
$param_types = array('extra_data' => 'string', 'name' => 'string', 'player_id' => 'string', 'score' => 'unsigned int');
|
405 |
-
$enums = array();
|
406 |
-
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_POST, '/leaderboards_set_score', new \PYS_PRO_GLOBAL\FacebookAds\Object\Application(), 'EDGE', \PYS_PRO_GLOBAL\FacebookAds\Object\Application::getFieldsEnum()->getValues(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
407 |
-
$request->addParams($params);
|
408 |
-
$request->addFields($fields);
|
409 |
-
return $pending ? $request : $request->execute();
|
410 |
-
}
|
411 |
public function createMmpAuditing(array $fields = array(), array $params = array(), $pending = \false)
|
412 |
{
|
413 |
$this->assureId();
|
@@ -448,16 +428,6 @@ class Application extends \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject
|
|
448 |
$request->addFields($fields);
|
449 |
return $pending ? $request : $request->execute();
|
450 |
}
|
451 |
-
public function deletePaymentCurrencies(array $fields = array(), array $params = array(), $pending = \false)
|
452 |
-
{
|
453 |
-
$this->assureId();
|
454 |
-
$param_types = array('currency_url' => 'string');
|
455 |
-
$enums = array();
|
456 |
-
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_DELETE, '/payment_currencies', new \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject(), 'EDGE', array(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
457 |
-
$request->addParams($params);
|
458 |
-
$request->addFields($fields);
|
459 |
-
return $pending ? $request : $request->execute();
|
460 |
-
}
|
461 |
public function createPaymentCurrency(array $fields = array(), array $params = array(), $pending = \false)
|
462 |
{
|
463 |
$this->assureId();
|
118 |
$request->addFields($fields);
|
119 |
return $pending ? $request : $request->execute();
|
120 |
}
|
121 |
+
public function getAdNetworkPlacements(array $fields = array(), array $params = array(), $pending = \false)
|
122 |
+
{
|
123 |
+
$this->assureId();
|
124 |
+
$param_types = array('request_id' => 'string');
|
125 |
+
$enums = array();
|
126 |
+
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_GET, '/adnetwork_placements', new \PYS_PRO_GLOBAL\FacebookAds\Object\AdPlacement(), 'EDGE', \PYS_PRO_GLOBAL\FacebookAds\Object\AdPlacement::getFieldsEnum()->getValues(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
127 |
+
$request->addParams($params);
|
128 |
+
$request->addFields($fields);
|
129 |
+
return $pending ? $request : $request->execute();
|
130 |
+
}
|
131 |
public function getAdNetworkAnalytics(array $fields = array(), array $params = array(), $pending = \false)
|
132 |
{
|
133 |
$this->assureId();
|
228 |
$request->addFields($fields);
|
229 |
return $pending ? $request : $request->execute();
|
230 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
231 |
public function getAppInstalledGroups(array $fields = array(), array $params = array(), $pending = \false)
|
232 |
{
|
233 |
$this->assureId();
|
298 |
$request->addFields($fields);
|
299 |
return $pending ? $request : $request->execute();
|
300 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
301 |
public function createCodelessEventMapping(array $fields = array(), array $params = array(), $pending = \false)
|
302 |
{
|
303 |
$this->assureId();
|
388 |
$request->addFields($fields);
|
389 |
return $pending ? $request : $request->execute();
|
390 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
391 |
public function createMmpAuditing(array $fields = array(), array $params = array(), $pending = \false)
|
392 |
{
|
393 |
$this->assureId();
|
428 |
$request->addFields($fields);
|
429 |
return $pending ? $request : $request->execute();
|
430 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
431 |
public function createPaymentCurrency(array $fields = array(), array $params = array(), $pending = \false)
|
432 |
{
|
433 |
$this->assureId();
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Business.php
CHANGED
@@ -48,11 +48,6 @@ use PYS_PRO_GLOBAL\FacebookAds\Object\Values\CPASCollaborationRequestRequesterAg
|
|
48 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\ContentDeliveryReportPlatformValues;
|
49 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\ContentDeliveryReportPositionValues;
|
50 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\CustomConversionCustomEventTypeValues;
|
51 |
-
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\MeasurementUploadEventAggregationLevelValues;
|
52 |
-
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\MeasurementUploadEventEventStatusValues;
|
53 |
-
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\MeasurementUploadEventLookbackWindowValues;
|
54 |
-
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\MeasurementUploadEventMatchUniverseValues;
|
55 |
-
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\MeasurementUploadEventTimezoneValues;
|
56 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\OmegaCustomerTrxTypeValues;
|
57 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductCatalogVerticalValues;
|
58 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProfilePictureSourceBreakingChangeValues;
|
@@ -205,16 +200,6 @@ class Business extends \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject
|
|
205 |
$request->addFields($fields);
|
206 |
return $pending ? $request : $request->execute();
|
207 |
}
|
208 |
-
public function createAggregateRevenue(array $fields = array(), array $params = array(), $pending = \false)
|
209 |
-
{
|
210 |
-
$this->assureId();
|
211 |
-
$param_types = array('ecpms' => 'list<string>', 'query_ids' => 'list<string>', 'request_id' => 'string', 'sync_api' => 'bool');
|
212 |
-
$enums = array();
|
213 |
-
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_POST, '/aggregate_revenue', new \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject(), 'EDGE', array(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
214 |
-
$request->addParams($params);
|
215 |
-
$request->addFields($fields);
|
216 |
-
return $pending ? $request : $request->execute();
|
217 |
-
}
|
218 |
public function getAnPlacements(array $fields = array(), array $params = array(), $pending = \false)
|
219 |
{
|
220 |
$this->assureId();
|
@@ -295,6 +280,16 @@ class Business extends \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject
|
|
295 |
$request->addFields($fields);
|
296 |
return $pending ? $request : $request->execute();
|
297 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
298 |
public function createClaimCustomConversion(array $fields = array(), array $params = array(), $pending = \false)
|
299 |
{
|
300 |
$this->assureId();
|
@@ -475,6 +470,16 @@ class Business extends \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject
|
|
475 |
$request->addFields($fields);
|
476 |
return $pending ? $request : $request->execute();
|
477 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
478 |
public function getEventSourceGroups(array $fields = array(), array $params = array(), $pending = \false)
|
479 |
{
|
480 |
$this->assureId();
|
@@ -585,6 +590,36 @@ class Business extends \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject
|
|
585 |
$request->addFields($fields);
|
586 |
return $pending ? $request : $request->execute();
|
587 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
588 |
public function createMoveAsset(array $fields = array(), array $params = array(), $pending = \false)
|
589 |
{
|
590 |
$this->assureId();
|
@@ -595,6 +630,16 @@ class Business extends \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject
|
|
595 |
$request->addFields($fields);
|
596 |
return $pending ? $request : $request->execute();
|
597 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
598 |
public function getOfflineConversionDataSets(array $fields = array(), array $params = array(), $pending = \false)
|
599 |
{
|
600 |
$this->assureId();
|
@@ -905,16 +950,6 @@ class Business extends \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject
|
|
905 |
$request->addFields($fields);
|
906 |
return $pending ? $request : $request->execute();
|
907 |
}
|
908 |
-
public function createUploadEvent(array $fields = array(), array $params = array(), $pending = \false)
|
909 |
-
{
|
910 |
-
$this->assureId();
|
911 |
-
$param_types = array('aggregation_level' => 'aggregation_level_enum', 'conversion_end_date' => 'string', 'conversion_start_date' => 'string', 'event_status' => 'event_status_enum', 'lookback_window' => 'lookback_window_enum', 'match_universe' => 'match_universe_enum', 'timezone' => 'timezone_enum', 'upload_tag' => 'string');
|
912 |
-
$enums = array('aggregation_level_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\MeasurementUploadEventAggregationLevelValues::getInstance()->getValues(), 'event_status_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\MeasurementUploadEventEventStatusValues::getInstance()->getValues(), 'lookback_window_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\MeasurementUploadEventLookbackWindowValues::getInstance()->getValues(), 'match_universe_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\MeasurementUploadEventMatchUniverseValues::getInstance()->getValues(), 'timezone_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\MeasurementUploadEventTimezoneValues::getInstance()->getValues());
|
913 |
-
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_POST, '/upload_event', new \PYS_PRO_GLOBAL\FacebookAds\Object\MeasurementUploadEvent(), 'EDGE', \PYS_PRO_GLOBAL\FacebookAds\Object\MeasurementUploadEvent::getFieldsEnum()->getValues(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
914 |
-
$request->addParams($params);
|
915 |
-
$request->addFields($fields);
|
916 |
-
return $pending ? $request : $request->execute();
|
917 |
-
}
|
918 |
public function getSelf(array $fields = array(), array $params = array(), $pending = \false)
|
919 |
{
|
920 |
$this->assureId();
|
48 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\ContentDeliveryReportPlatformValues;
|
49 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\ContentDeliveryReportPositionValues;
|
50 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\CustomConversionCustomEventTypeValues;
|
|
|
|
|
|
|
|
|
|
|
51 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\OmegaCustomerTrxTypeValues;
|
52 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductCatalogVerticalValues;
|
53 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProfilePictureSourceBreakingChangeValues;
|
200 |
$request->addFields($fields);
|
201 |
return $pending ? $request : $request->execute();
|
202 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
203 |
public function getAnPlacements(array $fields = array(), array $params = array(), $pending = \false)
|
204 |
{
|
205 |
$this->assureId();
|
280 |
$request->addFields($fields);
|
281 |
return $pending ? $request : $request->execute();
|
282 |
}
|
283 |
+
public function getBusinessProjects(array $fields = array(), array $params = array(), $pending = \false)
|
284 |
+
{
|
285 |
+
$this->assureId();
|
286 |
+
$param_types = array();
|
287 |
+
$enums = array();
|
288 |
+
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_GET, '/businessprojects', new \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject(), 'EDGE', array(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
289 |
+
$request->addParams($params);
|
290 |
+
$request->addFields($fields);
|
291 |
+
return $pending ? $request : $request->execute();
|
292 |
+
}
|
293 |
public function createClaimCustomConversion(array $fields = array(), array $params = array(), $pending = \false)
|
294 |
{
|
295 |
$this->assureId();
|
470 |
$request->addFields($fields);
|
471 |
return $pending ? $request : $request->execute();
|
472 |
}
|
473 |
+
public function createDraftNegativeKeywordList(array $fields = array(), array $params = array(), $pending = \false)
|
474 |
+
{
|
475 |
+
$this->assureId();
|
476 |
+
$param_types = array('negative_keyword_list_file' => 'file');
|
477 |
+
$enums = array();
|
478 |
+
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_POST, '/draft_negative_keyword_lists', new \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject(), 'EDGE', array(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
479 |
+
$request->addParams($params);
|
480 |
+
$request->addFields($fields);
|
481 |
+
return $pending ? $request : $request->execute();
|
482 |
+
}
|
483 |
public function getEventSourceGroups(array $fields = array(), array $params = array(), $pending = \false)
|
484 |
{
|
485 |
$this->assureId();
|
590 |
$request->addFields($fields);
|
591 |
return $pending ? $request : $request->execute();
|
592 |
}
|
593 |
+
public function createManagedPartnerBusinessSetup(array $fields = array(), array $params = array(), $pending = \false)
|
594 |
+
{
|
595 |
+
$this->assureId();
|
596 |
+
$param_types = array('active_ad_account_id' => 'string', 'active_page_id' => 'int', 'partner_facebook_page_url' => 'string', 'partner_registration_countries' => 'list<string>', 'seller_email_address' => 'string', 'seller_external_website_url' => 'string', 'template' => 'list<map>');
|
597 |
+
$enums = array();
|
598 |
+
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_POST, '/managed_partner_business_setup', new \PYS_PRO_GLOBAL\FacebookAds\Object\Business(), 'EDGE', \PYS_PRO_GLOBAL\FacebookAds\Object\Business::getFieldsEnum()->getValues(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
599 |
+
$request->addParams($params);
|
600 |
+
$request->addFields($fields);
|
601 |
+
return $pending ? $request : $request->execute();
|
602 |
+
}
|
603 |
+
public function createManagedPartnerBusiness(array $fields = array(), array $params = array(), $pending = \false)
|
604 |
+
{
|
605 |
+
$this->assureId();
|
606 |
+
$param_types = array('ad_account_currency' => 'string', 'catalog_id' => 'string', 'child_business_external_id' => 'string', 'credit_limit' => 'unsigned int', 'line_of_credit_id' => 'string', 'name' => 'string', 'no_ad_account' => 'bool', 'page_name' => 'string', 'page_profile_image_url' => 'string', 'partner_facebook_page_url' => 'string', 'partner_registration_countries' => 'list<string>', 'sales_rep_email' => 'string', 'seller_external_website_url' => 'string', 'seller_targeting_countries' => 'list<string>', 'survey_business_type' => 'survey_business_type_enum', 'survey_num_assets' => 'unsigned int', 'survey_num_people' => 'unsigned int', 'timezone_id' => 'unsigned int', 'vertical' => 'vertical_enum');
|
607 |
+
$enums = array('survey_business_type_enum' => array('ADVERTISER', 'AGENCY', 'APP_DEVELOPER', 'PUBLISHER'), 'vertical_enum' => array('ADVERTISING', 'AUTOMOTIVE', 'CONSUMER_PACKAGED_GOODS', 'ECOMMERCE', 'EDUCATION', 'ENERGY_AND_UTILITIES', 'ENTERTAINMENT_AND_MEDIA', 'FINANCIAL_SERVICES', 'GAMING', 'GOVERNMENT_AND_POLITICS', 'HEALTH', 'LUXURY', 'MARKETING', 'NON_PROFIT', 'ORGANIZATIONS_AND_ASSOCIATIONS', 'OTHER', 'PROFESSIONAL_SERVICES', 'RESTAURANT', 'RETAIL', 'TECHNOLOGY', 'TELECOM', 'TRAVEL'));
|
608 |
+
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_POST, '/managed_partner_businesses', new \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject(), 'EDGE', array(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
609 |
+
$request->addParams($params);
|
610 |
+
$request->addFields($fields);
|
611 |
+
return $pending ? $request : $request->execute();
|
612 |
+
}
|
613 |
+
public function createManagedPartnerChildBusinessAsset(array $fields = array(), array $params = array(), $pending = \false)
|
614 |
+
{
|
615 |
+
$this->assureId();
|
616 |
+
$param_types = array('child_business_id' => 'string', 'credit_limit' => 'unsigned int', 'line_of_credit_id' => 'string');
|
617 |
+
$enums = array();
|
618 |
+
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_POST, '/managed_partner_child_business_assets', new \PYS_PRO_GLOBAL\FacebookAds\Object\Business(), 'EDGE', \PYS_PRO_GLOBAL\FacebookAds\Object\Business::getFieldsEnum()->getValues(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
619 |
+
$request->addParams($params);
|
620 |
+
$request->addFields($fields);
|
621 |
+
return $pending ? $request : $request->execute();
|
622 |
+
}
|
623 |
public function createMoveAsset(array $fields = array(), array $params = array(), $pending = \false)
|
624 |
{
|
625 |
$this->assureId();
|
630 |
$request->addFields($fields);
|
631 |
return $pending ? $request : $request->execute();
|
632 |
}
|
633 |
+
public function getNegativeKeywordLists(array $fields = array(), array $params = array(), $pending = \false)
|
634 |
+
{
|
635 |
+
$this->assureId();
|
636 |
+
$param_types = array();
|
637 |
+
$enums = array();
|
638 |
+
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_GET, '/negative_keyword_lists', new \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject(), 'EDGE', array(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
639 |
+
$request->addParams($params);
|
640 |
+
$request->addFields($fields);
|
641 |
+
return $pending ? $request : $request->execute();
|
642 |
+
}
|
643 |
public function getOfflineConversionDataSets(array $fields = array(), array $params = array(), $pending = \false)
|
644 |
{
|
645 |
$this->assureId();
|
950 |
$request->addFields($fields);
|
951 |
return $pending ? $request : $request->execute();
|
952 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
953 |
public function getSelf(array $fields = array(), array $params = array(), $pending = \false)
|
954 |
{
|
955 |
$this->assureId();
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/{PlayableContent.php → BusinessImage.php}
RENAMED
@@ -28,7 +28,7 @@ use PYS_PRO_GLOBAL\FacebookAds\ApiRequest;
|
|
28 |
use PYS_PRO_GLOBAL\FacebookAds\Cursor;
|
29 |
use PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface;
|
30 |
use PYS_PRO_GLOBAL\FacebookAds\TypeChecker;
|
31 |
-
use PYS_PRO_GLOBAL\FacebookAds\Object\Fields\
|
32 |
/**
|
33 |
* This class is auto-generated.
|
34 |
*
|
@@ -37,21 +37,14 @@ use PYS_PRO_GLOBAL\FacebookAds\Object\Fields\PlayableContentFields;
|
|
37 |
* pull request for this class.
|
38 |
*
|
39 |
*/
|
40 |
-
class
|
41 |
{
|
42 |
/**
|
43 |
-
* @
|
44 |
-
*/
|
45 |
-
protected function getEndpoint()
|
46 |
-
{
|
47 |
-
return 'adplayables';
|
48 |
-
}
|
49 |
-
/**
|
50 |
-
* @return PlayableContentFields
|
51 |
*/
|
52 |
public static function getFieldsEnum()
|
53 |
{
|
54 |
-
return \PYS_PRO_GLOBAL\FacebookAds\Object\Fields\
|
55 |
}
|
56 |
protected static function getReferencedEnums()
|
57 |
{
|
@@ -63,7 +56,7 @@ class PlayableContent extends \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObj
|
|
63 |
$this->assureId();
|
64 |
$param_types = array();
|
65 |
$enums = array();
|
66 |
-
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_GET, '/', new \PYS_PRO_GLOBAL\FacebookAds\Object\
|
67 |
$request->addParams($params);
|
68 |
$request->addFields($fields);
|
69 |
return $pending ? $request : $request->execute();
|
28 |
use PYS_PRO_GLOBAL\FacebookAds\Cursor;
|
29 |
use PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface;
|
30 |
use PYS_PRO_GLOBAL\FacebookAds\TypeChecker;
|
31 |
+
use PYS_PRO_GLOBAL\FacebookAds\Object\Fields\BusinessImageFields;
|
32 |
/**
|
33 |
* This class is auto-generated.
|
34 |
*
|
37 |
* pull request for this class.
|
38 |
*
|
39 |
*/
|
40 |
+
class BusinessImage extends \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject
|
41 |
{
|
42 |
/**
|
43 |
+
* @return BusinessImageFields
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
*/
|
45 |
public static function getFieldsEnum()
|
46 |
{
|
47 |
+
return \PYS_PRO_GLOBAL\FacebookAds\Object\Fields\BusinessImageFields::getInstance();
|
48 |
}
|
49 |
protected static function getReferencedEnums()
|
50 |
{
|
56 |
$this->assureId();
|
57 |
$param_types = array();
|
58 |
$enums = array();
|
59 |
+
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_GET, '/', new \PYS_PRO_GLOBAL\FacebookAds\Object\BusinessImage(), 'NODE', \PYS_PRO_GLOBAL\FacebookAds\Object\BusinessImage::getFieldsEnum()->getValues(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
60 |
$request->addParams($params);
|
61 |
$request->addFields($fields);
|
62 |
return $pending ? $request : $request->execute();
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/BusinessManagedPartnerEligibility.php
ADDED
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Copyright (c) 2015-present, Facebook, Inc. All rights reserved.
|
5 |
+
*
|
6 |
+
* You are hereby granted a non-exclusive, worldwide, royalty-free license to
|
7 |
+
* use, copy, modify, and distribute this software in source code or binary
|
8 |
+
* form for use in connection with the web services and APIs provided by
|
9 |
+
* Facebook.
|
10 |
+
*
|
11 |
+
* As with any software that integrates with the Facebook platform, your use
|
12 |
+
* of this software is subject to the Facebook Developer Principles and
|
13 |
+
* Policies [http://developers.facebook.com/policy/]. This copyright notice
|
14 |
+
* shall be included in all copies or substantial portions of the software.
|
15 |
+
*
|
16 |
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
17 |
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
18 |
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
19 |
+
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
20 |
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
21 |
+
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
22 |
+
* DEALINGS IN THE SOFTWARE.
|
23 |
+
*
|
24 |
+
*/
|
25 |
+
namespace PYS_PRO_GLOBAL\FacebookAds\Object;
|
26 |
+
|
27 |
+
use PYS_PRO_GLOBAL\FacebookAds\ApiRequest;
|
28 |
+
use PYS_PRO_GLOBAL\FacebookAds\Cursor;
|
29 |
+
use PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface;
|
30 |
+
use PYS_PRO_GLOBAL\FacebookAds\TypeChecker;
|
31 |
+
use PYS_PRO_GLOBAL\FacebookAds\Object\Fields\BusinessManagedPartnerEligibilityFields;
|
32 |
+
/**
|
33 |
+
* This class is auto-generated.
|
34 |
+
*
|
35 |
+
* For any issues or feature requests related to this class, please let us know
|
36 |
+
* on github and we'll fix in our codegen framework. We'll not be able to accept
|
37 |
+
* pull request for this class.
|
38 |
+
*
|
39 |
+
*/
|
40 |
+
class BusinessManagedPartnerEligibility extends \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractObject
|
41 |
+
{
|
42 |
+
/**
|
43 |
+
* @return BusinessManagedPartnerEligibilityFields
|
44 |
+
*/
|
45 |
+
public static function getFieldsEnum()
|
46 |
+
{
|
47 |
+
return \PYS_PRO_GLOBAL\FacebookAds\Object\Fields\BusinessManagedPartnerEligibilityFields::getInstance();
|
48 |
+
}
|
49 |
+
protected static function getReferencedEnums()
|
50 |
+
{
|
51 |
+
$ref_enums = array();
|
52 |
+
return $ref_enums;
|
53 |
+
}
|
54 |
+
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Canvas.php
CHANGED
@@ -71,6 +71,16 @@ class Canvas extends \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject
|
|
71 |
$request->addFields($fields);
|
72 |
return $pending ? $request : $request->execute();
|
73 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
74 |
public function deleteSelf(array $fields = array(), array $params = array(), $pending = \false)
|
75 |
{
|
76 |
$this->assureId();
|
71 |
$request->addFields($fields);
|
72 |
return $pending ? $request : $request->execute();
|
73 |
}
|
74 |
+
public function getPreviews(array $fields = array(), array $params = array(), $pending = \false)
|
75 |
+
{
|
76 |
+
$this->assureId();
|
77 |
+
$param_types = array('user_ids' => 'list<int>');
|
78 |
+
$enums = array();
|
79 |
+
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_GET, '/previews', new \PYS_PRO_GLOBAL\FacebookAds\Object\TextWithEntities(), 'EDGE', \PYS_PRO_GLOBAL\FacebookAds\Object\TextWithEntities::getFieldsEnum()->getValues(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
80 |
+
$request->addParams($params);
|
81 |
+
$request->addFields($fields);
|
82 |
+
return $pending ? $request : $request->execute();
|
83 |
+
}
|
84 |
public function deleteSelf(array $fields = array(), array $params = array(), $pending = \false)
|
85 |
{
|
86 |
$this->assureId();
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/ChatPlugin.php
ADDED
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Copyright (c) 2015-present, Facebook, Inc. All rights reserved.
|
5 |
+
*
|
6 |
+
* You are hereby granted a non-exclusive, worldwide, royalty-free license to
|
7 |
+
* use, copy, modify, and distribute this software in source code or binary
|
8 |
+
* form for use in connection with the web services and APIs provided by
|
9 |
+
* Facebook.
|
10 |
+
*
|
11 |
+
* As with any software that integrates with the Facebook platform, your use
|
12 |
+
* of this software is subject to the Facebook Developer Principles and
|
13 |
+
* Policies [http://developers.facebook.com/policy/]. This copyright notice
|
14 |
+
* shall be included in all copies or substantial portions of the software.
|
15 |
+
*
|
16 |
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
17 |
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
18 |
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
19 |
+
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
20 |
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
21 |
+
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
22 |
+
* DEALINGS IN THE SOFTWARE.
|
23 |
+
*
|
24 |
+
*/
|
25 |
+
namespace PYS_PRO_GLOBAL\FacebookAds\Object;
|
26 |
+
|
27 |
+
use PYS_PRO_GLOBAL\FacebookAds\ApiRequest;
|
28 |
+
use PYS_PRO_GLOBAL\FacebookAds\Cursor;
|
29 |
+
use PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface;
|
30 |
+
use PYS_PRO_GLOBAL\FacebookAds\TypeChecker;
|
31 |
+
use PYS_PRO_GLOBAL\FacebookAds\Object\Fields\ChatPluginFields;
|
32 |
+
/**
|
33 |
+
* This class is auto-generated.
|
34 |
+
*
|
35 |
+
* For any issues or feature requests related to this class, please let us know
|
36 |
+
* on github and we'll fix in our codegen framework. We'll not be able to accept
|
37 |
+
* pull request for this class.
|
38 |
+
*
|
39 |
+
*/
|
40 |
+
class ChatPlugin extends \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractObject
|
41 |
+
{
|
42 |
+
/**
|
43 |
+
* @return ChatPluginFields
|
44 |
+
*/
|
45 |
+
public static function getFieldsEnum()
|
46 |
+
{
|
47 |
+
return \PYS_PRO_GLOBAL\FacebookAds\Object\Fields\ChatPluginFields::getInstance();
|
48 |
+
}
|
49 |
+
protected static function getReferencedEnums()
|
50 |
+
{
|
51 |
+
$ref_enums = array();
|
52 |
+
return $ref_enums;
|
53 |
+
}
|
54 |
+
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/CloudGame.php
ADDED
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Copyright (c) 2015-present, Facebook, Inc. All rights reserved.
|
5 |
+
*
|
6 |
+
* You are hereby granted a non-exclusive, worldwide, royalty-free license to
|
7 |
+
* use, copy, modify, and distribute this software in source code or binary
|
8 |
+
* form for use in connection with the web services and APIs provided by
|
9 |
+
* Facebook.
|
10 |
+
*
|
11 |
+
* As with any software that integrates with the Facebook platform, your use
|
12 |
+
* of this software is subject to the Facebook Developer Principles and
|
13 |
+
* Policies [http://developers.facebook.com/policy/]. This copyright notice
|
14 |
+
* shall be included in all copies or substantial portions of the software.
|
15 |
+
*
|
16 |
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
17 |
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
18 |
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
19 |
+
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
20 |
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
21 |
+
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
22 |
+
* DEALINGS IN THE SOFTWARE.
|
23 |
+
*
|
24 |
+
*/
|
25 |
+
namespace PYS_PRO_GLOBAL\FacebookAds\Object;
|
26 |
+
|
27 |
+
use PYS_PRO_GLOBAL\FacebookAds\ApiRequest;
|
28 |
+
use PYS_PRO_GLOBAL\FacebookAds\Cursor;
|
29 |
+
use PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface;
|
30 |
+
use PYS_PRO_GLOBAL\FacebookAds\TypeChecker;
|
31 |
+
use PYS_PRO_GLOBAL\FacebookAds\Object\Fields\CloudGameFields;
|
32 |
+
/**
|
33 |
+
* This class is auto-generated.
|
34 |
+
*
|
35 |
+
* For any issues or feature requests related to this class, please let us know
|
36 |
+
* on github and we'll fix in our codegen framework. We'll not be able to accept
|
37 |
+
* pull request for this class.
|
38 |
+
*
|
39 |
+
*/
|
40 |
+
class CloudGame extends \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject
|
41 |
+
{
|
42 |
+
/**
|
43 |
+
* @return CloudGameFields
|
44 |
+
*/
|
45 |
+
public static function getFieldsEnum()
|
46 |
+
{
|
47 |
+
return \PYS_PRO_GLOBAL\FacebookAds\Object\Fields\CloudGameFields::getInstance();
|
48 |
+
}
|
49 |
+
protected static function getReferencedEnums()
|
50 |
+
{
|
51 |
+
$ref_enums = array();
|
52 |
+
return $ref_enums;
|
53 |
+
}
|
54 |
+
public function getSelf(array $fields = array(), array $params = array(), $pending = \false)
|
55 |
+
{
|
56 |
+
$this->assureId();
|
57 |
+
$param_types = array();
|
58 |
+
$enums = array();
|
59 |
+
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_GET, '/', new \PYS_PRO_GLOBAL\FacebookAds\Object\CloudGame(), 'NODE', \PYS_PRO_GLOBAL\FacebookAds\Object\CloudGame::getFieldsEnum()->getValues(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
60 |
+
$request->addParams($params);
|
61 |
+
$request->addFields($fields);
|
62 |
+
return $pending ? $request : $request->execute();
|
63 |
+
}
|
64 |
+
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/CommerceMerchantSettings.php
CHANGED
@@ -156,13 +156,23 @@ class CommerceMerchantSettings extends \PYS_PRO_GLOBAL\FacebookAds\Object\Abstra
|
|
156 |
public function createShippingProfile(array $fields = array(), array $params = array(), $pending = \false)
|
157 |
{
|
158 |
$this->assureId();
|
159 |
-
$param_types = array('handling_time' => 'map', 'is_default_shipping_profile' => 'bool', 'name' => 'string', 'reference_id' => 'string', 'shipping_destinations' => 'list<map>');
|
160 |
$enums = array();
|
161 |
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_POST, '/shipping_profiles', new \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject(), 'EDGE', array(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
162 |
$request->addParams($params);
|
163 |
$request->addFields($fields);
|
164 |
return $pending ? $request : $request->execute();
|
165 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
166 |
public function getTaxSettings(array $fields = array(), array $params = array(), $pending = \false)
|
167 |
{
|
168 |
$this->assureId();
|
156 |
public function createShippingProfile(array $fields = array(), array $params = array(), $pending = \false)
|
157 |
{
|
158 |
$this->assureId();
|
159 |
+
$param_types = array('handling_time' => 'map', 'is_default' => 'bool', 'is_default_shipping_profile' => 'bool', 'name' => 'string', 'reference_id' => 'string', 'shipping_destinations' => 'list<map>');
|
160 |
$enums = array();
|
161 |
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_POST, '/shipping_profiles', new \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject(), 'EDGE', array(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
162 |
$request->addParams($params);
|
163 |
$request->addFields($fields);
|
164 |
return $pending ? $request : $request->execute();
|
165 |
}
|
166 |
+
public function getShops(array $fields = array(), array $params = array(), $pending = \false)
|
167 |
+
{
|
168 |
+
$this->assureId();
|
169 |
+
$param_types = array();
|
170 |
+
$enums = array();
|
171 |
+
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_GET, '/shops', new \PYS_PRO_GLOBAL\FacebookAds\Object\Shop(), 'EDGE', \PYS_PRO_GLOBAL\FacebookAds\Object\Shop::getFieldsEnum()->getValues(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
172 |
+
$request->addParams($params);
|
173 |
+
$request->addFields($fields);
|
174 |
+
return $pending ? $request : $request->execute();
|
175 |
+
}
|
176 |
public function getTaxSettings(array $fields = array(), array $params = array(), $pending = \false)
|
177 |
{
|
178 |
$this->assureId();
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/CommerceOrder.php
CHANGED
@@ -170,7 +170,7 @@ class CommerceOrder extends \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObjec
|
|
170 |
public function createShipment(array $fields = array(), array $params = array(), $pending = \false)
|
171 |
{
|
172 |
$this->assureId();
|
173 |
-
$param_types = array('external_redemption_link' => 'string', 'external_shipment_id' => 'string', 'fulfillment' => 'map', 'idempotency_key' => 'string', 'items' => 'list<map>', 'merchant_order_reference' => 'string', 'shipment_origin_postal_code' => 'string', 'shipping_tax_details' => 'map', 'tracking_info' => 'map');
|
174 |
$enums = array();
|
175 |
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_POST, '/shipments', new \PYS_PRO_GLOBAL\FacebookAds\Object\CommerceOrder(), 'EDGE', \PYS_PRO_GLOBAL\FacebookAds\Object\CommerceOrder::getFieldsEnum()->getValues(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
176 |
$request->addParams($params);
|
170 |
public function createShipment(array $fields = array(), array $params = array(), $pending = \false)
|
171 |
{
|
172 |
$this->assureId();
|
173 |
+
$param_types = array('external_redemption_link' => 'string', 'external_shipment_id' => 'string', 'fulfillment' => 'map', 'idempotency_key' => 'string', 'items' => 'list<map>', 'merchant_order_reference' => 'string', 'shipment_origin_postal_code' => 'string', 'shipping_tax_details' => 'map', 'should_use_default_fulfillment_location' => 'bool', 'tracking_info' => 'map');
|
174 |
$enums = array();
|
175 |
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_POST, '/shipments', new \PYS_PRO_GLOBAL\FacebookAds\Object\CommerceOrder(), 'EDGE', \PYS_PRO_GLOBAL\FacebookAds\Object\CommerceOrder::getFieldsEnum()->getValues(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
176 |
$request->addParams($params);
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Event.php
CHANGED
@@ -34,11 +34,6 @@ use PYS_PRO_GLOBAL\FacebookAds\Object\Values\EventEventStateFilterValues;
|
|
34 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\EventOnlineEventFormatValues;
|
35 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\EventTimeFilterValues;
|
36 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\EventTypeValues;
|
37 |
-
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\LiveVideoProjectionValues;
|
38 |
-
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\LiveVideoSpatialAudioFormatValues;
|
39 |
-
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\LiveVideoStatusValues;
|
40 |
-
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\LiveVideoStereoscopicModeValues;
|
41 |
-
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\LiveVideoStreamTypeValues;
|
42 |
/**
|
43 |
* This class is auto-generated.
|
44 |
*
|
@@ -99,9 +94,9 @@ class Event extends \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject
|
|
99 |
public function createLiveVideo(array $fields = array(), array $params = array(), $pending = \false)
|
100 |
{
|
101 |
$this->assureId();
|
102 |
-
$param_types = array('content_tags' => 'list<string>', 'description' => 'string', 'enable_backup_ingest' => 'bool', 'encoding_settings' => 'string', 'fisheye_video_cropped' => 'bool', 'front_z_rotation' => 'float', 'is_audio_only' => 'bool', 'is_spherical' => 'bool', 'live_encoders' => 'list<string>', 'original_fov' => 'unsigned int', '
|
103 |
-
$enums = array('projection_enum' =>
|
104 |
-
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_POST, '/
|
105 |
$request->addParams($params);
|
106 |
$request->addFields($fields);
|
107 |
return $pending ? $request : $request->execute();
|
34 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\EventOnlineEventFormatValues;
|
35 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\EventTimeFilterValues;
|
36 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\EventTypeValues;
|
|
|
|
|
|
|
|
|
|
|
37 |
/**
|
38 |
* This class is auto-generated.
|
39 |
*
|
94 |
public function createLiveVideo(array $fields = array(), array $params = array(), $pending = \false)
|
95 |
{
|
96 |
$this->assureId();
|
97 |
+
$param_types = array('content_tags' => 'list<string>', 'description' => 'string', 'enable_backup_ingest' => 'bool', 'encoding_settings' => 'string', 'fisheye_video_cropped' => 'bool', 'front_z_rotation' => 'float', 'is_audio_only' => 'bool', 'is_spherical' => 'bool', 'live_encoders' => 'list<string>', 'original_fov' => 'unsigned int', 'privacy' => 'string', 'projection' => 'projection_enum', 'published' => 'bool', 'schedule_custom_profile_image' => 'file', 'spatial_audio_format' => 'spatial_audio_format_enum', 'status' => 'status_enum', 'stereoscopic_mode' => 'stereoscopic_mode_enum', 'stop_on_delete_stream' => 'bool', 'stream_type' => 'stream_type_enum', 'title' => 'string');
|
98 |
+
$enums = array('projection_enum' => array('CUBEMAP', 'EQUIRECTANGULAR', 'HALF_EQUIRECTANGULAR'), 'spatial_audio_format_enum' => array('ambiX_4'), 'status_enum' => array('LIVE_NOW', 'SCHEDULED_CANCELED', 'SCHEDULED_LIVE', 'SCHEDULED_UNPUBLISHED', 'UNPUBLISHED'), 'stereoscopic_mode_enum' => array('LEFT_RIGHT', 'MONO', 'TOP_BOTTOM'), 'stream_type_enum' => array('AMBIENT', 'REGULAR'));
|
99 |
+
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_POST, '/livevideos', new \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject(), 'EDGE', array(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
100 |
$request->addParams($params);
|
101 |
$request->addFields($fields);
|
102 |
return $pending ? $request : $request->execute();
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AREffectsBatchStatusFields.php
ADDED
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Copyright (c) 2015-present, Facebook, Inc. All rights reserved.
|
5 |
+
*
|
6 |
+
* You are hereby granted a non-exclusive, worldwide, royalty-free license to
|
7 |
+
* use, copy, modify, and distribute this software in source code or binary
|
8 |
+
* form for use in connection with the web services and APIs provided by
|
9 |
+
* Facebook.
|
10 |
+
*
|
11 |
+
* As with any software that integrates with the Facebook platform, your use
|
12 |
+
* of this software is subject to the Facebook Developer Principles and
|
13 |
+
* Policies [http://developers.facebook.com/policy/]. This copyright notice
|
14 |
+
* shall be included in all copies or substantial portions of the software.
|
15 |
+
*
|
16 |
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
17 |
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
18 |
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
19 |
+
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
20 |
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
21 |
+
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
22 |
+
* DEALINGS IN THE SOFTWARE.
|
23 |
+
*
|
24 |
+
*/
|
25 |
+
namespace PYS_PRO_GLOBAL\FacebookAds\Object\Fields;
|
26 |
+
|
27 |
+
use PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum;
|
28 |
+
/**
|
29 |
+
* This class is auto-generated.
|
30 |
+
*
|
31 |
+
* For any issues or feature requests related to this class, please let us know
|
32 |
+
* on github and we'll fix in our codegen framework. We'll not be able to accept
|
33 |
+
* pull request for this class.
|
34 |
+
*
|
35 |
+
*/
|
36 |
+
class AREffectsBatchStatusFields extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
37 |
+
{
|
38 |
+
const ERRORS = 'errors';
|
39 |
+
const PRODUCT_GROUPS = 'product_groups';
|
40 |
+
const STATUS = 'status';
|
41 |
+
public function getFieldTypes()
|
42 |
+
{
|
43 |
+
return array('errors' => 'list<string>', 'product_groups' => 'list<Object>', 'status' => 'string');
|
44 |
+
}
|
45 |
+
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AdAccountDeliveryEstimateFields.php
CHANGED
@@ -38,9 +38,12 @@ class AdAccountDeliveryEstimateFields extends \PYS_PRO_GLOBAL\FacebookAds\Enum\A
|
|
38 |
const DAILY_OUTCOMES_CURVE = 'daily_outcomes_curve';
|
39 |
const ESTIMATE_DAU = 'estimate_dau';
|
40 |
const ESTIMATE_MAU = 'estimate_mau';
|
|
|
|
|
41 |
const ESTIMATE_READY = 'estimate_ready';
|
|
|
42 |
public function getFieldTypes()
|
43 |
{
|
44 |
-
return array('daily_outcomes_curve' => 'list<OutcomePredictionPoint>', 'estimate_dau' => 'int', 'estimate_mau' => 'int', 'estimate_ready' => 'bool');
|
45 |
}
|
46 |
}
|
38 |
const DAILY_OUTCOMES_CURVE = 'daily_outcomes_curve';
|
39 |
const ESTIMATE_DAU = 'estimate_dau';
|
40 |
const ESTIMATE_MAU = 'estimate_mau';
|
41 |
+
const ESTIMATE_MAU_LOWER_BOUND = 'estimate_mau_lower_bound';
|
42 |
+
const ESTIMATE_MAU_UPPER_BOUND = 'estimate_mau_upper_bound';
|
43 |
const ESTIMATE_READY = 'estimate_ready';
|
44 |
+
const TARGETING_OPTIMIZATION_TYPES = 'targeting_optimization_types';
|
45 |
public function getFieldTypes()
|
46 |
{
|
47 |
+
return array('daily_outcomes_curve' => 'list<OutcomePredictionPoint>', 'estimate_dau' => 'int', 'estimate_mau' => 'int', 'estimate_mau_lower_bound' => 'int', 'estimate_mau_upper_bound' => 'int', 'estimate_ready' => 'bool', 'targeting_optimization_types' => 'map<string, int>');
|
48 |
}
|
49 |
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AdAccountFields.php
CHANGED
@@ -57,11 +57,13 @@ class AdAccountFields extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
|
57 |
const DISABLE_REASON = 'disable_reason';
|
58 |
const END_ADVERTISER = 'end_advertiser';
|
59 |
const END_ADVERTISER_NAME = 'end_advertiser_name';
|
|
|
60 |
const EXTENDED_CREDIT_INVOICE_GROUP = 'extended_credit_invoice_group';
|
61 |
const FAILED_DELIVERY_CHECKS = 'failed_delivery_checks';
|
62 |
const FB_ENTITY = 'fb_entity';
|
63 |
const FUNDING_SOURCE = 'funding_source';
|
64 |
const FUNDING_SOURCE_DETAILS = 'funding_source_details';
|
|
|
65 |
const HAS_MIGRATED_PERMISSIONS = 'has_migrated_permissions';
|
66 |
const HAS_PAGE_AUTHORIZED_ADACCOUNT = 'has_page_authorized_adaccount';
|
67 |
const ID = 'id';
|
@@ -69,7 +71,6 @@ class AdAccountFields extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
|
69 |
const IS_ATTRIBUTION_SPEC_SYSTEM_DEFAULT = 'is_attribution_spec_system_default';
|
70 |
const IS_DIRECT_DEALS_ENABLED = 'is_direct_deals_enabled';
|
71 |
const IS_IN_3DS_AUTHORIZATION_ENABLED_MARKET = 'is_in_3ds_authorization_enabled_market';
|
72 |
-
const IS_IN_MIDDLE_OF_LOCAL_ENTITY_MIGRATION = 'is_in_middle_of_local_entity_migration';
|
73 |
const IS_NOTIFICATIONS_ENABLED = 'is_notifications_enabled';
|
74 |
const IS_PERSONAL = 'is_personal';
|
75 |
const IS_PREPAY_ACCOUNT = 'is_prepay_account';
|
@@ -96,6 +97,6 @@ class AdAccountFields extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
|
96 |
const USER_TOS_ACCEPTED = 'user_tos_accepted';
|
97 |
public function getFieldTypes()
|
98 |
{
|
99 |
-
return array('account_id' => 'string', 'account_status' => 'unsigned int', 'ad_account_promotable_objects' => 'AdAccountPromotableObjects', 'age' => 'float', 'agency_client_declaration' => 'AgencyClientDeclaration', 'amount_spent' => 'string', 'attribution_spec' => 'list<AttributionSpec>', 'balance' => 'string', 'business' => 'Business', 'business_city' => 'string', 'business_country_code' => 'string', 'business_name' => 'string', 'business_state' => 'string', 'business_street' => 'string', 'business_street2' => 'string', 'business_zip' => 'string', 'capabilities' => 'list<string>', 'created_time' => 'datetime', 'currency' => 'string', 'disable_reason' => 'unsigned int', 'end_advertiser' => 'string', 'end_advertiser_name' => 'string', 'extended_credit_invoice_group' => 'ExtendedCreditInvoiceGroup', 'failed_delivery_checks' => 'list<DeliveryCheck>', 'fb_entity' => 'unsigned int', 'funding_source' => 'string', 'funding_source_details' => 'FundingSourceDetails', '
|
100 |
}
|
101 |
}
|
57 |
const DISABLE_REASON = 'disable_reason';
|
58 |
const END_ADVERTISER = 'end_advertiser';
|
59 |
const END_ADVERTISER_NAME = 'end_advertiser_name';
|
60 |
+
const EXISTING_CUSTOMERS = 'existing_customers';
|
61 |
const EXTENDED_CREDIT_INVOICE_GROUP = 'extended_credit_invoice_group';
|
62 |
const FAILED_DELIVERY_CHECKS = 'failed_delivery_checks';
|
63 |
const FB_ENTITY = 'fb_entity';
|
64 |
const FUNDING_SOURCE = 'funding_source';
|
65 |
const FUNDING_SOURCE_DETAILS = 'funding_source_details';
|
66 |
+
const HAS_ADVERTISER_OPTED_IN_ODAX = 'has_advertiser_opted_in_odax';
|
67 |
const HAS_MIGRATED_PERMISSIONS = 'has_migrated_permissions';
|
68 |
const HAS_PAGE_AUTHORIZED_ADACCOUNT = 'has_page_authorized_adaccount';
|
69 |
const ID = 'id';
|
71 |
const IS_ATTRIBUTION_SPEC_SYSTEM_DEFAULT = 'is_attribution_spec_system_default';
|
72 |
const IS_DIRECT_DEALS_ENABLED = 'is_direct_deals_enabled';
|
73 |
const IS_IN_3DS_AUTHORIZATION_ENABLED_MARKET = 'is_in_3ds_authorization_enabled_market';
|
|
|
74 |
const IS_NOTIFICATIONS_ENABLED = 'is_notifications_enabled';
|
75 |
const IS_PERSONAL = 'is_personal';
|
76 |
const IS_PREPAY_ACCOUNT = 'is_prepay_account';
|
97 |
const USER_TOS_ACCEPTED = 'user_tos_accepted';
|
98 |
public function getFieldTypes()
|
99 |
{
|
100 |
+
return array('account_id' => 'string', 'account_status' => 'unsigned int', 'ad_account_promotable_objects' => 'AdAccountPromotableObjects', 'age' => 'float', 'agency_client_declaration' => 'AgencyClientDeclaration', 'amount_spent' => 'string', 'attribution_spec' => 'list<AttributionSpec>', 'balance' => 'string', 'business' => 'Business', 'business_city' => 'string', 'business_country_code' => 'string', 'business_name' => 'string', 'business_state' => 'string', 'business_street' => 'string', 'business_street2' => 'string', 'business_zip' => 'string', 'capabilities' => 'list<string>', 'created_time' => 'datetime', 'currency' => 'string', 'disable_reason' => 'unsigned int', 'end_advertiser' => 'string', 'end_advertiser_name' => 'string', 'existing_customers' => 'list<string>', 'extended_credit_invoice_group' => 'ExtendedCreditInvoiceGroup', 'failed_delivery_checks' => 'list<DeliveryCheck>', 'fb_entity' => 'unsigned int', 'funding_source' => 'string', 'funding_source_details' => 'FundingSourceDetails', 'has_advertiser_opted_in_odax' => 'bool', 'has_migrated_permissions' => 'bool', 'has_page_authorized_adaccount' => 'bool', 'id' => 'string', 'io_number' => 'string', 'is_attribution_spec_system_default' => 'bool', 'is_direct_deals_enabled' => 'bool', 'is_in_3ds_authorization_enabled_market' => 'bool', 'is_notifications_enabled' => 'bool', 'is_personal' => 'unsigned int', 'is_prepay_account' => 'bool', 'is_tax_id_required' => 'bool', 'line_numbers' => 'list<int>', 'media_agency' => 'string', 'min_campaign_group_spend_cap' => 'string', 'min_daily_budget' => 'unsigned int', 'name' => 'string', 'offsite_pixels_tos_accepted' => 'bool', 'owner' => 'string', 'partner' => 'string', 'rf_spec' => 'ReachFrequencySpec', 'show_checkout_experience' => 'bool', 'spend_cap' => 'string', 'tax_id' => 'string', 'tax_id_status' => 'unsigned int', 'tax_id_type' => 'string', 'timezone_id' => 'unsigned int', 'timezone_name' => 'string', 'timezone_offset_hours_utc' => 'float', 'tos_accepted' => 'map<string, int>', 'user_tasks' => 'list<string>', 'user_tos_accepted' => 'map<string, int>');
|
101 |
}
|
102 |
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AdAccountReachEstimateFields.php
CHANGED
@@ -37,8 +37,10 @@ class AdAccountReachEstimateFields extends \PYS_PRO_GLOBAL\FacebookAds\Enum\Abst
|
|
37 |
{
|
38 |
const ESTIMATE_READY = 'estimate_ready';
|
39 |
const USERS = 'users';
|
|
|
|
|
40 |
public function getFieldTypes()
|
41 |
{
|
42 |
-
return array('estimate_ready' => 'bool', 'users' => 'int');
|
43 |
}
|
44 |
}
|
37 |
{
|
38 |
const ESTIMATE_READY = 'estimate_ready';
|
39 |
const USERS = 'users';
|
40 |
+
const USERS_LOWER_BOUND = 'users_lower_bound';
|
41 |
+
const USERS_UPPER_BOUND = 'users_upper_bound';
|
42 |
public function getFieldTypes()
|
43 |
{
|
44 |
+
return array('estimate_ready' => 'bool', 'users' => 'int', 'users_lower_bound' => 'int', 'users_upper_bound' => 'int');
|
45 |
}
|
46 |
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AdAccountTargetingUnifiedFields.php
CHANGED
@@ -36,6 +36,8 @@ use PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum;
|
|
36 |
class AdAccountTargetingUnifiedFields extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
37 |
{
|
38 |
const AUDIENCE_SIZE = 'audience_size';
|
|
|
|
|
39 |
const CONVERSION_LIFT = 'conversion_lift';
|
40 |
const DESCRIPTION = 'description';
|
41 |
const ID = 'id';
|
@@ -59,6 +61,6 @@ class AdAccountTargetingUnifiedFields extends \PYS_PRO_GLOBAL\FacebookAds\Enum\A
|
|
59 |
const VALID = 'valid';
|
60 |
public function getFieldTypes()
|
61 |
{
|
62 |
-
return array('audience_size' => 'unsigned int', 'conversion_lift' => 'float', 'description' => 'string', 'id' => 'string', 'img' => 'string', 'info' => 'string', 'info_title' => 'string', 'is_recommendation' => 'bool', 'key' => 'string', 'link' => 'string', 'name' => 'string', 'parent' => 'string', 'partner' => 'string', 'path' => 'list<string>', 'performance_rating' => 'unsigned int', 'raw_name' => 'string', 'recommendation_model' => 'string', 'search_interest_id' => 'string', 'source' => 'string', 'spend' => 'float', 'type' => 'string', 'valid' => 'bool');
|
63 |
}
|
64 |
}
|
36 |
class AdAccountTargetingUnifiedFields extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
37 |
{
|
38 |
const AUDIENCE_SIZE = 'audience_size';
|
39 |
+
const AUDIENCE_SIZE_LOWER_BOUND = 'audience_size_lower_bound';
|
40 |
+
const AUDIENCE_SIZE_UPPER_BOUND = 'audience_size_upper_bound';
|
41 |
const CONVERSION_LIFT = 'conversion_lift';
|
42 |
const DESCRIPTION = 'description';
|
43 |
const ID = 'id';
|
61 |
const VALID = 'valid';
|
62 |
public function getFieldTypes()
|
63 |
{
|
64 |
+
return array('audience_size' => 'unsigned int', 'audience_size_lower_bound' => 'unsigned int', 'audience_size_upper_bound' => 'unsigned int', 'conversion_lift' => 'float', 'description' => 'string', 'id' => 'string', 'img' => 'string', 'info' => 'string', 'info_title' => 'string', 'is_recommendation' => 'bool', 'key' => 'string', 'link' => 'string', 'name' => 'string', 'parent' => 'string', 'partner' => 'string', 'path' => 'list<string>', 'performance_rating' => 'unsigned int', 'raw_name' => 'string', 'recommendation_model' => 'string', 'search_interest_id' => 'string', 'source' => 'string', 'spend' => 'float', 'type' => 'string', 'valid' => 'bool');
|
65 |
}
|
66 |
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AdAssetFeedSpecFields.php
CHANGED
@@ -45,16 +45,19 @@ class AdAssetFeedSpecFields extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnu
|
|
45 |
const CAPTIONS = 'captions';
|
46 |
const CAROUSELS = 'carousels';
|
47 |
const DESCRIPTIONS = 'descriptions';
|
|
|
48 |
const GROUPS = 'groups';
|
49 |
const IMAGES = 'images';
|
50 |
const LINK_URLS = 'link_urls';
|
|
|
51 |
const ONSITE_DESTINATIONS = 'onsite_destinations';
|
52 |
const OPTIMIZATION_TYPE = 'optimization_type';
|
|
|
53 |
const POSTS = 'posts';
|
54 |
const TITLES = 'titles';
|
55 |
const VIDEOS = 'videos';
|
56 |
public function getFieldTypes()
|
57 |
{
|
58 |
-
return array('ad_formats' => 'list<string>', 'additional_data' => 'Object', 'asset_customization_rules' => 'list<Object>', 'autotranslate' => 'list<string>', 'bodies' => 'list<AdAssetFeedSpecBody>', 'call_to_action_types' => 'list<CallToActionTypes>', 'call_to_actions' => 'list<Object>', 'captions' => 'list<AdAssetFeedSpecCaption>', 'carousels' => 'list<Object>', 'descriptions' => 'list<AdAssetFeedSpecDescription>', 'groups' => 'list<AdAssetFeedSpecGroupRule>', 'images' => 'list<AdAssetFeedSpecImage>', 'link_urls' => 'list<AdAssetFeedSpecLinkURL>', 'onsite_destinations' => 'list<Object>', 'optimization_type' => 'string', 'posts' => 'list<Object>', 'titles' => 'list<AdAssetFeedSpecTitle>', 'videos' => 'list<AdAssetFeedSpecVideo>');
|
59 |
}
|
60 |
}
|
45 |
const CAPTIONS = 'captions';
|
46 |
const CAROUSELS = 'carousels';
|
47 |
const DESCRIPTIONS = 'descriptions';
|
48 |
+
const EVENTS = 'events';
|
49 |
const GROUPS = 'groups';
|
50 |
const IMAGES = 'images';
|
51 |
const LINK_URLS = 'link_urls';
|
52 |
+
const OFFER_IDS = 'offer_ids';
|
53 |
const ONSITE_DESTINATIONS = 'onsite_destinations';
|
54 |
const OPTIMIZATION_TYPE = 'optimization_type';
|
55 |
+
const PHONE_DATA_IDS = 'phone_data_ids';
|
56 |
const POSTS = 'posts';
|
57 |
const TITLES = 'titles';
|
58 |
const VIDEOS = 'videos';
|
59 |
public function getFieldTypes()
|
60 |
{
|
61 |
+
return array('ad_formats' => 'list<string>', 'additional_data' => 'Object', 'asset_customization_rules' => 'list<Object>', 'autotranslate' => 'list<string>', 'bodies' => 'list<AdAssetFeedSpecBody>', 'call_to_action_types' => 'list<CallToActionTypes>', 'call_to_actions' => 'list<Object>', 'captions' => 'list<AdAssetFeedSpecCaption>', 'carousels' => 'list<Object>', 'descriptions' => 'list<AdAssetFeedSpecDescription>', 'events' => 'list<Object>', 'groups' => 'list<AdAssetFeedSpecGroupRule>', 'images' => 'list<AdAssetFeedSpecImage>', 'link_urls' => 'list<AdAssetFeedSpecLinkURL>', 'offer_ids' => 'list<Object>', 'onsite_destinations' => 'list<Object>', 'optimization_type' => 'string', 'phone_data_ids' => 'list<Object>', 'posts' => 'list<Object>', 'titles' => 'list<AdAssetFeedSpecTitle>', 'videos' => 'list<AdAssetFeedSpecVideo>');
|
62 |
}
|
63 |
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AdAsyncRequestSetFields.php
CHANGED
@@ -54,6 +54,6 @@ class AdAsyncRequestSetFields extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractE
|
|
54 |
const AD_SPECS = 'ad_specs';
|
55 |
public function getFieldTypes()
|
56 |
{
|
57 |
-
return array('canceled_count' => 'int', 'created_time' => 'datetime', 'error_count' => 'int', 'id' => 'string', 'in_progress_count' => 'int', 'initial_count' => 'unsigned int', 'is_completed' => 'bool', 'name' => 'string', 'notification_mode' => 'NotificationMode', 'notification_result' => 'AdAsyncRequestSetNotificationResult', 'notification_status' => '
|
58 |
}
|
59 |
}
|
54 |
const AD_SPECS = 'ad_specs';
|
55 |
public function getFieldTypes()
|
56 |
{
|
57 |
+
return array('canceled_count' => 'int', 'created_time' => 'datetime', 'error_count' => 'int', 'id' => 'string', 'in_progress_count' => 'int', 'initial_count' => 'unsigned int', 'is_completed' => 'bool', 'name' => 'string', 'notification_mode' => 'NotificationMode', 'notification_result' => 'AdAsyncRequestSetNotificationResult', 'notification_status' => 'string', 'notification_uri' => 'string', 'owner_id' => 'string', 'success_count' => 'int', 'total_count' => 'unsigned int', 'updated_time' => 'datetime', 'ad_specs' => 'list<map>');
|
58 |
}
|
59 |
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AdCampaignDeliveryEstimateFields.php
CHANGED
@@ -38,9 +38,12 @@ class AdCampaignDeliveryEstimateFields extends \PYS_PRO_GLOBAL\FacebookAds\Enum\
|
|
38 |
const DAILY_OUTCOMES_CURVE = 'daily_outcomes_curve';
|
39 |
const ESTIMATE_DAU = 'estimate_dau';
|
40 |
const ESTIMATE_MAU = 'estimate_mau';
|
|
|
|
|
41 |
const ESTIMATE_READY = 'estimate_ready';
|
|
|
42 |
public function getFieldTypes()
|
43 |
{
|
44 |
-
return array('daily_outcomes_curve' => 'list<OutcomePredictionPoint>', 'estimate_dau' => 'int', 'estimate_mau' => 'int', 'estimate_ready' => 'bool');
|
45 |
}
|
46 |
}
|
38 |
const DAILY_OUTCOMES_CURVE = 'daily_outcomes_curve';
|
39 |
const ESTIMATE_DAU = 'estimate_dau';
|
40 |
const ESTIMATE_MAU = 'estimate_mau';
|
41 |
+
const ESTIMATE_MAU_LOWER_BOUND = 'estimate_mau_lower_bound';
|
42 |
+
const ESTIMATE_MAU_UPPER_BOUND = 'estimate_mau_upper_bound';
|
43 |
const ESTIMATE_READY = 'estimate_ready';
|
44 |
+
const TARGETING_OPTIMIZATION_TYPES = 'targeting_optimization_types';
|
45 |
public function getFieldTypes()
|
46 |
{
|
47 |
+
return array('daily_outcomes_curve' => 'list<OutcomePredictionPoint>', 'estimate_dau' => 'int', 'estimate_mau' => 'int', 'estimate_mau_lower_bound' => 'int', 'estimate_mau_upper_bound' => 'int', 'estimate_ready' => 'bool', 'targeting_optimization_types' => 'map<string, int>');
|
48 |
}
|
49 |
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AdPlacePageSetFields.php
CHANGED
@@ -41,10 +41,9 @@ class AdPlacePageSetFields extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
|
41 |
const NAME = 'name';
|
42 |
const PAGES_COUNT = 'pages_count';
|
43 |
const PARENT_PAGE = 'parent_page';
|
44 |
-
const CATEGORY = 'category';
|
45 |
const TARGETED_AREA_TYPE = 'targeted_area_type';
|
46 |
public function getFieldTypes()
|
47 |
{
|
48 |
-
return array('account_id' => 'string', 'id' => 'string', 'location_types' => 'list<string>', 'name' => 'string', 'pages_count' => 'int', 'parent_page' => 'Page', '
|
49 |
}
|
50 |
}
|
41 |
const NAME = 'name';
|
42 |
const PAGES_COUNT = 'pages_count';
|
43 |
const PARENT_PAGE = 'parent_page';
|
|
|
44 |
const TARGETED_AREA_TYPE = 'targeted_area_type';
|
45 |
public function getFieldTypes()
|
46 |
{
|
47 |
+
return array('account_id' => 'string', 'id' => 'string', 'location_types' => 'list<string>', 'name' => 'string', 'pages_count' => 'int', 'parent_page' => 'Page', 'targeted_area_type' => 'TargetedAreaType');
|
48 |
}
|
49 |
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AdRuleFields.php
CHANGED
@@ -45,8 +45,9 @@ class AdRuleFields extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
|
45 |
const SCHEDULE_SPEC = 'schedule_spec';
|
46 |
const STATUS = 'status';
|
47 |
const UPDATED_TIME = 'updated_time';
|
|
|
48 |
public function getFieldTypes()
|
49 |
{
|
50 |
-
return array('account_id' => 'string', 'created_by' => 'User', 'created_time' => 'datetime', 'evaluation_spec' => 'AdRuleEvaluationSpec', 'execution_spec' => 'AdRuleExecutionSpec', 'id' => 'string', 'name' => 'string', 'schedule_spec' => 'AdRuleScheduleSpec', 'status' => 'string', 'updated_time' => 'datetime');
|
51 |
}
|
52 |
}
|
45 |
const SCHEDULE_SPEC = 'schedule_spec';
|
46 |
const STATUS = 'status';
|
47 |
const UPDATED_TIME = 'updated_time';
|
48 |
+
const UI_CREATION_SOURCE = 'ui_creation_source';
|
49 |
public function getFieldTypes()
|
50 |
{
|
51 |
+
return array('account_id' => 'string', 'created_by' => 'User', 'created_time' => 'datetime', 'evaluation_spec' => 'AdRuleEvaluationSpec', 'execution_spec' => 'AdRuleExecutionSpec', 'id' => 'string', 'name' => 'string', 'schedule_spec' => 'AdRuleScheduleSpec', 'status' => 'string', 'updated_time' => 'datetime', 'ui_creation_source' => 'UiCreationSource');
|
52 |
}
|
53 |
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AdSetFields.php
CHANGED
@@ -58,6 +58,7 @@ class AdSetFields extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
|
58 |
const DESTINATION_TYPE = 'destination_type';
|
59 |
const EFFECTIVE_STATUS = 'effective_status';
|
60 |
const END_TIME = 'end_time';
|
|
|
61 |
const FREQUENCY_CONTROL_SPECS = 'frequency_control_specs';
|
62 |
const FULL_FUNNEL_EXPLORATION_MODE = 'full_funnel_exploration_mode';
|
63 |
const ID = 'id';
|
@@ -84,6 +85,7 @@ class AdSetFields extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
|
84 |
const START_TIME = 'start_time';
|
85 |
const STATUS = 'status';
|
86 |
const TARGETING = 'targeting';
|
|
|
87 |
const TIME_BASED_AD_ROTATION_ID_BLOCKS = 'time_based_ad_rotation_id_blocks';
|
88 |
const TIME_BASED_AD_ROTATION_INTERVALS = 'time_based_ad_rotation_intervals';
|
89 |
const UPDATED_TIME = 'updated_time';
|
@@ -101,6 +103,6 @@ class AdSetFields extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
|
101 |
const UPSTREAM_EVENTS = 'upstream_events';
|
102 |
public function getFieldTypes()
|
103 |
{
|
104 |
-
return array('account_id' => 'string', 'adlabels' => 'list<AdLabel>', 'adset_schedule' => 'list<DayPart>', 'asset_feed_id' => 'string', 'attribution_spec' => 'list<AttributionSpec>', 'bid_adjustments' => 'AdBidAdjustments', 'bid_amount' => 'unsigned int', 'bid_constraints' => 'AdCampaignBidConstraint', 'bid_info' => 'map<string, unsigned int>', 'bid_strategy' => 'BidStrategy', 'billing_event' => 'BillingEvent', 'budget_remaining' => 'string', 'campaign' => 'Campaign', 'campaign_id' => 'string', 'configured_status' => 'ConfiguredStatus', 'created_time' => 'datetime', 'creative_sequence' => 'list<string>', 'daily_budget' => 'string', 'daily_min_spend_target' => 'string', 'daily_spend_cap' => 'string', 'destination_type' => 'string', 'effective_status' => 'EffectiveStatus', 'end_time' => 'datetime', 'frequency_control_specs' => 'list<AdCampaignFrequencyControlSpecs>', 'full_funnel_exploration_mode' => 'string', 'id' => 'string', 'instagram_actor_id' => 'string', 'is_dynamic_creative' => 'bool', 'issues_info' => 'list<AdCampaignIssuesInfo>', 'learning_stage_info' => 'AdCampaignLearningStageInfo', 'lifetime_budget' => 'string', 'lifetime_imps' => 'int', 'lifetime_min_spend_target' => 'string', 'lifetime_spend_cap' => 'string', 'multi_optimization_goal_weight' => 'string', 'name' => 'string', 'optimization_goal' => 'OptimizationGoal', 'optimization_sub_event' => 'string', 'pacing_type' => 'list<string>', 'promoted_object' => 'AdPromotedObject', 'recommendations' => 'list<AdRecommendation>', 'recurring_budget_semantics' => 'bool', 'review_feedback' => 'string', 'rf_prediction_id' => 'string', 'source_adset' => 'AdSet', 'source_adset_id' => 'string', 'start_time' => 'datetime', 'status' => 'Status', 'targeting' => 'Targeting', 'time_based_ad_rotation_id_blocks' => 'list<list<int>>', 'time_based_ad_rotation_intervals' => 'list<unsigned int>', 'updated_time' => 'datetime', 'use_new_app_click' => 'bool', 'campaign_spec' => 'Object', 'daily_imps' => 'unsigned int', 'date_format' => 'string', 'execution_options' => 'list<ExecutionOptions>', 'line_number' => 'unsigned int', 'rb_prediction_id' => 'string', 'time_start' => 'datetime', 'time_stop' => 'datetime', 'topline_id' => 'string', 'tune_for_category' => 'TuneForCategory', 'upstream_events' => 'map');
|
105 |
}
|
106 |
}
|
58 |
const DESTINATION_TYPE = 'destination_type';
|
59 |
const EFFECTIVE_STATUS = 'effective_status';
|
60 |
const END_TIME = 'end_time';
|
61 |
+
const EXISTING_CUSTOMER_BUDGET_PERCENTAGE = 'existing_customer_budget_percentage';
|
62 |
const FREQUENCY_CONTROL_SPECS = 'frequency_control_specs';
|
63 |
const FULL_FUNNEL_EXPLORATION_MODE = 'full_funnel_exploration_mode';
|
64 |
const ID = 'id';
|
85 |
const START_TIME = 'start_time';
|
86 |
const STATUS = 'status';
|
87 |
const TARGETING = 'targeting';
|
88 |
+
const TARGETING_OPTIMIZATION_TYPES = 'targeting_optimization_types';
|
89 |
const TIME_BASED_AD_ROTATION_ID_BLOCKS = 'time_based_ad_rotation_id_blocks';
|
90 |
const TIME_BASED_AD_ROTATION_INTERVALS = 'time_based_ad_rotation_intervals';
|
91 |
const UPDATED_TIME = 'updated_time';
|
103 |
const UPSTREAM_EVENTS = 'upstream_events';
|
104 |
public function getFieldTypes()
|
105 |
{
|
106 |
+
return array('account_id' => 'string', 'adlabels' => 'list<AdLabel>', 'adset_schedule' => 'list<DayPart>', 'asset_feed_id' => 'string', 'attribution_spec' => 'list<AttributionSpec>', 'bid_adjustments' => 'AdBidAdjustments', 'bid_amount' => 'unsigned int', 'bid_constraints' => 'AdCampaignBidConstraint', 'bid_info' => 'map<string, unsigned int>', 'bid_strategy' => 'BidStrategy', 'billing_event' => 'BillingEvent', 'budget_remaining' => 'string', 'campaign' => 'Campaign', 'campaign_id' => 'string', 'configured_status' => 'ConfiguredStatus', 'created_time' => 'datetime', 'creative_sequence' => 'list<string>', 'daily_budget' => 'string', 'daily_min_spend_target' => 'string', 'daily_spend_cap' => 'string', 'destination_type' => 'string', 'effective_status' => 'EffectiveStatus', 'end_time' => 'datetime', 'existing_customer_budget_percentage' => 'unsigned int', 'frequency_control_specs' => 'list<AdCampaignFrequencyControlSpecs>', 'full_funnel_exploration_mode' => 'string', 'id' => 'string', 'instagram_actor_id' => 'string', 'is_dynamic_creative' => 'bool', 'issues_info' => 'list<AdCampaignIssuesInfo>', 'learning_stage_info' => 'AdCampaignLearningStageInfo', 'lifetime_budget' => 'string', 'lifetime_imps' => 'int', 'lifetime_min_spend_target' => 'string', 'lifetime_spend_cap' => 'string', 'multi_optimization_goal_weight' => 'string', 'name' => 'string', 'optimization_goal' => 'OptimizationGoal', 'optimization_sub_event' => 'string', 'pacing_type' => 'list<string>', 'promoted_object' => 'AdPromotedObject', 'recommendations' => 'list<AdRecommendation>', 'recurring_budget_semantics' => 'bool', 'review_feedback' => 'string', 'rf_prediction_id' => 'string', 'source_adset' => 'AdSet', 'source_adset_id' => 'string', 'start_time' => 'datetime', 'status' => 'Status', 'targeting' => 'Targeting', 'targeting_optimization_types' => 'map<string, int>', 'time_based_ad_rotation_id_blocks' => 'list<list<int>>', 'time_based_ad_rotation_intervals' => 'list<unsigned int>', 'updated_time' => 'datetime', 'use_new_app_click' => 'bool', 'campaign_spec' => 'Object', 'daily_imps' => 'unsigned int', 'date_format' => 'string', 'execution_options' => 'list<ExecutionOptions>', 'line_number' => 'unsigned int', 'rb_prediction_id' => 'string', 'time_start' => 'datetime', 'time_stop' => 'datetime', 'topline_id' => 'string', 'tune_for_category' => 'TuneForCategory', 'upstream_events' => 'map');
|
107 |
}
|
108 |
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/{ProductFeedUploadDiagnosticsReportFields.php → AdStudyObjectiveOffsiteDatasetsFields.php}
RENAMED
@@ -33,12 +33,12 @@ use PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum;
|
|
33 |
* pull request for this class.
|
34 |
*
|
35 |
*/
|
36 |
-
class
|
37 |
{
|
38 |
-
const
|
39 |
-
const
|
40 |
public function getFieldTypes()
|
41 |
{
|
42 |
-
return array('
|
43 |
}
|
44 |
}
|
33 |
* pull request for this class.
|
34 |
*
|
35 |
*/
|
36 |
+
class AdStudyObjectiveOffsiteDatasetsFields extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
37 |
{
|
38 |
+
const EVENT_NAMES = 'event_names';
|
39 |
+
const ID = 'id';
|
40 |
public function getFieldTypes()
|
41 |
{
|
42 |
+
return array('event_names' => 'list<string>', 'id' => 'string');
|
43 |
}
|
44 |
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AdgroupPlacementSpecificReviewFeedbackFields.php
CHANGED
@@ -61,6 +61,7 @@ class AdgroupPlacementSpecificReviewFeedbackFields extends \PYS_PRO_GLOBAL\Faceb
|
|
61 |
const MARKETPLACE_MOTORS = 'marketplace_motors';
|
62 |
const MARKETPLACE_SHOPS = 'marketplace_shops';
|
63 |
const MAX_REVIEW_PLACEMENTS = 'max_review_placements';
|
|
|
64 |
const PAGE_ADMIN = 'page_admin';
|
65 |
const PRODUCT = 'product';
|
66 |
const PRODUCT_SERVICE = 'product_service';
|
@@ -71,6 +72,6 @@ class AdgroupPlacementSpecificReviewFeedbackFields extends \PYS_PRO_GLOBAL\Faceb
|
|
71 |
const WHATSAPP = 'whatsapp';
|
72 |
public function getFieldTypes()
|
73 |
{
|
74 |
-
return array('account_admin' => 'map<string, string>', 'ad' => 'map<string, string>', 'ads_conversion_experiences' => 'map<string, string>', 'b2c' => 'map<string, string>', 'b2c_commerce_unified' => 'map<string, string>', 'bsg' => 'map<string, string>', 'city_community' => 'map<string, string>', 'commerce' => 'map<string, string>', 'daily_deals' => 'map<string, string>', 'daily_deals_legacy' => 'map<string, string>', 'dpa' => 'map<string, string>', 'dri_copyright' => 'map<string, string>', 'dri_counterfeit' => 'map<string, string>', 'facebook' => 'map<string, string>', 'facebook_pages_live_shopping' => 'map<string, string>', 'independent_work' => 'map<string, string>', 'instagram' => 'map<string, string>', 'instagram_shop' => 'map<string, string>', 'job_search' => 'map<string, string>', 'lead_gen_honeypot' => 'map<string, string>', 'marketplace' => 'map<string, string>', 'marketplace_home_rentals' => 'map<string, string>', 'marketplace_home_sales' => 'map<string, string>', 'marketplace_motors' => 'map<string, string>', 'marketplace_shops' => 'map<string, string>', 'max_review_placements' => 'map<string, string>', 'page_admin' => 'map<string, string>', 'product' => 'map<string, string>', 'product_service' => 'map<string, string>', 'profile' => 'map<string, string>', 'seller' => 'map<string, string>', 'shops' => 'map<string, string>', 'traffic_quality' => 'map<string, string>', 'whatsapp' => 'map<string, string>');
|
75 |
}
|
76 |
}
|
61 |
const MARKETPLACE_MOTORS = 'marketplace_motors';
|
62 |
const MARKETPLACE_SHOPS = 'marketplace_shops';
|
63 |
const MAX_REVIEW_PLACEMENTS = 'max_review_placements';
|
64 |
+
const NEIGHBORHOODS = 'neighborhoods';
|
65 |
const PAGE_ADMIN = 'page_admin';
|
66 |
const PRODUCT = 'product';
|
67 |
const PRODUCT_SERVICE = 'product_service';
|
72 |
const WHATSAPP = 'whatsapp';
|
73 |
public function getFieldTypes()
|
74 |
{
|
75 |
+
return array('account_admin' => 'map<string, string>', 'ad' => 'map<string, string>', 'ads_conversion_experiences' => 'map<string, string>', 'b2c' => 'map<string, string>', 'b2c_commerce_unified' => 'map<string, string>', 'bsg' => 'map<string, string>', 'city_community' => 'map<string, string>', 'commerce' => 'map<string, string>', 'daily_deals' => 'map<string, string>', 'daily_deals_legacy' => 'map<string, string>', 'dpa' => 'map<string, string>', 'dri_copyright' => 'map<string, string>', 'dri_counterfeit' => 'map<string, string>', 'facebook' => 'map<string, string>', 'facebook_pages_live_shopping' => 'map<string, string>', 'independent_work' => 'map<string, string>', 'instagram' => 'map<string, string>', 'instagram_shop' => 'map<string, string>', 'job_search' => 'map<string, string>', 'lead_gen_honeypot' => 'map<string, string>', 'marketplace' => 'map<string, string>', 'marketplace_home_rentals' => 'map<string, string>', 'marketplace_home_sales' => 'map<string, string>', 'marketplace_motors' => 'map<string, string>', 'marketplace_shops' => 'map<string, string>', 'max_review_placements' => 'map<string, string>', 'neighborhoods' => 'map<string, string>', 'page_admin' => 'map<string, string>', 'product' => 'map<string, string>', 'product_service' => 'map<string, string>', 'profile' => 'map<string, string>', 'seller' => 'map<string, string>', 'shops' => 'map<string, string>', 'traffic_quality' => 'map<string, string>', 'whatsapp' => 'map<string, string>');
|
76 |
}
|
77 |
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AdoptablePetFields.php
CHANGED
@@ -63,9 +63,10 @@ class AdoptablePetFields extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
|
63 |
const SHELTER_PHONE = 'shelter_phone';
|
64 |
const SIZE = 'size';
|
65 |
const TERTIARY_COLOR = 'tertiary_color';
|
|
|
66 |
const URL = 'url';
|
67 |
public function getFieldTypes()
|
68 |
{
|
69 |
-
return array('address' => 'Object', 'adoptable_pet_id' => 'string', 'adoption_application_form_url' => 'string', 'age_bucket' => 'string', 'animal_type' => 'string', 'applinks' => 'CatalogItemAppLinks', 'availability' => 'string', 'breed' => 'string', 'category_specific_fields' => 'CatalogSubVerticalList', 'coat_length' => 'string', 'color' => 'string', 'currency' => 'string', 'description' => 'string', 'features' => 'list<string>', 'gender' => 'string', 'id' => 'string', 'image_fetch_status' => 'ImageFetchStatus', 'images' => 'list<string>', 'name' => 'string', 'price' => 'string', 'sanitized_images' => 'list<string>', 'secondary_color' => 'string', 'shelter_email' => 'string', 'shelter_name' => 'string', 'shelter_page_id' => 'Page', 'shelter_phone' => 'string', 'size' => 'string', 'tertiary_color' => 'string', 'url' => 'string');
|
70 |
}
|
71 |
}
|
63 |
const SHELTER_PHONE = 'shelter_phone';
|
64 |
const SIZE = 'size';
|
65 |
const TERTIARY_COLOR = 'tertiary_color';
|
66 |
+
const UNIT_PRICE = 'unit_price';
|
67 |
const URL = 'url';
|
68 |
public function getFieldTypes()
|
69 |
{
|
70 |
+
return array('address' => 'Object', 'adoptable_pet_id' => 'string', 'adoption_application_form_url' => 'string', 'age_bucket' => 'string', 'animal_type' => 'string', 'applinks' => 'CatalogItemAppLinks', 'availability' => 'string', 'breed' => 'string', 'category_specific_fields' => 'CatalogSubVerticalList', 'coat_length' => 'string', 'color' => 'string', 'currency' => 'string', 'description' => 'string', 'features' => 'list<string>', 'gender' => 'string', 'id' => 'string', 'image_fetch_status' => 'ImageFetchStatus', 'images' => 'list<string>', 'name' => 'string', 'price' => 'string', 'sanitized_images' => 'list<string>', 'secondary_color' => 'string', 'shelter_email' => 'string', 'shelter_name' => 'string', 'shelter_page_id' => 'Page', 'shelter_phone' => 'string', 'size' => 'string', 'tertiary_color' => 'string', 'unit_price' => 'Object', 'url' => 'string');
|
71 |
}
|
72 |
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AdsActionStatsFields.php
CHANGED
@@ -63,9 +63,11 @@ class AdsActionStatsFields extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
|
63 |
const INLINE = 'inline';
|
64 |
const INTERACTIVE_COMPONENT_STICKER_ID = 'interactive_component_sticker_id';
|
65 |
const INTERACTIVE_COMPONENT_STICKER_RESPONSE = 'interactive_component_sticker_response';
|
|
|
|
|
66 |
const VALUE = 'value';
|
67 |
public function getFieldTypes()
|
68 |
{
|
69 |
-
return array('1d_click' => 'string', '1d_view' => 'string', '28d_click' => 'string', '28d_view' => 'string', '7d_click' => 'string', '7d_view' => 'string', 'action_brand' => 'string', 'action_canvas_component_id' => 'string', 'action_canvas_component_name' => 'string', 'action_carousel_card_id' => 'string', 'action_carousel_card_name' => 'string', 'action_category' => 'string', 'action_converted_product_id' => 'string', 'action_destination' => 'string', 'action_device' => 'string', 'action_event_channel' => 'string', 'action_link_click_destination' => 'string', 'action_location_code' => 'string', 'action_reaction' => 'string', 'action_target_id' => 'string', 'action_type' => 'string', 'action_video_asset_id' => 'string', 'action_video_sound' => 'string', 'action_video_type' => 'string', 'dda' => 'string', 'inline' => 'string', 'interactive_component_sticker_id' => 'string', 'interactive_component_sticker_response' => 'string', 'value' => 'string');
|
70 |
}
|
71 |
}
|
63 |
const INLINE = 'inline';
|
64 |
const INTERACTIVE_COMPONENT_STICKER_ID = 'interactive_component_sticker_id';
|
65 |
const INTERACTIVE_COMPONENT_STICKER_RESPONSE = 'interactive_component_sticker_response';
|
66 |
+
const SKAN_CLICK = 'skan_click';
|
67 |
+
const SKAN_VIEW = 'skan_view';
|
68 |
const VALUE = 'value';
|
69 |
public function getFieldTypes()
|
70 |
{
|
71 |
+
return array('1d_click' => 'string', '1d_view' => 'string', '28d_click' => 'string', '28d_view' => 'string', '7d_click' => 'string', '7d_view' => 'string', 'action_brand' => 'string', 'action_canvas_component_id' => 'string', 'action_canvas_component_name' => 'string', 'action_carousel_card_id' => 'string', 'action_carousel_card_name' => 'string', 'action_category' => 'string', 'action_converted_product_id' => 'string', 'action_destination' => 'string', 'action_device' => 'string', 'action_event_channel' => 'string', 'action_link_click_destination' => 'string', 'action_location_code' => 'string', 'action_reaction' => 'string', 'action_target_id' => 'string', 'action_type' => 'string', 'action_video_asset_id' => 'string', 'action_video_sound' => 'string', 'action_video_type' => 'string', 'dda' => 'string', 'inline' => 'string', 'interactive_component_sticker_id' => 'string', 'interactive_component_sticker_response' => 'string', 'skan_click' => 'string', 'skan_view' => 'string', 'value' => 'string');
|
72 |
}
|
73 |
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AdsInsightsFields.php
CHANGED
@@ -40,18 +40,12 @@ class AdsInsightsFields extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
|
40 |
const ACCOUNT_NAME = 'account_name';
|
41 |
const ACTION_VALUES = 'action_values';
|
42 |
const ACTIONS = 'actions';
|
43 |
-
const AD_BID_TYPE = 'ad_bid_type';
|
44 |
const AD_BID_VALUE = 'ad_bid_value';
|
45 |
const AD_CLICK_ACTIONS = 'ad_click_actions';
|
46 |
-
const AD_DELIVERY = 'ad_delivery';
|
47 |
const AD_ID = 'ad_id';
|
48 |
const AD_IMPRESSION_ACTIONS = 'ad_impression_actions';
|
49 |
const AD_NAME = 'ad_name';
|
50 |
-
const ADSET_BID_TYPE = 'adset_bid_type';
|
51 |
const ADSET_BID_VALUE = 'adset_bid_value';
|
52 |
-
const ADSET_BUDGET_TYPE = 'adset_budget_type';
|
53 |
-
const ADSET_BUDGET_VALUE = 'adset_budget_value';
|
54 |
-
const ADSET_DELIVERY = 'adset_delivery';
|
55 |
const ADSET_END = 'adset_end';
|
56 |
const ADSET_ID = 'adset_id';
|
57 |
const ADSET_NAME = 'adset_name';
|
@@ -139,6 +133,7 @@ class AdsInsightsFields extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
|
139 |
const REACH = 'reach';
|
140 |
const SOCIAL_SPEND = 'social_spend';
|
141 |
const SPEND = 'spend';
|
|
|
142 |
const UNIQUE_ACTIONS = 'unique_actions';
|
143 |
const UNIQUE_CLICKS = 'unique_clicks';
|
144 |
const UNIQUE_CONVERSIONS = 'unique_conversions';
|
@@ -172,6 +167,6 @@ class AdsInsightsFields extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
|
172 |
const WISH_BID = 'wish_bid';
|
173 |
public function getFieldTypes()
|
174 |
{
|
175 |
-
return array('account_currency' => 'string', 'account_id' => 'string', 'account_name' => 'string', 'action_values' => 'list<AdsActionStats>', 'actions' => 'list<AdsActionStats>', '
|
176 |
}
|
177 |
}
|
40 |
const ACCOUNT_NAME = 'account_name';
|
41 |
const ACTION_VALUES = 'action_values';
|
42 |
const ACTIONS = 'actions';
|
|
|
43 |
const AD_BID_VALUE = 'ad_bid_value';
|
44 |
const AD_CLICK_ACTIONS = 'ad_click_actions';
|
|
|
45 |
const AD_ID = 'ad_id';
|
46 |
const AD_IMPRESSION_ACTIONS = 'ad_impression_actions';
|
47 |
const AD_NAME = 'ad_name';
|
|
|
48 |
const ADSET_BID_VALUE = 'adset_bid_value';
|
|
|
|
|
|
|
49 |
const ADSET_END = 'adset_end';
|
50 |
const ADSET_ID = 'adset_id';
|
51 |
const ADSET_NAME = 'adset_name';
|
133 |
const REACH = 'reach';
|
134 |
const SOCIAL_SPEND = 'social_spend';
|
135 |
const SPEND = 'spend';
|
136 |
+
const TOTAL_POSTBACKS = 'total_postbacks';
|
137 |
const UNIQUE_ACTIONS = 'unique_actions';
|
138 |
const UNIQUE_CLICKS = 'unique_clicks';
|
139 |
const UNIQUE_CONVERSIONS = 'unique_conversions';
|
167 |
const WISH_BID = 'wish_bid';
|
168 |
public function getFieldTypes()
|
169 |
{
|
170 |
+
return array('account_currency' => 'string', 'account_id' => 'string', 'account_name' => 'string', 'action_values' => 'list<AdsActionStats>', 'actions' => 'list<AdsActionStats>', 'ad_bid_value' => 'string', 'ad_click_actions' => 'list<AdsActionStats>', 'ad_id' => 'string', 'ad_impression_actions' => 'list<AdsActionStats>', 'ad_name' => 'string', 'adset_bid_value' => 'string', 'adset_end' => 'string', 'adset_id' => 'string', 'adset_name' => 'string', 'adset_start' => 'string', 'age_targeting' => 'string', 'attribution_setting' => 'string', 'auction_bid' => 'string', 'auction_competitiveness' => 'string', 'auction_max_competitor_bid' => 'string', 'buying_type' => 'string', 'campaign_id' => 'string', 'campaign_name' => 'string', 'canvas_avg_view_percent' => 'string', 'canvas_avg_view_time' => 'string', 'catalog_segment_actions' => 'list<AdsActionStats>', 'catalog_segment_value' => 'list<AdsActionStats>', 'catalog_segment_value_mobile_purchase_roas' => 'list<AdsActionStats>', 'catalog_segment_value_omni_purchase_roas' => 'list<AdsActionStats>', 'catalog_segment_value_website_purchase_roas' => 'list<AdsActionStats>', 'clicks' => 'string', 'conversion_rate_ranking' => 'string', 'conversion_values' => 'list<AdsActionStats>', 'conversions' => 'list<AdsActionStats>', 'converted_product_quantity' => 'list<AdsActionStats>', 'converted_product_value' => 'list<AdsActionStats>', 'cost_per_15_sec_video_view' => 'list<AdsActionStats>', 'cost_per_2_sec_continuous_video_view' => 'list<AdsActionStats>', 'cost_per_action_type' => 'list<AdsActionStats>', 'cost_per_ad_click' => 'list<AdsActionStats>', 'cost_per_conversion' => 'list<AdsActionStats>', 'cost_per_dda_countby_convs' => 'string', 'cost_per_estimated_ad_recallers' => 'string', 'cost_per_inline_link_click' => 'string', 'cost_per_inline_post_engagement' => 'string', 'cost_per_one_thousand_ad_impression' => 'list<AdsActionStats>', 'cost_per_outbound_click' => 'list<AdsActionStats>', 'cost_per_thruplay' => 'list<AdsActionStats>', 'cost_per_unique_action_type' => 'list<AdsActionStats>', 'cost_per_unique_click' => 'string', 'cost_per_unique_conversion' => 'list<AdsActionStats>', 'cost_per_unique_inline_link_click' => 'string', 'cost_per_unique_outbound_click' => 'list<AdsActionStats>', 'cpc' => 'string', 'cpm' => 'string', 'cpp' => 'string', 'created_time' => 'string', 'ctr' => 'string', 'date_start' => 'string', 'date_stop' => 'string', 'dda_countby_convs' => 'string', 'dda_results' => 'list<Object>', 'engagement_rate_ranking' => 'string', 'estimated_ad_recall_rate' => 'string', 'estimated_ad_recall_rate_lower_bound' => 'string', 'estimated_ad_recall_rate_upper_bound' => 'string', 'estimated_ad_recallers' => 'string', 'estimated_ad_recallers_lower_bound' => 'string', 'estimated_ad_recallers_upper_bound' => 'string', 'frequency' => 'string', 'full_view_impressions' => 'string', 'full_view_reach' => 'string', 'gender_targeting' => 'string', 'impressions' => 'string', 'inline_link_click_ctr' => 'string', 'inline_link_clicks' => 'string', 'inline_post_engagement' => 'string', 'instant_experience_clicks_to_open' => 'string', 'instant_experience_clicks_to_start' => 'string', 'instant_experience_outbound_clicks' => 'list<AdsActionStats>', 'interactive_component_tap' => 'list<AdsActionStats>', 'labels' => 'string', 'location' => 'string', 'mobile_app_purchase_roas' => 'list<AdsActionStats>', 'objective' => 'string', 'optimization_goal' => 'string', 'outbound_clicks' => 'list<AdsActionStats>', 'outbound_clicks_ctr' => 'list<AdsActionStats>', 'place_page_name' => 'string', 'purchase_roas' => 'list<AdsActionStats>', 'qualifying_question_qualify_answer_rate' => 'string', 'quality_ranking' => 'string', 'quality_score_ectr' => 'string', 'quality_score_ecvr' => 'string', 'quality_score_organic' => 'string', 'reach' => 'string', 'social_spend' => 'string', 'spend' => 'string', 'total_postbacks' => 'string', 'unique_actions' => 'list<AdsActionStats>', 'unique_clicks' => 'string', 'unique_conversions' => 'list<AdsActionStats>', 'unique_ctr' => 'string', 'unique_inline_link_click_ctr' => 'string', 'unique_inline_link_clicks' => 'string', 'unique_link_clicks_ctr' => 'string', 'unique_outbound_clicks' => 'list<AdsActionStats>', 'unique_outbound_clicks_ctr' => 'list<AdsActionStats>', 'unique_video_continuous_2_sec_watched_actions' => 'list<AdsActionStats>', 'unique_video_view_15_sec' => 'list<AdsActionStats>', 'updated_time' => 'string', 'video_15_sec_watched_actions' => 'list<AdsActionStats>', 'video_30_sec_watched_actions' => 'list<AdsActionStats>', 'video_avg_time_watched_actions' => 'list<AdsActionStats>', 'video_continuous_2_sec_watched_actions' => 'list<AdsActionStats>', 'video_p100_watched_actions' => 'list<AdsActionStats>', 'video_p25_watched_actions' => 'list<AdsActionStats>', 'video_p50_watched_actions' => 'list<AdsActionStats>', 'video_p75_watched_actions' => 'list<AdsActionStats>', 'video_p95_watched_actions' => 'list<AdsActionStats>', 'video_play_actions' => 'list<AdsActionStats>', 'video_play_curve_actions' => 'list<Object>', 'video_play_retention_0_to_15s_actions' => 'list<Object>', 'video_play_retention_20_to_60s_actions' => 'list<Object>', 'video_play_retention_graph_actions' => 'list<Object>', 'video_thruplay_watched_actions' => 'list<AdsActionStats>', 'video_time_watched_actions' => 'list<AdsActionStats>', 'website_ctr' => 'list<AdsActionStats>', 'website_purchase_roas' => 'list<AdsActionStats>', 'wish_bid' => 'string');
|
171 |
}
|
172 |
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AutomotiveModelFields.php
CHANGED
@@ -61,10 +61,11 @@ class AutomotiveModelFields extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnu
|
|
61 |
const TITLE = 'title';
|
62 |
const TRANSMISSION = 'transmission';
|
63 |
const TRIM = 'trim';
|
|
|
64 |
const URL = 'url';
|
65 |
const YEAR = 'year';
|
66 |
public function getFieldTypes()
|
67 |
{
|
68 |
-
return array('applinks' => 'CatalogItemAppLinks', 'automotive_model_id' => 'string', 'availability' => 'string', 'body_style' => 'string', 'category_specific_fields' => 'CatalogSubVerticalList', 'currency' => 'string', 'custom_label_0' => 'string', 'description' => 'string', 'drivetrain' => 'string', 'exterior_color' => 'string', 'finance_description' => 'string', 'finance_type' => 'string', 'fuel_type' => 'string', 'generation' => 'string', 'id' => 'string', 'image_fetch_status' => 'ImageFetchStatus', 'images' => 'list<string>', 'interior_color' => 'string', 'interior_upholstery' => 'string', 'make' => 'string', 'model' => 'string', 'price' => 'string', 'sanitized_images' => 'list<string>', 'title' => 'string', 'transmission' => 'string', 'trim' => 'string', 'url' => 'string', 'year' => 'unsigned int');
|
69 |
}
|
70 |
}
|
61 |
const TITLE = 'title';
|
62 |
const TRANSMISSION = 'transmission';
|
63 |
const TRIM = 'trim';
|
64 |
+
const UNIT_PRICE = 'unit_price';
|
65 |
const URL = 'url';
|
66 |
const YEAR = 'year';
|
67 |
public function getFieldTypes()
|
68 |
{
|
69 |
+
return array('applinks' => 'CatalogItemAppLinks', 'automotive_model_id' => 'string', 'availability' => 'string', 'body_style' => 'string', 'category_specific_fields' => 'CatalogSubVerticalList', 'currency' => 'string', 'custom_label_0' => 'string', 'description' => 'string', 'drivetrain' => 'string', 'exterior_color' => 'string', 'finance_description' => 'string', 'finance_type' => 'string', 'fuel_type' => 'string', 'generation' => 'string', 'id' => 'string', 'image_fetch_status' => 'ImageFetchStatus', 'images' => 'list<string>', 'interior_color' => 'string', 'interior_upholstery' => 'string', 'make' => 'string', 'model' => 'string', 'price' => 'string', 'sanitized_images' => 'list<string>', 'title' => 'string', 'transmission' => 'string', 'trim' => 'string', 'unit_price' => 'Object', 'url' => 'string', 'year' => 'unsigned int');
|
70 |
}
|
71 |
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/BroadTargetingCategoriesFields.php
CHANGED
@@ -41,6 +41,8 @@ class BroadTargetingCategoriesFields extends \PYS_PRO_GLOBAL\FacebookAds\Enum\Ab
|
|
41 |
const PARENT_CATEGORY = 'parent_category';
|
42 |
const PATH = 'path';
|
43 |
const SIZE = 'size';
|
|
|
|
|
44 |
const SOURCE = 'source';
|
45 |
const TYPE = 'type';
|
46 |
const TYPE_NAME = 'type_name';
|
@@ -48,6 +50,6 @@ class BroadTargetingCategoriesFields extends \PYS_PRO_GLOBAL\FacebookAds\Enum\Ab
|
|
48 |
const UNTRANSLATED_PARENT_NAME = 'untranslated_parent_name';
|
49 |
public function getFieldTypes()
|
50 |
{
|
51 |
-
return array('category_description' => 'string', 'id' => 'string', 'name' => 'string', 'parent_category' => 'string', 'path' => 'list<string>', 'size' => 'int', 'source' => 'string', 'type' => 'int', 'type_name' => 'string', 'untranslated_name' => 'string', 'untranslated_parent_name' => 'string');
|
52 |
}
|
53 |
}
|
41 |
const PARENT_CATEGORY = 'parent_category';
|
42 |
const PATH = 'path';
|
43 |
const SIZE = 'size';
|
44 |
+
const SIZE_LOWER_BOUND = 'size_lower_bound';
|
45 |
+
const SIZE_UPPER_BOUND = 'size_upper_bound';
|
46 |
const SOURCE = 'source';
|
47 |
const TYPE = 'type';
|
48 |
const TYPE_NAME = 'type_name';
|
50 |
const UNTRANSLATED_PARENT_NAME = 'untranslated_parent_name';
|
51 |
public function getFieldTypes()
|
52 |
{
|
53 |
+
return array('category_description' => 'string', 'id' => 'string', 'name' => 'string', 'parent_category' => 'string', 'path' => 'list<string>', 'size' => 'int', 'size_lower_bound' => 'int', 'size_upper_bound' => 'int', 'source' => 'string', 'type' => 'int', 'type_name' => 'string', 'untranslated_name' => 'string', 'untranslated_parent_name' => 'string');
|
54 |
}
|
55 |
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/BusinessFields.php
CHANGED
@@ -36,12 +36,13 @@ use PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum;
|
|
36 |
class BusinessFields extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
37 |
{
|
38 |
const BLOCK_OFFLINE_ANALYTICS = 'block_offline_analytics';
|
|
|
|
|
39 |
const CREATED_BY = 'created_by';
|
40 |
const CREATED_TIME = 'created_time';
|
41 |
const EXTENDED_UPDATED_TIME = 'extended_updated_time';
|
42 |
const ID = 'id';
|
43 |
const IS_HIDDEN = 'is_hidden';
|
44 |
-
const IS_INSTAGRAM_ENABLED_IN_FB_ANALYTICS = 'is_instagram_enabled_in_fb_analytics';
|
45 |
const LINK = 'link';
|
46 |
const NAME = 'name';
|
47 |
const PRIMARY_PAGE = 'primary_page';
|
@@ -55,6 +56,6 @@ class BusinessFields extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
|
55 |
const VERTICAL_ID = 'vertical_id';
|
56 |
public function getFieldTypes()
|
57 |
{
|
58 |
-
return array('block_offline_analytics' => 'bool', '
|
59 |
}
|
60 |
}
|
36 |
class BusinessFields extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
37 |
{
|
38 |
const BLOCK_OFFLINE_ANALYTICS = 'block_offline_analytics';
|
39 |
+
const COLLABORATIVE_ADS_MANAGED_PARTNER_BUSINESS_INFO = 'collaborative_ads_managed_partner_business_info';
|
40 |
+
const COLLABORATIVE_ADS_MANAGED_PARTNER_ELIGIBILITY = 'collaborative_ads_managed_partner_eligibility';
|
41 |
const CREATED_BY = 'created_by';
|
42 |
const CREATED_TIME = 'created_time';
|
43 |
const EXTENDED_UPDATED_TIME = 'extended_updated_time';
|
44 |
const ID = 'id';
|
45 |
const IS_HIDDEN = 'is_hidden';
|
|
|
46 |
const LINK = 'link';
|
47 |
const NAME = 'name';
|
48 |
const PRIMARY_PAGE = 'primary_page';
|
56 |
const VERTICAL_ID = 'vertical_id';
|
57 |
public function getFieldTypes()
|
58 |
{
|
59 |
+
return array('block_offline_analytics' => 'bool', 'collaborative_ads_managed_partner_business_info' => 'ManagedPartnerBusiness', 'collaborative_ads_managed_partner_eligibility' => 'BusinessManagedPartnerEligibility', 'created_by' => 'Object', 'created_time' => 'datetime', 'extended_updated_time' => 'datetime', 'id' => 'string', 'is_hidden' => 'bool', 'link' => 'string', 'name' => 'string', 'primary_page' => 'Page', 'profile_picture_uri' => 'string', 'timezone_id' => 'unsigned int', 'two_factor_type' => 'string', 'updated_by' => 'Object', 'updated_time' => 'datetime', 'verification_status' => 'string', 'vertical' => 'string', 'vertical_id' => 'unsigned int');
|
60 |
}
|
61 |
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/{MeasurementUploadEventFields.php → BusinessImageFields.php}
RENAMED
@@ -33,20 +33,20 @@ use PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum;
|
|
33 |
* pull request for this class.
|
34 |
*
|
35 |
*/
|
36 |
-
class
|
37 |
{
|
38 |
-
const
|
39 |
-
const
|
40 |
-
const
|
41 |
-
const
|
42 |
const ID = 'id';
|
43 |
-
const
|
44 |
-
const
|
45 |
-
const
|
46 |
-
const
|
47 |
-
const
|
48 |
public function getFieldTypes()
|
49 |
{
|
50 |
-
return array('
|
51 |
}
|
52 |
}
|
33 |
* pull request for this class.
|
34 |
*
|
35 |
*/
|
36 |
+
class BusinessImageFields extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
37 |
{
|
38 |
+
const BUSINESS = 'business';
|
39 |
+
const CREATION_TIME = 'creation_time';
|
40 |
+
const HASH = 'hash';
|
41 |
+
const HEIGHT = 'height';
|
42 |
const ID = 'id';
|
43 |
+
const MEDIA_LIBRARY_URL = 'media_library_url';
|
44 |
+
const NAME = 'name';
|
45 |
+
const URL = 'url';
|
46 |
+
const URL_128 = 'url_128';
|
47 |
+
const WIDTH = 'width';
|
48 |
public function getFieldTypes()
|
49 |
{
|
50 |
+
return array('business' => 'Business', 'creation_time' => 'datetime', 'hash' => 'string', 'height' => 'int', 'id' => 'string', 'media_library_url' => 'string', 'name' => 'string', 'url' => 'string', 'url_128' => 'string', 'width' => 'int');
|
51 |
}
|
52 |
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/{AdAccountContentFilterLevelsInheritanceFields.php → BusinessManagedPartnerEligibilityFields.php}
RENAMED
@@ -33,14 +33,13 @@ use PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum;
|
|
33 |
* pull request for this class.
|
34 |
*
|
35 |
*/
|
36 |
-
class
|
37 |
{
|
38 |
-
const
|
39 |
-
const
|
40 |
-
const
|
41 |
-
const FACEBOOK_LEVEL = 'facebook_level';
|
42 |
public function getFieldTypes()
|
43 |
{
|
44 |
-
return array('
|
45 |
}
|
46 |
}
|
33 |
* pull request for this class.
|
34 |
*
|
35 |
*/
|
36 |
+
class BusinessManagedPartnerEligibilityFields extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
37 |
{
|
38 |
+
const IS_ELIGIBLE = 'is_eligible';
|
39 |
+
const REASON_CODE = 'reason_code';
|
40 |
+
const REASON_DESCRIPTION = 'reason_description';
|
|
|
41 |
public function getFieldTypes()
|
42 |
{
|
43 |
+
return array('is_eligible' => 'bool', 'reason_code' => 'string', 'reason_description' => 'string');
|
44 |
}
|
45 |
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/CanvasFields.php
CHANGED
@@ -37,7 +37,14 @@ class CanvasFields extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
|
37 |
{
|
38 |
const BACKGROUND_COLOR = 'background_color';
|
39 |
const BODY_ELEMENTS = 'body_elements';
|
|
|
40 |
const CANVAS_LINK = 'canvas_link';
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
const ID = 'id';
|
42 |
const IS_HIDDEN = 'is_hidden';
|
43 |
const IS_PUBLISHED = 'is_published';
|
@@ -45,10 +52,17 @@ class CanvasFields extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
|
45 |
const LINKED_DOCUMENTS = 'linked_documents';
|
46 |
const NAME = 'name';
|
47 |
const OWNER = 'owner';
|
|
|
48 |
const SOURCE_TEMPLATE = 'source_template';
|
|
|
|
|
|
|
|
|
|
|
49 |
const UPDATE_TIME = 'update_time';
|
|
|
50 |
public function getFieldTypes()
|
51 |
{
|
52 |
-
return array('background_color' => 'string', 'body_elements' => 'list<Object>', 'canvas_link' => 'string', 'id' => 'string', 'is_hidden' => 'bool', 'is_published' => 'bool', 'last_editor' => 'User', 'linked_documents' => 'list<Canvas>', 'name' => 'string', 'owner' => 'Page', 'source_template' => 'CanvasTemplate', 'update_time' => 'int');
|
53 |
}
|
54 |
}
|
37 |
{
|
38 |
const BACKGROUND_COLOR = 'background_color';
|
39 |
const BODY_ELEMENTS = 'body_elements';
|
40 |
+
const BUSINESS_ID = 'business_id';
|
41 |
const CANVAS_LINK = 'canvas_link';
|
42 |
+
const COLLECTION_HERO_IMAGE = 'collection_hero_image';
|
43 |
+
const COLLECTION_HERO_VIDEO = 'collection_hero_video';
|
44 |
+
const COLLECTION_THUMBNAILS = 'collection_thumbnails';
|
45 |
+
const ELEMENT_PAYLOAD = 'element_payload';
|
46 |
+
const ELEMENTS = 'elements';
|
47 |
+
const FB_BODY_ELEMENTS = 'fb_body_elements';
|
48 |
const ID = 'id';
|
49 |
const IS_HIDDEN = 'is_hidden';
|
50 |
const IS_PUBLISHED = 'is_published';
|
52 |
const LINKED_DOCUMENTS = 'linked_documents';
|
53 |
const NAME = 'name';
|
54 |
const OWNER = 'owner';
|
55 |
+
const PROPERTY_LIST = 'property_list';
|
56 |
const SOURCE_TEMPLATE = 'source_template';
|
57 |
+
const STORE_URL = 'store_url';
|
58 |
+
const STYLE_LIST = 'style_list';
|
59 |
+
const TAGS = 'tags';
|
60 |
+
const UI_PROPERTY_LIST = 'ui_property_list';
|
61 |
+
const UNUSED_BODY_ELEMENTS = 'unused_body_elements';
|
62 |
const UPDATE_TIME = 'update_time';
|
63 |
+
const USE_RETAILER_ITEM_IDS = 'use_retailer_item_ids';
|
64 |
public function getFieldTypes()
|
65 |
{
|
66 |
+
return array('background_color' => 'string', 'body_elements' => 'list<Object>', 'business_id' => 'string', 'canvas_link' => 'string', 'collection_hero_image' => 'Photo', 'collection_hero_video' => 'AdVideo', 'collection_thumbnails' => 'list<CanvasCollectionThumbnail>', 'element_payload' => 'string', 'elements' => 'list<RichMediaElement>', 'fb_body_elements' => 'list<Object>', 'id' => 'string', 'is_hidden' => 'bool', 'is_published' => 'bool', 'last_editor' => 'User', 'linked_documents' => 'list<Canvas>', 'name' => 'string', 'owner' => 'Page', 'property_list' => 'list<string>', 'source_template' => 'CanvasTemplate', 'store_url' => 'string', 'style_list' => 'list<string>', 'tags' => 'list<string>', 'ui_property_list' => 'list<string>', 'unused_body_elements' => 'list<Object>', 'update_time' => 'int', 'use_retailer_item_ids' => 'bool');
|
67 |
}
|
68 |
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/ChatPluginFields.php
ADDED
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Copyright (c) 2015-present, Facebook, Inc. All rights reserved.
|
5 |
+
*
|
6 |
+
* You are hereby granted a non-exclusive, worldwide, royalty-free license to
|
7 |
+
* use, copy, modify, and distribute this software in source code or binary
|
8 |
+
* form for use in connection with the web services and APIs provided by
|
9 |
+
* Facebook.
|
10 |
+
*
|
11 |
+
* As with any software that integrates with the Facebook platform, your use
|
12 |
+
* of this software is subject to the Facebook Developer Principles and
|
13 |
+
* Policies [http://developers.facebook.com/policy/]. This copyright notice
|
14 |
+
* shall be included in all copies or substantial portions of the software.
|
15 |
+
*
|
16 |
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
17 |
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
18 |
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
19 |
+
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
20 |
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
21 |
+
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
22 |
+
* DEALINGS IN THE SOFTWARE.
|
23 |
+
*
|
24 |
+
*/
|
25 |
+
namespace PYS_PRO_GLOBAL\FacebookAds\Object\Fields;
|
26 |
+
|
27 |
+
use PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum;
|
28 |
+
/**
|
29 |
+
* This class is auto-generated.
|
30 |
+
*
|
31 |
+
* For any issues or feature requests related to this class, please let us know
|
32 |
+
* on github and we'll fix in our codegen framework. We'll not be able to accept
|
33 |
+
* pull request for this class.
|
34 |
+
*
|
35 |
+
*/
|
36 |
+
class ChatPluginFields extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
37 |
+
{
|
38 |
+
const ALIGNMENT = 'alignment';
|
39 |
+
const DESKTOP_BOTTOM_SPACING = 'desktop_bottom_spacing';
|
40 |
+
const DESKTOP_SIDE_SPACING = 'desktop_side_spacing';
|
41 |
+
const ENTRY_POINT_ICON = 'entry_point_icon';
|
42 |
+
const ENTRY_POINT_LABEL = 'entry_point_label';
|
43 |
+
const GREETING_DIALOG_DISPLAY = 'greeting_dialog_display';
|
44 |
+
const GUEST_CHAT_MODE = 'guest_chat_mode';
|
45 |
+
const MOBILE_BOTTOM_SPACING = 'mobile_bottom_spacing';
|
46 |
+
const MOBILE_CHAT_DISPLAY = 'mobile_chat_display';
|
47 |
+
const MOBILE_SIDE_SPACING = 'mobile_side_spacing';
|
48 |
+
const THEME_COLOR = 'theme_color';
|
49 |
+
const WELCOME_SCREEN_GREETING = 'welcome_screen_greeting';
|
50 |
+
public function getFieldTypes()
|
51 |
+
{
|
52 |
+
return array('alignment' => 'string', 'desktop_bottom_spacing' => 'string', 'desktop_side_spacing' => 'string', 'entry_point_icon' => 'string', 'entry_point_label' => 'string', 'greeting_dialog_display' => 'string', 'guest_chat_mode' => 'string', 'mobile_bottom_spacing' => 'string', 'mobile_chat_display' => 'string', 'mobile_side_spacing' => 'string', 'theme_color' => 'string', 'welcome_screen_greeting' => 'string');
|
53 |
+
}
|
54 |
+
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/CloudGameFields.php
ADDED
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Copyright (c) 2015-present, Facebook, Inc. All rights reserved.
|
5 |
+
*
|
6 |
+
* You are hereby granted a non-exclusive, worldwide, royalty-free license to
|
7 |
+
* use, copy, modify, and distribute this software in source code or binary
|
8 |
+
* form for use in connection with the web services and APIs provided by
|
9 |
+
* Facebook.
|
10 |
+
*
|
11 |
+
* As with any software that integrates with the Facebook platform, your use
|
12 |
+
* of this software is subject to the Facebook Developer Principles and
|
13 |
+
* Policies [http://developers.facebook.com/policy/]. This copyright notice
|
14 |
+
* shall be included in all copies or substantial portions of the software.
|
15 |
+
*
|
16 |
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
17 |
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
18 |
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
19 |
+
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
20 |
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
21 |
+
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
22 |
+
* DEALINGS IN THE SOFTWARE.
|
23 |
+
*
|
24 |
+
*/
|
25 |
+
namespace PYS_PRO_GLOBAL\FacebookAds\Object\Fields;
|
26 |
+
|
27 |
+
use PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum;
|
28 |
+
/**
|
29 |
+
* This class is auto-generated.
|
30 |
+
*
|
31 |
+
* For any issues or feature requests related to this class, please let us know
|
32 |
+
* on github and we'll fix in our codegen framework. We'll not be able to accept
|
33 |
+
* pull request for this class.
|
34 |
+
*
|
35 |
+
*/
|
36 |
+
class CloudGameFields extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
37 |
+
{
|
38 |
+
const ID = 'id';
|
39 |
+
const NAME = 'name';
|
40 |
+
const OWNER = 'owner';
|
41 |
+
const PLAYABLE_AD_FILE_SIZE = 'playable_ad_file_size';
|
42 |
+
const PLAYABLE_AD_ORIENTATION = 'playable_ad_orientation';
|
43 |
+
const PLAYABLE_AD_PACKAGE_NAME = 'playable_ad_package_name';
|
44 |
+
const PLAYABLE_AD_REJECT_REASON = 'playable_ad_reject_reason';
|
45 |
+
const PLAYABLE_AD_STATUS = 'playable_ad_status';
|
46 |
+
const PLAYABLE_AD_UPLOAD_TIME = 'playable_ad_upload_time';
|
47 |
+
public function getFieldTypes()
|
48 |
+
{
|
49 |
+
return array('id' => 'string', 'name' => 'string', 'owner' => 'Profile', 'playable_ad_file_size' => 'unsigned int', 'playable_ad_orientation' => 'string', 'playable_ad_package_name' => 'string', 'playable_ad_reject_reason' => 'string', 'playable_ad_status' => 'string', 'playable_ad_upload_time' => 'datetime');
|
50 |
+
}
|
51 |
+
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/CommerceMerchantSettingsFields.php
CHANGED
@@ -56,13 +56,12 @@ class CommerceMerchantSettingsFields extends \PYS_PRO_GLOBAL\FacebookAds\Enum\Ab
|
|
56 |
const PRIVACY_URL_BY_LOCALE = 'privacy_url_by_locale';
|
57 |
const REVIEW_REJECTION_MESSAGES = 'review_rejection_messages';
|
58 |
const REVIEW_REJECTION_REASONS = 'review_rejection_reasons';
|
59 |
-
const REVIEW_STATUS = 'review_status';
|
60 |
const SUPPORTED_CARD_TYPES = 'supported_card_types';
|
61 |
const TERMS = 'terms';
|
62 |
const TERMS_URL_BY_LOCALE = 'terms_url_by_locale';
|
63 |
const WHATSAPP_CHANNEL = 'whatsapp_channel';
|
64 |
public function getFieldTypes()
|
65 |
{
|
66 |
-
return array('braintree_merchant_id' => 'string', 'checkout_message' => 'string', 'contact_email' => 'string', 'cta' => 'string', 'disable_checkout_urls' => 'bool', 'display_name' => 'string', 'external_merchant_id' => 'string', 'facebook_channel' => 'Object', 'feature_eligibility' => 'Object', 'has_discount_code' => 'bool', 'has_onsite_intent' => 'bool', 'id' => 'string', 'instagram_channel' => 'Object', 'merchant_alert_email' => 'string', 'merchant_page' => 'Profile', 'merchant_status' => 'string', 'onsite_commerce_merchant' => 'Object', 'payment_provider' => 'string', 'privacy_url_by_locale' => 'map<string, string>', 'review_rejection_messages' => 'list<string>', 'review_rejection_reasons' => 'list<string>', '
|
67 |
}
|
68 |
}
|
56 |
const PRIVACY_URL_BY_LOCALE = 'privacy_url_by_locale';
|
57 |
const REVIEW_REJECTION_MESSAGES = 'review_rejection_messages';
|
58 |
const REVIEW_REJECTION_REASONS = 'review_rejection_reasons';
|
|
|
59 |
const SUPPORTED_CARD_TYPES = 'supported_card_types';
|
60 |
const TERMS = 'terms';
|
61 |
const TERMS_URL_BY_LOCALE = 'terms_url_by_locale';
|
62 |
const WHATSAPP_CHANNEL = 'whatsapp_channel';
|
63 |
public function getFieldTypes()
|
64 |
{
|
65 |
+
return array('braintree_merchant_id' => 'string', 'checkout_message' => 'string', 'contact_email' => 'string', 'cta' => 'string', 'disable_checkout_urls' => 'bool', 'display_name' => 'string', 'external_merchant_id' => 'string', 'facebook_channel' => 'Object', 'feature_eligibility' => 'Object', 'has_discount_code' => 'bool', 'has_onsite_intent' => 'bool', 'id' => 'string', 'instagram_channel' => 'Object', 'merchant_alert_email' => 'string', 'merchant_page' => 'Profile', 'merchant_status' => 'string', 'onsite_commerce_merchant' => 'Object', 'payment_provider' => 'string', 'privacy_url_by_locale' => 'map<string, string>', 'review_rejection_messages' => 'list<string>', 'review_rejection_reasons' => 'list<string>', 'supported_card_types' => 'list<string>', 'terms' => 'string', 'terms_url_by_locale' => 'map<string, string>', 'whatsapp_channel' => 'Object');
|
66 |
}
|
67 |
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/CustomAudienceFields.php
CHANGED
@@ -37,6 +37,8 @@ class CustomAudienceFields extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
|
37 |
{
|
38 |
const ACCOUNT_ID = 'account_id';
|
39 |
const APPROXIMATE_COUNT = 'approximate_count';
|
|
|
|
|
40 |
const CUSTOMER_FILE_SOURCE = 'customer_file_source';
|
41 |
const DATA_SOURCE = 'data_source';
|
42 |
const DATA_SOURCE_TYPES = 'data_source_types';
|
@@ -57,6 +59,7 @@ class CustomAudienceFields extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
|
57 |
const NAME = 'name';
|
58 |
const OPERATION_STATUS = 'operation_status';
|
59 |
const OPT_OUT_LINK = 'opt_out_link';
|
|
|
60 |
const PERMISSION_FOR_ACTIONS = 'permission_for_actions';
|
61 |
const PIXEL_ID = 'pixel_id';
|
62 |
const REGULATED_AUDIENCE_SPEC = 'regulated_audience_spec';
|
@@ -92,6 +95,6 @@ class CustomAudienceFields extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
|
92 |
const VIDEO_GROUP_IDS = 'video_group_ids';
|
93 |
public function getFieldTypes()
|
94 |
{
|
95 |
-
return array('account_id' => 'string', 'approximate_count' => 'int', 'customer_file_source' => 'string', 'data_source' => 'CustomAudienceDataSource', 'data_source_types' => 'string', 'datafile_custom_audience_uploading_status' => 'string', 'delete_time' => 'int', 'delivery_status' => 'CustomAudienceStatus', 'description' => 'string', 'excluded_custom_audiences' => 'list<CustomAudience>', 'external_event_source' => 'AdsPixel', 'household_audience' => 'int', 'id' => 'string', 'included_custom_audiences' => 'list<CustomAudience>', 'is_household' => 'bool', 'is_snapshot' => 'bool', 'is_value_based' => 'bool', 'lookalike_audience_ids' => 'list<string>', 'lookalike_spec' => 'LookalikeSpec', 'name' => 'string', 'operation_status' => 'CustomAudienceStatus', 'opt_out_link' => 'string', 'permission_for_actions' => 'AudiencePermissionForActions', 'pixel_id' => 'string', 'regulated_audience_spec' => 'LookalikeSpec', 'retention_days' => 'int', 'rev_share_policy_id' => 'unsigned int', 'rule' => 'string', 'rule_aggregation' => 'string', 'rule_v2' => 'string', 'seed_audience' => 'int', 'sharing_status' => 'CustomAudienceSharingStatus', 'subtype' => 'string', 'time_content_updated' => 'unsigned int', 'time_created' => 'unsigned int', 'time_updated' => 'unsigned int', 'allowed_domains' => 'list<string>', 'associated_audience_id' => 'unsigned int', 'claim_objective' => 'ClaimObjective', 'content_type' => 'ContentType', 'countries' => 'string', 'creation_params' => 'map', 'dataset_id' => 'string', 'enable_fetch_or_create' => 'bool', 'event_source_group' => 'string', 'event_sources' => 'list<map>', 'exclusions' => 'list<Object>', 'inclusions' => 'list<Object>', 'list_of_accounts' => 'list<unsigned int>', 'origin_audience_id' => 'string', 'parent_audience_id' => 'unsigned int', 'partner_reference_key' => 'string', 'prefill' => 'bool', 'product_set_id' => 'string', 'video_group_ids' => 'list<string>');
|
96 |
}
|
97 |
}
|
37 |
{
|
38 |
const ACCOUNT_ID = 'account_id';
|
39 |
const APPROXIMATE_COUNT = 'approximate_count';
|
40 |
+
const APPROXIMATE_COUNT_LOWER_BOUND = 'approximate_count_lower_bound';
|
41 |
+
const APPROXIMATE_COUNT_UPPER_BOUND = 'approximate_count_upper_bound';
|
42 |
const CUSTOMER_FILE_SOURCE = 'customer_file_source';
|
43 |
const DATA_SOURCE = 'data_source';
|
44 |
const DATA_SOURCE_TYPES = 'data_source_types';
|
59 |
const NAME = 'name';
|
60 |
const OPERATION_STATUS = 'operation_status';
|
61 |
const OPT_OUT_LINK = 'opt_out_link';
|
62 |
+
const PAGE_DELETION_MARKED_DELETE_TIME = 'page_deletion_marked_delete_time';
|
63 |
const PERMISSION_FOR_ACTIONS = 'permission_for_actions';
|
64 |
const PIXEL_ID = 'pixel_id';
|
65 |
const REGULATED_AUDIENCE_SPEC = 'regulated_audience_spec';
|
95 |
const VIDEO_GROUP_IDS = 'video_group_ids';
|
96 |
public function getFieldTypes()
|
97 |
{
|
98 |
+
return array('account_id' => 'string', 'approximate_count' => 'int', 'approximate_count_lower_bound' => 'int', 'approximate_count_upper_bound' => 'int', 'customer_file_source' => 'string', 'data_source' => 'CustomAudienceDataSource', 'data_source_types' => 'string', 'datafile_custom_audience_uploading_status' => 'string', 'delete_time' => 'int', 'delivery_status' => 'CustomAudienceStatus', 'description' => 'string', 'excluded_custom_audiences' => 'list<CustomAudience>', 'external_event_source' => 'AdsPixel', 'household_audience' => 'int', 'id' => 'string', 'included_custom_audiences' => 'list<CustomAudience>', 'is_household' => 'bool', 'is_snapshot' => 'bool', 'is_value_based' => 'bool', 'lookalike_audience_ids' => 'list<string>', 'lookalike_spec' => 'LookalikeSpec', 'name' => 'string', 'operation_status' => 'CustomAudienceStatus', 'opt_out_link' => 'string', 'page_deletion_marked_delete_time' => 'int', 'permission_for_actions' => 'AudiencePermissionForActions', 'pixel_id' => 'string', 'regulated_audience_spec' => 'LookalikeSpec', 'retention_days' => 'int', 'rev_share_policy_id' => 'unsigned int', 'rule' => 'string', 'rule_aggregation' => 'string', 'rule_v2' => 'string', 'seed_audience' => 'int', 'sharing_status' => 'CustomAudienceSharingStatus', 'subtype' => 'string', 'time_content_updated' => 'unsigned int', 'time_created' => 'unsigned int', 'time_updated' => 'unsigned int', 'allowed_domains' => 'list<string>', 'associated_audience_id' => 'unsigned int', 'claim_objective' => 'ClaimObjective', 'content_type' => 'ContentType', 'countries' => 'string', 'creation_params' => 'map', 'dataset_id' => 'string', 'enable_fetch_or_create' => 'bool', 'event_source_group' => 'string', 'event_sources' => 'list<map>', 'exclusions' => 'list<Object>', 'inclusions' => 'list<Object>', 'list_of_accounts' => 'list<unsigned int>', 'origin_audience_id' => 'string', 'parent_audience_id' => 'unsigned int', 'partner_reference_key' => 'string', 'prefill' => 'bool', 'product_set_id' => 'string', 'video_group_ids' => 'list<string>');
|
99 |
}
|
100 |
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/DestinationFields.php
CHANGED
@@ -49,9 +49,10 @@ class DestinationFields extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
|
49 |
const PRICE_CHANGE = 'price_change';
|
50 |
const SANITIZED_IMAGES = 'sanitized_images';
|
51 |
const TYPES = 'types';
|
|
|
52 |
const URL = 'url';
|
53 |
public function getFieldTypes()
|
54 |
{
|
55 |
-
return array('address' => 'string', 'applinks' => 'CatalogItemAppLinks', 'category_specific_fields' => 'CatalogSubVerticalList', 'currency' => 'string', 'description' => 'string', 'destination_id' => 'string', 'id' => 'string', 'image_fetch_status' => 'ImageFetchStatus', 'images' => 'list<string>', 'name' => 'string', 'price' => 'string', 'price_change' => 'string', 'sanitized_images' => 'list<string>', 'types' => 'list<string>', 'url' => 'string');
|
56 |
}
|
57 |
}
|
49 |
const PRICE_CHANGE = 'price_change';
|
50 |
const SANITIZED_IMAGES = 'sanitized_images';
|
51 |
const TYPES = 'types';
|
52 |
+
const UNIT_PRICE = 'unit_price';
|
53 |
const URL = 'url';
|
54 |
public function getFieldTypes()
|
55 |
{
|
56 |
+
return array('address' => 'string', 'applinks' => 'CatalogItemAppLinks', 'category_specific_fields' => 'CatalogSubVerticalList', 'currency' => 'string', 'description' => 'string', 'destination_id' => 'string', 'id' => 'string', 'image_fetch_status' => 'ImageFetchStatus', 'images' => 'list<string>', 'name' => 'string', 'price' => 'string', 'price_change' => 'string', 'sanitized_images' => 'list<string>', 'types' => 'list<string>', 'unit_price' => 'Object', 'url' => 'string');
|
57 |
}
|
58 |
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/EventFields.php
CHANGED
@@ -39,6 +39,7 @@ class EventFields extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
|
39 |
const CAN_GUESTS_INVITE = 'can_guests_invite';
|
40 |
const CATEGORY = 'category';
|
41 |
const COVER = 'cover';
|
|
|
42 |
const DECLINED_COUNT = 'declined_count';
|
43 |
const DESCRIPTION = 'description';
|
44 |
const DISCOUNT_CODE_ENABLED = 'discount_code_enabled';
|
@@ -61,6 +62,7 @@ class EventFields extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
|
61 |
const PLACE = 'place';
|
62 |
const SCHEDULED_PUBLISH_TIME = 'scheduled_publish_time';
|
63 |
const START_TIME = 'start_time';
|
|
|
64 |
const TICKET_URI = 'ticket_uri';
|
65 |
const TICKET_URI_START_SALES_TIME = 'ticket_uri_start_sales_time';
|
66 |
const TICKETING_PRIVACY_URI = 'ticketing_privacy_uri';
|
@@ -70,6 +72,6 @@ class EventFields extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
|
70 |
const UPDATED_TIME = 'updated_time';
|
71 |
public function getFieldTypes()
|
72 |
{
|
73 |
-
return array('attending_count' => 'int', 'can_guests_invite' => 'bool', 'category' => 'Category', 'cover' => 'CoverPhoto', 'declined_count' => 'int', 'description' => 'string', 'discount_code_enabled' => 'bool', 'end_time' => 'string', 'event_times' => 'list<ChildEvent>', 'guest_list_enabled' => 'bool', 'id' => 'string', 'interested_count' => 'int', 'is_canceled' => 'bool', 'is_draft' => 'bool', 'is_online' => 'bool', 'is_page_owned' => 'bool', 'maybe_count' => 'int', 'name' => 'string', 'noreply_count' => 'int', 'online_event_format' => 'OnlineEventFormat', 'online_event_third_party_url' => 'string', 'owner' => 'Object', 'parent_group' => 'Group', 'place' => 'Place', 'scheduled_publish_time' => 'string', 'start_time' => 'string', 'ticket_uri' => 'string', 'ticket_uri_start_sales_time' => 'string', 'ticketing_privacy_uri' => 'string', 'ticketing_terms_uri' => 'string', 'timezone' => 'string', 'type' => 'Type', 'updated_time' => 'datetime');
|
74 |
}
|
75 |
}
|
39 |
const CAN_GUESTS_INVITE = 'can_guests_invite';
|
40 |
const CATEGORY = 'category';
|
41 |
const COVER = 'cover';
|
42 |
+
const CREATED_TIME = 'created_time';
|
43 |
const DECLINED_COUNT = 'declined_count';
|
44 |
const DESCRIPTION = 'description';
|
45 |
const DISCOUNT_CODE_ENABLED = 'discount_code_enabled';
|
62 |
const PLACE = 'place';
|
63 |
const SCHEDULED_PUBLISH_TIME = 'scheduled_publish_time';
|
64 |
const START_TIME = 'start_time';
|
65 |
+
const TICKET_SETTING = 'ticket_setting';
|
66 |
const TICKET_URI = 'ticket_uri';
|
67 |
const TICKET_URI_START_SALES_TIME = 'ticket_uri_start_sales_time';
|
68 |
const TICKETING_PRIVACY_URI = 'ticketing_privacy_uri';
|
72 |
const UPDATED_TIME = 'updated_time';
|
73 |
public function getFieldTypes()
|
74 |
{
|
75 |
+
return array('attending_count' => 'int', 'can_guests_invite' => 'bool', 'category' => 'Category', 'cover' => 'CoverPhoto', 'created_time' => 'datetime', 'declined_count' => 'int', 'description' => 'string', 'discount_code_enabled' => 'bool', 'end_time' => 'string', 'event_times' => 'list<ChildEvent>', 'guest_list_enabled' => 'bool', 'id' => 'string', 'interested_count' => 'int', 'is_canceled' => 'bool', 'is_draft' => 'bool', 'is_online' => 'bool', 'is_page_owned' => 'bool', 'maybe_count' => 'int', 'name' => 'string', 'noreply_count' => 'int', 'online_event_format' => 'OnlineEventFormat', 'online_event_third_party_url' => 'string', 'owner' => 'Object', 'parent_group' => 'Group', 'place' => 'Place', 'scheduled_publish_time' => 'string', 'start_time' => 'string', 'ticket_setting' => 'Object', 'ticket_uri' => 'string', 'ticket_uri_start_sales_time' => 'string', 'ticketing_privacy_uri' => 'string', 'ticketing_terms_uri' => 'string', 'timezone' => 'string', 'type' => 'Type', 'updated_time' => 'datetime');
|
76 |
}
|
77 |
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/FlightFields.php
CHANGED
@@ -51,9 +51,10 @@ class FlightFields extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
|
51 |
const ORIGIN_CITY = 'origin_city';
|
52 |
const PRICE = 'price';
|
53 |
const SANITIZED_IMAGES = 'sanitized_images';
|
|
|
54 |
const URL = 'url';
|
55 |
public function getFieldTypes()
|
56 |
{
|
57 |
-
return array('applinks' => 'CatalogItemAppLinks', 'category_specific_fields' => 'CatalogSubVerticalList', 'currency' => 'string', 'description' => 'string', 'destination_airport' => 'string', 'destination_city' => 'string', 'flight_id' => 'string', 'id' => 'string', 'image_fetch_status' => 'ImageFetchStatus', 'images' => 'list<string>', 'oneway_currency' => 'string', 'oneway_price' => 'string', 'origin_airport' => 'string', 'origin_city' => 'string', 'price' => 'string', 'sanitized_images' => 'list<string>', 'url' => 'string');
|
58 |
}
|
59 |
}
|
51 |
const ORIGIN_CITY = 'origin_city';
|
52 |
const PRICE = 'price';
|
53 |
const SANITIZED_IMAGES = 'sanitized_images';
|
54 |
+
const UNIT_PRICE = 'unit_price';
|
55 |
const URL = 'url';
|
56 |
public function getFieldTypes()
|
57 |
{
|
58 |
+
return array('applinks' => 'CatalogItemAppLinks', 'category_specific_fields' => 'CatalogSubVerticalList', 'currency' => 'string', 'description' => 'string', 'destination_airport' => 'string', 'destination_city' => 'string', 'flight_id' => 'string', 'id' => 'string', 'image_fetch_status' => 'ImageFetchStatus', 'images' => 'list<string>', 'oneway_currency' => 'string', 'oneway_price' => 'string', 'origin_airport' => 'string', 'origin_city' => 'string', 'price' => 'string', 'sanitized_images' => 'list<string>', 'unit_price' => 'Object', 'url' => 'string');
|
59 |
}
|
60 |
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/HomeListingFields.php
CHANGED
@@ -77,10 +77,11 @@ class HomeListingFields extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
|
77 |
const PRICE = 'price';
|
78 |
const PROPERTY_TYPE = 'property_type';
|
79 |
const SANITIZED_IMAGES = 'sanitized_images';
|
|
|
80 |
const URL = 'url';
|
81 |
const YEAR_BUILT = 'year_built';
|
82 |
public function getFieldTypes()
|
83 |
{
|
84 |
-
return array('ac_type' => 'string', 'additional_fees_description' => 'string', 'address' => 'Object', 'agent_company' => 'string', 'agent_email' => 'string', 'agent_fb_page_id' => 'Page', 'agent_name' => 'string', 'agent_phone' => 'string', 'applinks' => 'CatalogItemAppLinks', 'area_size' => 'unsigned int', 'area_unit' => 'string', 'availability' => 'string', 'category_specific_fields' => 'CatalogSubVerticalList', 'co_2_emission_rating_eu' => 'Object', 'currency' => 'string', 'days_on_market' => 'unsigned int', 'description' => 'string', 'energy_rating_eu' => 'Object', 'furnish_type' => 'string', 'group_id' => 'string', 'heating_type' => 'string', 'home_listing_id' => 'string', 'id' => 'string', 'image_fetch_status' => 'ImageFetchStatus', 'images' => 'list<string>', 'laundry_type' => 'string', 'listing_type' => 'string', 'max_currency' => 'string', 'max_price' => 'string', 'min_currency' => 'string', 'min_price' => 'string', 'name' => 'string', 'num_baths' => 'float', 'num_beds' => 'float', 'num_rooms' => 'float', 'num_units' => 'unsigned int', 'parking_type' => 'string', 'partner_verification' => 'string', 'pet_policy' => 'string', 'price' => 'string', 'property_type' => 'string', 'sanitized_images' => 'list<string>', 'url' => 'string', 'year_built' => 'int');
|
85 |
}
|
86 |
}
|
77 |
const PRICE = 'price';
|
78 |
const PROPERTY_TYPE = 'property_type';
|
79 |
const SANITIZED_IMAGES = 'sanitized_images';
|
80 |
+
const UNIT_PRICE = 'unit_price';
|
81 |
const URL = 'url';
|
82 |
const YEAR_BUILT = 'year_built';
|
83 |
public function getFieldTypes()
|
84 |
{
|
85 |
+
return array('ac_type' => 'string', 'additional_fees_description' => 'string', 'address' => 'Object', 'agent_company' => 'string', 'agent_email' => 'string', 'agent_fb_page_id' => 'Page', 'agent_name' => 'string', 'agent_phone' => 'string', 'applinks' => 'CatalogItemAppLinks', 'area_size' => 'unsigned int', 'area_unit' => 'string', 'availability' => 'string', 'category_specific_fields' => 'CatalogSubVerticalList', 'co_2_emission_rating_eu' => 'Object', 'currency' => 'string', 'days_on_market' => 'unsigned int', 'description' => 'string', 'energy_rating_eu' => 'Object', 'furnish_type' => 'string', 'group_id' => 'string', 'heating_type' => 'string', 'home_listing_id' => 'string', 'id' => 'string', 'image_fetch_status' => 'ImageFetchStatus', 'images' => 'list<string>', 'laundry_type' => 'string', 'listing_type' => 'string', 'max_currency' => 'string', 'max_price' => 'string', 'min_currency' => 'string', 'min_price' => 'string', 'name' => 'string', 'num_baths' => 'float', 'num_beds' => 'float', 'num_rooms' => 'float', 'num_units' => 'unsigned int', 'parking_type' => 'string', 'partner_verification' => 'string', 'pet_policy' => 'string', 'price' => 'string', 'property_type' => 'string', 'sanitized_images' => 'list<string>', 'unit_price' => 'Object', 'url' => 'string', 'year_built' => 'int');
|
86 |
}
|
87 |
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/HotelFields.php
CHANGED
@@ -55,10 +55,11 @@ class HotelFields extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
|
55 |
const SALE_PRICE = 'sale_price';
|
56 |
const SANITIZED_IMAGES = 'sanitized_images';
|
57 |
const STAR_RATING = 'star_rating';
|
|
|
58 |
const URL = 'url';
|
59 |
const BASE_PRICE = 'base_price';
|
60 |
public function getFieldTypes()
|
61 |
{
|
62 |
-
return array('address' => 'string', 'applinks' => 'CatalogItemAppLinks', 'brand' => 'string', 'category' => 'string', 'category_specific_fields' => 'CatalogSubVerticalList', 'currency' => 'string', 'description' => 'string', 'guest_ratings' => 'string', 'hotel_id' => 'string', 'id' => 'string', 'image_fetch_status' => 'ImageFetchStatus', 'images' => 'list<string>', 'lowest_base_price' => 'string', 'loyalty_program' => 'string', 'margin_level' => 'unsigned int', 'name' => 'string', 'phone' => 'string', 'sale_price' => 'string', 'sanitized_images' => 'list<string>', 'star_rating' => 'float', 'url' => 'string', 'base_price' => 'unsigned int');
|
63 |
}
|
64 |
}
|
55 |
const SALE_PRICE = 'sale_price';
|
56 |
const SANITIZED_IMAGES = 'sanitized_images';
|
57 |
const STAR_RATING = 'star_rating';
|
58 |
+
const UNIT_PRICE = 'unit_price';
|
59 |
const URL = 'url';
|
60 |
const BASE_PRICE = 'base_price';
|
61 |
public function getFieldTypes()
|
62 |
{
|
63 |
+
return array('address' => 'string', 'applinks' => 'CatalogItemAppLinks', 'brand' => 'string', 'category' => 'string', 'category_specific_fields' => 'CatalogSubVerticalList', 'currency' => 'string', 'description' => 'string', 'guest_ratings' => 'string', 'hotel_id' => 'string', 'id' => 'string', 'image_fetch_status' => 'ImageFetchStatus', 'images' => 'list<string>', 'lowest_base_price' => 'string', 'loyalty_program' => 'string', 'margin_level' => 'unsigned int', 'name' => 'string', 'phone' => 'string', 'sale_price' => 'string', 'sanitized_images' => 'list<string>', 'star_rating' => 'float', 'unit_price' => 'Object', 'url' => 'string', 'base_price' => 'unsigned int');
|
64 |
}
|
65 |
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/IGCommentFields.php
CHANGED
@@ -35,16 +35,18 @@ use PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum;
|
|
35 |
*/
|
36 |
class IGCommentFields extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
37 |
{
|
|
|
38 |
const HIDDEN = 'hidden';
|
39 |
const ID = 'id';
|
40 |
const LIKE_COUNT = 'like_count';
|
41 |
const MEDIA = 'media';
|
|
|
42 |
const TEXT = 'text';
|
43 |
const TIMESTAMP = 'timestamp';
|
44 |
const USER = 'user';
|
45 |
const USERNAME = 'username';
|
46 |
public function getFieldTypes()
|
47 |
{
|
48 |
-
return array('hidden' => 'bool', 'id' => 'string', 'like_count' => 'int', 'media' => 'IGMedia', 'text' => 'string', 'timestamp' => 'datetime', 'user' => 'IGUser', 'username' => 'string');
|
49 |
}
|
50 |
}
|
35 |
*/
|
36 |
class IGCommentFields extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
37 |
{
|
38 |
+
const FROM = 'from';
|
39 |
const HIDDEN = 'hidden';
|
40 |
const ID = 'id';
|
41 |
const LIKE_COUNT = 'like_count';
|
42 |
const MEDIA = 'media';
|
43 |
+
const PARENT_ID = 'parent_id';
|
44 |
const TEXT = 'text';
|
45 |
const TIMESTAMP = 'timestamp';
|
46 |
const USER = 'user';
|
47 |
const USERNAME = 'username';
|
48 |
public function getFieldTypes()
|
49 |
{
|
50 |
+
return array('from' => 'Object', 'hidden' => 'bool', 'id' => 'string', 'like_count' => 'int', 'media' => 'IGMedia', 'parent_id' => 'string', 'text' => 'string', 'timestamp' => 'datetime', 'user' => 'IGUser', 'username' => 'string');
|
51 |
}
|
52 |
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/InvoiceCampaignFields.php
CHANGED
@@ -41,10 +41,11 @@ class InvoiceCampaignFields extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnu
|
|
41 |
const CAMPAIGN_NAME = 'campaign_name';
|
42 |
const CLICKS = 'clicks';
|
43 |
const CONVERSIONS = 'conversions';
|
|
|
44 |
const IMPRESSIONS = 'impressions';
|
45 |
const TAGS = 'tags';
|
46 |
public function getFieldTypes()
|
47 |
{
|
48 |
-
return array('ad_account_id' => 'string', 'billed_amount_details' => 'BilledAmountDetails', 'campaign_id' => 'string', 'campaign_name' => 'string', 'clicks' => 'unsigned int', 'conversions' => 'unsigned int', 'impressions' => 'unsigned int', 'tags' => 'list<string>');
|
49 |
}
|
50 |
}
|
41 |
const CAMPAIGN_NAME = 'campaign_name';
|
42 |
const CLICKS = 'clicks';
|
43 |
const CONVERSIONS = 'conversions';
|
44 |
+
const DESCRIPTION = 'description';
|
45 |
const IMPRESSIONS = 'impressions';
|
46 |
const TAGS = 'tags';
|
47 |
public function getFieldTypes()
|
48 |
{
|
49 |
+
return array('ad_account_id' => 'string', 'billed_amount_details' => 'BilledAmountDetails', 'campaign_id' => 'string', 'campaign_name' => 'string', 'clicks' => 'unsigned int', 'conversions' => 'unsigned int', 'description' => 'string', 'impressions' => 'unsigned int', 'tags' => 'list<string>');
|
50 |
}
|
51 |
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/{ReferralFields.php → JobsJobFields.php}
RENAMED
@@ -33,23 +33,27 @@ use PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum;
|
|
33 |
* pull request for this class.
|
34 |
*
|
35 |
*/
|
36 |
-
class
|
37 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
const ID = 'id';
|
39 |
-
const
|
40 |
-
const
|
41 |
-
const
|
42 |
-
const
|
43 |
-
const
|
44 |
-
const
|
45 |
-
const PRIVACY_POLICY_LINK = 'privacy_policy_link';
|
46 |
-
const PROMOTION_TEXT = 'promotion_text';
|
47 |
-
const RECEIVER_BENEFITS_TEXT = 'receiver_benefits_text';
|
48 |
-
const REFERRAL_LINK_URI = 'referral_link_uri';
|
49 |
-
const SENDER_BENEFITS_TEXT = 'sender_benefits_text';
|
50 |
-
const TERMS_AND_CONDITION_LINK = 'terms_and_condition_link';
|
51 |
public function getFieldTypes()
|
52 |
{
|
53 |
-
return array('
|
54 |
}
|
55 |
}
|
33 |
* pull request for this class.
|
34 |
*
|
35 |
*/
|
36 |
+
class JobsJobFields extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
37 |
{
|
38 |
+
const ADDRESS = 'address';
|
39 |
+
const APPLINKS = 'applinks';
|
40 |
+
const CATEGORY_SPECIFIC_FIELDS = 'category_specific_fields';
|
41 |
+
const CUSTOM_LABEL_0 = 'custom_label_0';
|
42 |
+
const CUSTOM_LABEL_1 = 'custom_label_1';
|
43 |
+
const CUSTOM_LABEL_2 = 'custom_label_2';
|
44 |
+
const CUSTOM_LABEL_3 = 'custom_label_3';
|
45 |
+
const CUSTOM_LABEL_4 = 'custom_label_4';
|
46 |
+
const CUSTOM_LABEL_5 = 'custom_label_5';
|
47 |
+
const CUSTOM_LABEL_6 = 'custom_label_6';
|
48 |
const ID = 'id';
|
49 |
+
const IMAGE_FETCH_STATUS = 'image_fetch_status';
|
50 |
+
const IMAGES = 'images';
|
51 |
+
const JOBS_JOB_ID = 'jobs_job_id';
|
52 |
+
const SANITIZED_IMAGES = 'sanitized_images';
|
53 |
+
const UNIT_PRICE = 'unit_price';
|
54 |
+
const URL = 'url';
|
|
|
|
|
|
|
|
|
|
|
|
|
55 |
public function getFieldTypes()
|
56 |
{
|
57 |
+
return array('address' => 'Object', 'applinks' => 'CatalogItemAppLinks', 'category_specific_fields' => 'CatalogSubVerticalList', 'custom_label_0' => 'string', 'custom_label_1' => 'string', 'custom_label_2' => 'string', 'custom_label_3' => 'string', 'custom_label_4' => 'string', 'custom_label_5' => 'string', 'custom_label_6' => 'string', 'id' => 'string', 'image_fetch_status' => 'ImageFetchStatus', 'images' => 'list<string>', 'jobs_job_id' => 'string', 'sanitized_images' => 'list<string>', 'unit_price' => 'Object', 'url' => 'string');
|
58 |
}
|
59 |
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/LiveVideoFields.php
CHANGED
@@ -54,6 +54,7 @@ class LiveVideoFields extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
|
54 |
const OVERLAY_URL = 'overlay_url';
|
55 |
const PERMALINK_URL = 'permalink_url';
|
56 |
const PLANNED_START_TIME = 'planned_start_time';
|
|
|
57 |
const SECONDS_LEFT = 'seconds_left';
|
58 |
const SECURE_STREAM_URL = 'secure_stream_url';
|
59 |
const STATUS = 'status';
|
@@ -64,6 +65,6 @@ class LiveVideoFields extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
|
64 |
const VIDEO = 'video';
|
65 |
public function getFieldTypes()
|
66 |
{
|
67 |
-
return array('ad_break_config' => 'LiveVideoAdBreakConfig', 'ad_break_failure_reason' => 'string', 'broadcast_start_time' => 'datetime', 'copyright' => 'VideoCopyright', 'creation_time' => 'datetime', 'dash_ingest_url' => 'string', 'dash_preview_url' => 'string', 'description' => 'string', 'embed_html' => '
|
68 |
}
|
69 |
}
|
54 |
const OVERLAY_URL = 'overlay_url';
|
55 |
const PERMALINK_URL = 'permalink_url';
|
56 |
const PLANNED_START_TIME = 'planned_start_time';
|
57 |
+
const RECOMMENDED_ENCODER_SETTINGS = 'recommended_encoder_settings';
|
58 |
const SECONDS_LEFT = 'seconds_left';
|
59 |
const SECURE_STREAM_URL = 'secure_stream_url';
|
60 |
const STATUS = 'status';
|
65 |
const VIDEO = 'video';
|
66 |
public function getFieldTypes()
|
67 |
{
|
68 |
+
return array('ad_break_config' => 'LiveVideoAdBreakConfig', 'ad_break_failure_reason' => 'string', 'broadcast_start_time' => 'datetime', 'copyright' => 'VideoCopyright', 'creation_time' => 'datetime', 'dash_ingest_url' => 'string', 'dash_preview_url' => 'string', 'description' => 'string', 'embed_html' => 'Object', 'from' => 'Object', 'id' => 'string', 'ingest_streams' => 'list<LiveVideoInputStream>', 'is_manual_mode' => 'bool', 'is_reference_only' => 'bool', 'live_encoders' => 'list<LiveEncoder>', 'live_views' => 'unsigned int', 'overlay_url' => 'string', 'permalink_url' => 'Object', 'planned_start_time' => 'datetime', 'recommended_encoder_settings' => 'LiveVideoRecommendedEncoderSettings', 'seconds_left' => 'int', 'secure_stream_url' => 'string', 'status' => 'string', 'stream_url' => 'string', 'targeting' => 'LiveVideoTargeting', 'title' => 'string', 'total_views' => 'string', 'video' => 'AdVideo');
|
69 |
}
|
70 |
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/LiveVideoRecommendedEncoderSettingsFields.php
ADDED
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Copyright (c) 2015-present, Facebook, Inc. All rights reserved.
|
5 |
+
*
|
6 |
+
* You are hereby granted a non-exclusive, worldwide, royalty-free license to
|
7 |
+
* use, copy, modify, and distribute this software in source code or binary
|
8 |
+
* form for use in connection with the web services and APIs provided by
|
9 |
+
* Facebook.
|
10 |
+
*
|
11 |
+
* As with any software that integrates with the Facebook platform, your use
|
12 |
+
* of this software is subject to the Facebook Developer Principles and
|
13 |
+
* Policies [http://developers.facebook.com/policy/]. This copyright notice
|
14 |
+
* shall be included in all copies or substantial portions of the software.
|
15 |
+
*
|
16 |
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
17 |
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
18 |
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
19 |
+
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
20 |
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
21 |
+
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
22 |
+
* DEALINGS IN THE SOFTWARE.
|
23 |
+
*
|
24 |
+
*/
|
25 |
+
namespace PYS_PRO_GLOBAL\FacebookAds\Object\Fields;
|
26 |
+
|
27 |
+
use PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum;
|
28 |
+
/**
|
29 |
+
* This class is auto-generated.
|
30 |
+
*
|
31 |
+
* For any issues or feature requests related to this class, please let us know
|
32 |
+
* on github and we'll fix in our codegen framework. We'll not be able to accept
|
33 |
+
* pull request for this class.
|
34 |
+
*
|
35 |
+
*/
|
36 |
+
class LiveVideoRecommendedEncoderSettingsFields extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
37 |
+
{
|
38 |
+
const AUDIO_CODEC_SETTINGS = 'audio_codec_settings';
|
39 |
+
const STREAMING_PROTOCOL = 'streaming_protocol';
|
40 |
+
const VIDEO_CODEC_SETTINGS = 'video_codec_settings';
|
41 |
+
public function getFieldTypes()
|
42 |
+
{
|
43 |
+
return array('audio_codec_settings' => 'Object', 'streaming_protocol' => 'string', 'video_codec_settings' => 'Object');
|
44 |
+
}
|
45 |
+
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/LocalServiceBusinessFields.php
ADDED
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Copyright (c) 2015-present, Facebook, Inc. All rights reserved.
|
5 |
+
*
|
6 |
+
* You are hereby granted a non-exclusive, worldwide, royalty-free license to
|
7 |
+
* use, copy, modify, and distribute this software in source code or binary
|
8 |
+
* form for use in connection with the web services and APIs provided by
|
9 |
+
* Facebook.
|
10 |
+
*
|
11 |
+
* As with any software that integrates with the Facebook platform, your use
|
12 |
+
* of this software is subject to the Facebook Developer Principles and
|
13 |
+
* Policies [http://developers.facebook.com/policy/]. This copyright notice
|
14 |
+
* shall be included in all copies or substantial portions of the software.
|
15 |
+
*
|
16 |
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
17 |
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
18 |
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
19 |
+
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
20 |
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
21 |
+
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
22 |
+
* DEALINGS IN THE SOFTWARE.
|
23 |
+
*
|
24 |
+
*/
|
25 |
+
namespace PYS_PRO_GLOBAL\FacebookAds\Object\Fields;
|
26 |
+
|
27 |
+
use PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum;
|
28 |
+
/**
|
29 |
+
* This class is auto-generated.
|
30 |
+
*
|
31 |
+
* For any issues or feature requests related to this class, please let us know
|
32 |
+
* on github and we'll fix in our codegen framework. We'll not be able to accept
|
33 |
+
* pull request for this class.
|
34 |
+
*
|
35 |
+
*/
|
36 |
+
class LocalServiceBusinessFields extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
37 |
+
{
|
38 |
+
const ADDRESS = 'address';
|
39 |
+
const APPLINKS = 'applinks';
|
40 |
+
const BRAND = 'brand';
|
41 |
+
const CATEGORY_SPECIFIC_FIELDS = 'category_specific_fields';
|
42 |
+
const CURRENCY = 'currency';
|
43 |
+
const CUSTOM_LABEL_0 = 'custom_label_0';
|
44 |
+
const CUSTOM_LABEL_1 = 'custom_label_1';
|
45 |
+
const CUSTOM_LABEL_2 = 'custom_label_2';
|
46 |
+
const CUSTOM_LABEL_3 = 'custom_label_3';
|
47 |
+
const CUSTOM_LABEL_4 = 'custom_label_4';
|
48 |
+
const DESCRIPTION = 'description';
|
49 |
+
const ID = 'id';
|
50 |
+
const IMAGE_FETCH_STATUS = 'image_fetch_status';
|
51 |
+
const IMAGES = 'images';
|
52 |
+
const LOCAL_SERVICE_BUSINESS_ID = 'local_service_business_id';
|
53 |
+
const PRICE = 'price';
|
54 |
+
const SANITIZED_IMAGES = 'sanitized_images';
|
55 |
+
const TITLE = 'title';
|
56 |
+
const UNIT_PRICE = 'unit_price';
|
57 |
+
const URL = 'url';
|
58 |
+
public function getFieldTypes()
|
59 |
+
{
|
60 |
+
return array('address' => 'Object', 'applinks' => 'CatalogItemAppLinks', 'brand' => 'string', 'category_specific_fields' => 'CatalogSubVerticalList', 'currency' => 'string', 'custom_label_0' => 'string', 'custom_label_1' => 'string', 'custom_label_2' => 'string', 'custom_label_3' => 'string', 'custom_label_4' => 'string', 'description' => 'string', 'id' => 'string', 'image_fetch_status' => 'ImageFetchStatus', 'images' => 'list<string>', 'local_service_business_id' => 'string', 'price' => 'string', 'sanitized_images' => 'list<string>', 'title' => 'string', 'unit_price' => 'Object', 'url' => 'string');
|
61 |
+
}
|
62 |
+
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/ManagedPartnerBusinessFields.php
ADDED
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Copyright (c) 2015-present, Facebook, Inc. All rights reserved.
|
5 |
+
*
|
6 |
+
* You are hereby granted a non-exclusive, worldwide, royalty-free license to
|
7 |
+
* use, copy, modify, and distribute this software in source code or binary
|
8 |
+
* form for use in connection with the web services and APIs provided by
|
9 |
+
* Facebook.
|
10 |
+
*
|
11 |
+
* As with any software that integrates with the Facebook platform, your use
|
12 |
+
* of this software is subject to the Facebook Developer Principles and
|
13 |
+
* Policies [http://developers.facebook.com/policy/]. This copyright notice
|
14 |
+
* shall be included in all copies or substantial portions of the software.
|
15 |
+
*
|
16 |
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
17 |
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
18 |
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
19 |
+
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
20 |
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
21 |
+
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
22 |
+
* DEALINGS IN THE SOFTWARE.
|
23 |
+
*
|
24 |
+
*/
|
25 |
+
namespace PYS_PRO_GLOBAL\FacebookAds\Object\Fields;
|
26 |
+
|
27 |
+
use PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum;
|
28 |
+
/**
|
29 |
+
* This class is auto-generated.
|
30 |
+
*
|
31 |
+
* For any issues or feature requests related to this class, please let us know
|
32 |
+
* on github and we'll fix in our codegen framework. We'll not be able to accept
|
33 |
+
* pull request for this class.
|
34 |
+
*
|
35 |
+
*/
|
36 |
+
class ManagedPartnerBusinessFields extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
37 |
+
{
|
38 |
+
const AD_ACCOUNT = 'ad_account';
|
39 |
+
const CATALOG_SEGMENT = 'catalog_segment';
|
40 |
+
const EXTENDED_CREDIT = 'extended_credit';
|
41 |
+
const PAGE = 'page';
|
42 |
+
const SELLER_BUSINESS_INFO = 'seller_business_info';
|
43 |
+
const SELLER_BUSINESS_STATUS = 'seller_business_status';
|
44 |
+
const TEMPLATE = 'template';
|
45 |
+
public function getFieldTypes()
|
46 |
+
{
|
47 |
+
return array('ad_account' => 'AdAccount', 'catalog_segment' => 'ProductCatalog', 'extended_credit' => 'ExtendedCredit', 'page' => 'Page', 'seller_business_info' => 'Object', 'seller_business_status' => 'string', 'template' => 'list<Object>');
|
48 |
+
}
|
49 |
+
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/MessagingFeatureStatusFields.php
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Copyright (c) 2015-present, Facebook, Inc. All rights reserved.
|
5 |
+
*
|
6 |
+
* You are hereby granted a non-exclusive, worldwide, royalty-free license to
|
7 |
+
* use, copy, modify, and distribute this software in source code or binary
|
8 |
+
* form for use in connection with the web services and APIs provided by
|
9 |
+
* Facebook.
|
10 |
+
*
|
11 |
+
* As with any software that integrates with the Facebook platform, your use
|
12 |
+
* of this software is subject to the Facebook Developer Principles and
|
13 |
+
* Policies [http://developers.facebook.com/policy/]. This copyright notice
|
14 |
+
* shall be included in all copies or substantial portions of the software.
|
15 |
+
*
|
16 |
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
17 |
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
18 |
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
19 |
+
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
20 |
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
21 |
+
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
22 |
+
* DEALINGS IN THE SOFTWARE.
|
23 |
+
*
|
24 |
+
*/
|
25 |
+
namespace PYS_PRO_GLOBAL\FacebookAds\Object\Fields;
|
26 |
+
|
27 |
+
use PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum;
|
28 |
+
/**
|
29 |
+
* This class is auto-generated.
|
30 |
+
*
|
31 |
+
* For any issues or feature requests related to this class, please let us know
|
32 |
+
* on github and we'll fix in our codegen framework. We'll not be able to accept
|
33 |
+
* pull request for this class.
|
34 |
+
*
|
35 |
+
*/
|
36 |
+
class MessagingFeatureStatusFields extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
37 |
+
{
|
38 |
+
const HOP_V2 = 'hop_v2';
|
39 |
+
public function getFieldTypes()
|
40 |
+
{
|
41 |
+
return array('hop_v2' => 'bool');
|
42 |
+
}
|
43 |
+
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/OmegaCustomerTrxFields.php
CHANGED
@@ -36,6 +36,7 @@ use PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum;
|
|
36 |
class OmegaCustomerTrxFields extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
37 |
{
|
38 |
const AD_ACCOUNT_IDS = 'ad_account_ids';
|
|
|
39 |
const AMOUNT = 'amount';
|
40 |
const AMOUNT_DUE = 'amount_due';
|
41 |
const BILLED_AMOUNT_DETAILS = 'billed_amount_details';
|
@@ -56,6 +57,6 @@ class OmegaCustomerTrxFields extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEn
|
|
56 |
const TYPE = 'type';
|
57 |
public function getFieldTypes()
|
58 |
{
|
59 |
-
return array('ad_account_ids' => 'list<string>', 'amount' => 'string', 'amount_due' => 'CurrencyAmount', 'billed_amount_details' => 'BilledAmountDetails', 'billing_period' => 'string', 'campaign' => 'AtlasCampaign', 'cdn_download_uri' => 'string', 'currency' => 'string', 'download_uri' => 'string', 'due_date' => 'datetime', 'entity' => 'string', 'id' => 'string', 'invoice_date' => 'datetime', 'invoice_id' => 'string', 'invoice_type' => 'string', 'liability_type' => 'string', 'payment_status' => 'string', 'payment_term' => 'string', 'type' => 'string');
|
60 |
}
|
61 |
}
|
36 |
class OmegaCustomerTrxFields extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
37 |
{
|
38 |
const AD_ACCOUNT_IDS = 'ad_account_ids';
|
39 |
+
const ADVERTISER_NAME = 'advertiser_name';
|
40 |
const AMOUNT = 'amount';
|
41 |
const AMOUNT_DUE = 'amount_due';
|
42 |
const BILLED_AMOUNT_DETAILS = 'billed_amount_details';
|
57 |
const TYPE = 'type';
|
58 |
public function getFieldTypes()
|
59 |
{
|
60 |
+
return array('ad_account_ids' => 'list<string>', 'advertiser_name' => 'string', 'amount' => 'string', 'amount_due' => 'CurrencyAmount', 'billed_amount_details' => 'BilledAmountDetails', 'billing_period' => 'string', 'campaign' => 'AtlasCampaign', 'cdn_download_uri' => 'string', 'currency' => 'string', 'download_uri' => 'string', 'due_date' => 'datetime', 'entity' => 'string', 'id' => 'string', 'invoice_date' => 'datetime', 'invoice_id' => 'string', 'invoice_type' => 'string', 'liability_type' => 'string', 'payment_status' => 'string', 'payment_term' => 'string', 'type' => 'string');
|
61 |
}
|
62 |
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/PageFields.php
CHANGED
@@ -117,10 +117,12 @@ class PageFields extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
|
117 |
const MEMBERS = 'members';
|
118 |
const MERCHANT_ID = 'merchant_id';
|
119 |
const MERCHANT_REVIEW_STATUS = 'merchant_review_status';
|
|
|
120 |
const MESSENGER_ADS_DEFAULT_ICEBREAKERS = 'messenger_ads_default_icebreakers';
|
121 |
const MESSENGER_ADS_DEFAULT_PAGE_WELCOME_MESSAGE = 'messenger_ads_default_page_welcome_message';
|
122 |
const MESSENGER_ADS_DEFAULT_QUICK_REPLIES = 'messenger_ads_default_quick_replies';
|
123 |
const MESSENGER_ADS_QUICK_REPLIES_TYPE = 'messenger_ads_quick_replies_type';
|
|
|
124 |
const MISSION = 'mission';
|
125 |
const MPG = 'mpg';
|
126 |
const NAME = 'name';
|
@@ -181,6 +183,6 @@ class PageFields extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
|
181 |
const WRITTEN_BY = 'written_by';
|
182 |
public function getFieldTypes()
|
183 |
{
|
184 |
-
return array('about' => 'string', 'access_token' => 'string', 'ad_campaign' => 'AdSet', 'affiliation' => 'string', 'app_id' => 'string', 'artists_we_like' => 'string', 'attire' => 'string', 'awards' => 'string', 'band_interests' => 'string', 'band_members' => 'string', 'best_page' => 'Page', 'bio' => 'string', 'birthday' => 'string', 'booking_agent' => 'string', 'built' => 'string', 'business' => 'Object', 'can_checkin' => 'bool', 'can_post' => 'bool', 'category' => 'string', 'category_list' => 'list<PageCategory>', 'checkins' => 'unsigned int', 'company_overview' => 'string', 'connected_instagram_account' => 'IGUser', 'connected_page_backed_instagram_account' => 'IGUser', 'contact_address' => 'MailingAddress', 'copyright_whitelisted_ig_partners' => 'list<string>', 'country_page_likes' => 'unsigned int', 'cover' => 'CoverPhoto', 'culinary_team' => 'string', 'current_location' => 'string', 'delivery_and_pickup_option_info' => 'list<string>', 'description' => 'string', 'description_html' => 'string', 'differently_open_offerings' => 'map<string, bool>', 'directed_by' => 'string', 'display_subtext' => 'string', 'displayed_message_response_time' => 'string', 'emails' => 'list<string>', 'engagement' => 'Engagement', 'fan_count' => 'unsigned int', 'featured_video' => 'AdVideo', 'features' => 'string', 'followers_count' => 'unsigned int', 'food_styles' => 'list<string>', 'founded' => 'string', 'general_info' => 'string', 'general_manager' => 'string', 'genre' => 'string', 'global_brand_page_name' => 'string', 'global_brand_root_id' => 'string', 'has_added_app' => 'bool', 'has_transitioned_to_new_page_experience' => 'bool', 'has_whatsapp_business_number' => 'bool', 'has_whatsapp_number' => 'bool', 'hometown' => 'string', 'hours' => 'map<string, string>', 'id' => 'string', 'impressum' => 'string', 'influences' => 'string', 'instagram_business_account' => 'IGUser', 'instant_articles_review_status' => 'string', 'is_always_open' => 'bool', 'is_chain' => 'bool', 'is_community_page' => 'bool', 'is_eligible_for_branded_content' => 'bool', 'is_messenger_bot_get_started_enabled' => 'bool', 'is_messenger_platform_bot' => 'bool', 'is_owned' => 'bool', 'is_permanently_closed' => 'bool', 'is_published' => 'bool', 'is_unclaimed' => 'bool', 'is_verified' => 'bool', 'is_webhooks_subscribed' => 'bool', 'keywords' => 'Object', 'leadgen_tos_acceptance_time' => 'datetime', 'leadgen_tos_accepted' => 'bool', 'leadgen_tos_accepting_user' => 'User', 'link' => 'string', 'location' => 'Location', 'members' => 'string', 'merchant_id' => 'string', 'merchant_review_status' => 'string', 'messenger_ads_default_icebreakers' => 'list<string>', 'messenger_ads_default_page_welcome_message' => 'MessengerDestinationPageWelcomeMessage', 'messenger_ads_default_quick_replies' => 'list<string>', 'messenger_ads_quick_replies_type' => 'string', 'mission' => 'string', 'mpg' => 'string', 'name' => 'string', 'name_with_location_descriptor' => 'string', 'network' => 'string', 'new_like_count' => 'unsigned int', 'offer_eligible' => 'bool', 'overall_star_rating' => 'float', 'page_token' => 'string', 'parent_page' => 'Page', 'parking' => 'PageParking', 'payment_options' => 'PagePaymentOptions', 'personal_info' => 'string', 'personal_interests' => 'string', 'pharma_safety_info' => 'string', 'phone' => 'string', 'pickup_options' => 'list<string>', 'place_type' => 'string', 'plot_outline' => 'string', 'preferred_audience' => 'Targeting', 'press_contact' => 'string', 'price_range' => 'string', 'privacy_info_url' => 'string', 'produced_by' => 'string', 'products' => 'string', 'promotion_eligible' => 'bool', 'promotion_ineligible_reason' => 'string', 'public_transit' => 'string', 'rating_count' => 'unsigned int', 'recipient' => 'string', 'record_label' => 'string', 'release_date' => 'string', 'restaurant_services' => 'PageRestaurantServices', 'restaurant_specialties' => 'PageRestaurantSpecialties', 'schedule' => 'string', 'screenplay_by' => 'string', 'season' => 'string', 'single_line_address' => 'string', 'starring' => 'string', 'start_info' => 'PageStartInfo', 'store_code' => 'string', 'store_location_descriptor' => 'string', 'store_number' => 'unsigned int', 'studio' => 'string', 'supports_donate_button_in_live_video' => 'bool', 'supports_instant_articles' => 'bool', 'talking_about_count' => 'unsigned int', 'temporary_status' => 'string', 'unread_message_count' => 'unsigned int', 'unread_notif_count' => 'unsigned int', 'unseen_message_count' => 'unsigned int', 'username' => 'string', 'verification_status' => 'string', 'voip_info' => 'VoipInfo', 'website' => 'string', 'were_here_count' => 'unsigned int', 'whatsapp_number' => 'string', 'written_by' => 'string');
|
185 |
}
|
186 |
}
|
117 |
const MEMBERS = 'members';
|
118 |
const MERCHANT_ID = 'merchant_id';
|
119 |
const MERCHANT_REVIEW_STATUS = 'merchant_review_status';
|
120 |
+
const MESSAGING_FEATURE_STATUS = 'messaging_feature_status';
|
121 |
const MESSENGER_ADS_DEFAULT_ICEBREAKERS = 'messenger_ads_default_icebreakers';
|
122 |
const MESSENGER_ADS_DEFAULT_PAGE_WELCOME_MESSAGE = 'messenger_ads_default_page_welcome_message';
|
123 |
const MESSENGER_ADS_DEFAULT_QUICK_REPLIES = 'messenger_ads_default_quick_replies';
|
124 |
const MESSENGER_ADS_QUICK_REPLIES_TYPE = 'messenger_ads_quick_replies_type';
|
125 |
+
const MINI_SHOP_STOREFRONT = 'mini_shop_storefront';
|
126 |
const MISSION = 'mission';
|
127 |
const MPG = 'mpg';
|
128 |
const NAME = 'name';
|
183 |
const WRITTEN_BY = 'written_by';
|
184 |
public function getFieldTypes()
|
185 |
{
|
186 |
+
return array('about' => 'string', 'access_token' => 'string', 'ad_campaign' => 'AdSet', 'affiliation' => 'string', 'app_id' => 'string', 'artists_we_like' => 'string', 'attire' => 'string', 'awards' => 'string', 'band_interests' => 'string', 'band_members' => 'string', 'best_page' => 'Page', 'bio' => 'string', 'birthday' => 'string', 'booking_agent' => 'string', 'built' => 'string', 'business' => 'Object', 'can_checkin' => 'bool', 'can_post' => 'bool', 'category' => 'string', 'category_list' => 'list<PageCategory>', 'checkins' => 'unsigned int', 'company_overview' => 'string', 'connected_instagram_account' => 'IGUser', 'connected_page_backed_instagram_account' => 'IGUser', 'contact_address' => 'MailingAddress', 'copyright_whitelisted_ig_partners' => 'list<string>', 'country_page_likes' => 'unsigned int', 'cover' => 'CoverPhoto', 'culinary_team' => 'string', 'current_location' => 'string', 'delivery_and_pickup_option_info' => 'list<string>', 'description' => 'string', 'description_html' => 'string', 'differently_open_offerings' => 'map<string, bool>', 'directed_by' => 'string', 'display_subtext' => 'string', 'displayed_message_response_time' => 'string', 'emails' => 'list<string>', 'engagement' => 'Engagement', 'fan_count' => 'unsigned int', 'featured_video' => 'AdVideo', 'features' => 'string', 'followers_count' => 'unsigned int', 'food_styles' => 'list<string>', 'founded' => 'string', 'general_info' => 'string', 'general_manager' => 'string', 'genre' => 'string', 'global_brand_page_name' => 'string', 'global_brand_root_id' => 'string', 'has_added_app' => 'bool', 'has_transitioned_to_new_page_experience' => 'bool', 'has_whatsapp_business_number' => 'bool', 'has_whatsapp_number' => 'bool', 'hometown' => 'string', 'hours' => 'map<string, string>', 'id' => 'string', 'impressum' => 'string', 'influences' => 'string', 'instagram_business_account' => 'IGUser', 'instant_articles_review_status' => 'string', 'is_always_open' => 'bool', 'is_chain' => 'bool', 'is_community_page' => 'bool', 'is_eligible_for_branded_content' => 'bool', 'is_messenger_bot_get_started_enabled' => 'bool', 'is_messenger_platform_bot' => 'bool', 'is_owned' => 'bool', 'is_permanently_closed' => 'bool', 'is_published' => 'bool', 'is_unclaimed' => 'bool', 'is_verified' => 'bool', 'is_webhooks_subscribed' => 'bool', 'keywords' => 'Object', 'leadgen_tos_acceptance_time' => 'datetime', 'leadgen_tos_accepted' => 'bool', 'leadgen_tos_accepting_user' => 'User', 'link' => 'string', 'location' => 'Location', 'members' => 'string', 'merchant_id' => 'string', 'merchant_review_status' => 'string', 'messaging_feature_status' => 'MessagingFeatureStatus', 'messenger_ads_default_icebreakers' => 'list<string>', 'messenger_ads_default_page_welcome_message' => 'MessengerDestinationPageWelcomeMessage', 'messenger_ads_default_quick_replies' => 'list<string>', 'messenger_ads_quick_replies_type' => 'string', 'mini_shop_storefront' => 'Shop', 'mission' => 'string', 'mpg' => 'string', 'name' => 'string', 'name_with_location_descriptor' => 'string', 'network' => 'string', 'new_like_count' => 'unsigned int', 'offer_eligible' => 'bool', 'overall_star_rating' => 'float', 'page_token' => 'string', 'parent_page' => 'Page', 'parking' => 'PageParking', 'payment_options' => 'PagePaymentOptions', 'personal_info' => 'string', 'personal_interests' => 'string', 'pharma_safety_info' => 'string', 'phone' => 'string', 'pickup_options' => 'list<string>', 'place_type' => 'string', 'plot_outline' => 'string', 'preferred_audience' => 'Targeting', 'press_contact' => 'string', 'price_range' => 'string', 'privacy_info_url' => 'string', 'produced_by' => 'string', 'products' => 'string', 'promotion_eligible' => 'bool', 'promotion_ineligible_reason' => 'string', 'public_transit' => 'string', 'rating_count' => 'unsigned int', 'recipient' => 'string', 'record_label' => 'string', 'release_date' => 'string', 'restaurant_services' => 'PageRestaurantServices', 'restaurant_specialties' => 'PageRestaurantSpecialties', 'schedule' => 'string', 'screenplay_by' => 'string', 'season' => 'string', 'single_line_address' => 'string', 'starring' => 'string', 'start_info' => 'PageStartInfo', 'store_code' => 'string', 'store_location_descriptor' => 'string', 'store_number' => 'unsigned int', 'studio' => 'string', 'supports_donate_button_in_live_video' => 'bool', 'supports_instant_articles' => 'bool', 'talking_about_count' => 'unsigned int', 'temporary_status' => 'string', 'unread_message_count' => 'unsigned int', 'unread_notif_count' => 'unsigned int', 'unseen_message_count' => 'unsigned int', 'username' => 'string', 'verification_status' => 'string', 'voip_info' => 'VoipInfo', 'website' => 'string', 'were_here_count' => 'unsigned int', 'whatsapp_number' => 'string', 'written_by' => 'string');
|
187 |
}
|
188 |
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/PageUserMessageThreadLabelFields.php
CHANGED
@@ -36,9 +36,9 @@ use PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum;
|
|
36 |
class PageUserMessageThreadLabelFields extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
37 |
{
|
38 |
const ID = 'id';
|
39 |
-
const
|
40 |
public function getFieldTypes()
|
41 |
{
|
42 |
-
return array('id' => 'string', '
|
43 |
}
|
44 |
}
|
36 |
class PageUserMessageThreadLabelFields extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
37 |
{
|
38 |
const ID = 'id';
|
39 |
+
const PAGE_LABEL_NAME = 'page_label_name';
|
40 |
public function getFieldTypes()
|
41 |
{
|
42 |
+
return array('id' => 'string', 'page_label_name' => 'string');
|
43 |
}
|
44 |
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/ProductFeedFields.php
CHANGED
@@ -43,21 +43,25 @@ class ProductFeedFields extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
|
43 |
const ENCODING = 'encoding';
|
44 |
const FILE_NAME = 'file_name';
|
45 |
const ID = 'id';
|
|
|
46 |
const ITEM_SUB_TYPE = 'item_sub_type';
|
47 |
const LATEST_UPLOAD = 'latest_upload';
|
48 |
const MIGRATED_FROM_FEED_ID = 'migrated_from_feed_id';
|
49 |
const NAME = 'name';
|
50 |
const OVERRIDE_TYPE = 'override_type';
|
|
|
51 |
const PRODUCT_COUNT = 'product_count';
|
52 |
const QUOTED_FIELDS_MODE = 'quoted_fields_mode';
|
53 |
const SCHEDULE = 'schedule';
|
|
|
54 |
const UPDATE_SCHEDULE = 'update_schedule';
|
55 |
const FEED_TYPE = 'feed_type';
|
56 |
const OVERRIDE_VALUE = 'override_value';
|
|
|
57 |
const RULES = 'rules';
|
58 |
const SELECTED_OVERRIDE_FIELDS = 'selected_override_fields';
|
59 |
public function getFieldTypes()
|
60 |
{
|
61 |
-
return array('country' => 'string', 'created_time' => 'datetime', 'default_currency' => 'string', 'deletion_enabled' => 'bool', 'delimiter' => 'Delimiter', 'encoding' => 'string', 'file_name' => 'string', 'id' => 'string', 'item_sub_type' => 'string', 'latest_upload' => 'ProductFeedUpload', 'migrated_from_feed_id' => 'string', 'name' => 'string', 'override_type' => 'string', 'product_count' => 'int', 'quoted_fields_mode' => 'QuotedFieldsMode', 'schedule' => 'ProductFeedSchedule', 'update_schedule' => 'ProductFeedSchedule', 'feed_type' => 'FeedType', 'override_value' => 'string', 'rules' => 'list<string>', 'selected_override_fields' => 'list<string>');
|
62 |
}
|
63 |
}
|
43 |
const ENCODING = 'encoding';
|
44 |
const FILE_NAME = 'file_name';
|
45 |
const ID = 'id';
|
46 |
+
const INGESTION_SOURCE_TYPE = 'ingestion_source_type';
|
47 |
const ITEM_SUB_TYPE = 'item_sub_type';
|
48 |
const LATEST_UPLOAD = 'latest_upload';
|
49 |
const MIGRATED_FROM_FEED_ID = 'migrated_from_feed_id';
|
50 |
const NAME = 'name';
|
51 |
const OVERRIDE_TYPE = 'override_type';
|
52 |
+
const PRIMARY_FEEDS = 'primary_feeds';
|
53 |
const PRODUCT_COUNT = 'product_count';
|
54 |
const QUOTED_FIELDS_MODE = 'quoted_fields_mode';
|
55 |
const SCHEDULE = 'schedule';
|
56 |
+
const SUPPLEMENTARY_FEEDS = 'supplementary_feeds';
|
57 |
const UPDATE_SCHEDULE = 'update_schedule';
|
58 |
const FEED_TYPE = 'feed_type';
|
59 |
const OVERRIDE_VALUE = 'override_value';
|
60 |
+
const PRIMARY_FEED_IDS = 'primary_feed_ids';
|
61 |
const RULES = 'rules';
|
62 |
const SELECTED_OVERRIDE_FIELDS = 'selected_override_fields';
|
63 |
public function getFieldTypes()
|
64 |
{
|
65 |
+
return array('country' => 'string', 'created_time' => 'datetime', 'default_currency' => 'string', 'deletion_enabled' => 'bool', 'delimiter' => 'Delimiter', 'encoding' => 'string', 'file_name' => 'string', 'id' => 'string', 'ingestion_source_type' => 'string', 'item_sub_type' => 'string', 'latest_upload' => 'ProductFeedUpload', 'migrated_from_feed_id' => 'string', 'name' => 'string', 'override_type' => 'string', 'primary_feeds' => 'list<string>', 'product_count' => 'int', 'quoted_fields_mode' => 'QuotedFieldsMode', 'schedule' => 'ProductFeedSchedule', 'supplementary_feeds' => 'list<string>', 'update_schedule' => 'ProductFeedSchedule', 'feed_type' => 'FeedType', 'override_value' => 'string', 'primary_feed_ids' => 'list<string>', 'rules' => 'list<string>', 'selected_override_fields' => 'list<string>');
|
66 |
}
|
67 |
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/ProductItemFields.php
CHANGED
@@ -66,13 +66,18 @@ class ProductItemFields extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
|
66 |
const IMAGE_FETCH_STATUS = 'image_fetch_status';
|
67 |
const IMAGE_URL = 'image_url';
|
68 |
const IMAGES = 'images';
|
|
|
|
|
|
|
69 |
const INVENTORY = 'inventory';
|
|
|
70 |
const MANUFACTURER_PART_NUMBER = 'manufacturer_part_number';
|
71 |
const MARKED_FOR_PRODUCT_LAUNCH = 'marked_for_product_launch';
|
72 |
const MATERIAL = 'material';
|
73 |
const MOBILE_LINK = 'mobile_link';
|
74 |
const NAME = 'name';
|
75 |
const ORDERING_INDEX = 'ordering_index';
|
|
|
76 |
const PARENT_PRODUCT_ID = 'parent_product_id';
|
77 |
const PATTERN = 'pattern';
|
78 |
const PRICE = 'price';
|
@@ -121,6 +126,6 @@ class ProductItemFields extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
|
121 |
const WINDOWS_PHONE_URL = 'windows_phone_url';
|
122 |
public function getFieldTypes()
|
123 |
{
|
124 |
-
return array('additional_image_cdn_urls' => 'list<map<string, string>>', 'additional_image_urls' => 'list<string>', 'additional_variant_attributes' => 'map<string, string>', 'age_group' => 'AgeGroup', 'applinks' => 'CatalogItemAppLinks', 'ar_data' => 'ProductItemARData', 'availability' => 'Availability', 'brand' => 'string', 'capability_to_review_status' => 'map<Object, Object>', 'category' => 'string', 'category_specific_fields' => 'CatalogSubVerticalList', 'color' => 'string', 'commerce_insights' => 'ProductItemCommerceInsights', 'condition' => 'Condition', 'currency' => 'string', 'custom_data' => 'map<string, string>', 'custom_label_0' => 'string', 'custom_label_1' => 'string', 'custom_label_2' => 'string', 'custom_label_3' => 'string', 'custom_label_4' => 'string', 'description' => 'string', 'expiration_date' => 'string', 'fb_product_category' => 'string', 'gender' => 'Gender', 'gtin' => 'string', 'id' => 'string', 'image_cdn_urls' => 'map<string, string>', 'image_fetch_status' => 'ImageFetchStatus', 'image_url' => 'string', 'images' => 'list<string>', 'inventory' => 'int', 'manufacturer_part_number' => 'string', 'marked_for_product_launch' => 'string', 'material' => 'string', 'mobile_link' => 'string', 'name' => 'string', 'ordering_index' => 'int', 'parent_product_id' => 'string', 'pattern' => 'string', 'price' => 'string', 'product_catalog' => 'ProductCatalog', 'product_feed' => 'ProductFeed', 'product_group' => 'ProductGroup', 'product_type' => 'string', 'quantity_to_sell_on_facebook' => 'int', 'retailer_id' => 'string', 'retailer_product_group_id' => 'string', 'review_rejection_reasons' => 'list<string>', 'review_status' => 'ReviewStatus', 'sale_price' => 'string', 'sale_price_end_date' => 'string', 'sale_price_start_date' => 'string', 'shipping_weight_unit' => 'ShippingWeightUnit', 'shipping_weight_value' => 'float', 'short_description' => 'string', 'size' => 'string', 'start_date' => 'string', 'url' => 'string', 'visibility' => 'Visibility', 'additional_uploaded_image_ids' => 'list<string>', 'android_app_name' => 'string', 'android_class' => 'string', 'android_package' => 'string', 'android_url' => 'string', 'checkout_url' => 'string', 'commerce_tax_category' => 'CommerceTaxCategory', 'ios_app_name' => 'string', 'ios_app_store_id' => 'unsigned int', 'ios_url' => 'string', 'ipad_app_name' => 'string', 'ipad_app_store_id' => 'unsigned int', 'ipad_url' => 'string', 'iphone_app_name' => 'string', 'iphone_app_store_id' => 'unsigned int', 'iphone_url' => 'string', 'launch_date' => 'string', 'offer_price_amount' => 'unsigned int', 'offer_price_end_date' => 'datetime', 'offer_price_start_date' => 'datetime', 'return_policy_days' => 'unsigned int', 'windows_phone_app_id' => 'string', 'windows_phone_app_name' => 'string', 'windows_phone_url' => 'string');
|
125 |
}
|
126 |
}
|
66 |
const IMAGE_FETCH_STATUS = 'image_fetch_status';
|
67 |
const IMAGE_URL = 'image_url';
|
68 |
const IMAGES = 'images';
|
69 |
+
const IMPORTER_ADDRESS = 'importer_address';
|
70 |
+
const IMPORTER_NAME = 'importer_name';
|
71 |
+
const INVALIDATION_ERRORS = 'invalidation_errors';
|
72 |
const INVENTORY = 'inventory';
|
73 |
+
const MANUFACTURER_INFO = 'manufacturer_info';
|
74 |
const MANUFACTURER_PART_NUMBER = 'manufacturer_part_number';
|
75 |
const MARKED_FOR_PRODUCT_LAUNCH = 'marked_for_product_launch';
|
76 |
const MATERIAL = 'material';
|
77 |
const MOBILE_LINK = 'mobile_link';
|
78 |
const NAME = 'name';
|
79 |
const ORDERING_INDEX = 'ordering_index';
|
80 |
+
const ORIGIN_COUNTRY = 'origin_country';
|
81 |
const PARENT_PRODUCT_ID = 'parent_product_id';
|
82 |
const PATTERN = 'pattern';
|
83 |
const PRICE = 'price';
|
126 |
const WINDOWS_PHONE_URL = 'windows_phone_url';
|
127 |
public function getFieldTypes()
|
128 |
{
|
129 |
+
return array('additional_image_cdn_urls' => 'list<map<string, string>>', 'additional_image_urls' => 'list<string>', 'additional_variant_attributes' => 'map<string, string>', 'age_group' => 'AgeGroup', 'applinks' => 'CatalogItemAppLinks', 'ar_data' => 'ProductItemARData', 'availability' => 'Availability', 'brand' => 'string', 'capability_to_review_status' => 'map<Object, Object>', 'category' => 'string', 'category_specific_fields' => 'CatalogSubVerticalList', 'color' => 'string', 'commerce_insights' => 'ProductItemCommerceInsights', 'condition' => 'Condition', 'currency' => 'string', 'custom_data' => 'map<string, string>', 'custom_label_0' => 'string', 'custom_label_1' => 'string', 'custom_label_2' => 'string', 'custom_label_3' => 'string', 'custom_label_4' => 'string', 'description' => 'string', 'expiration_date' => 'string', 'fb_product_category' => 'string', 'gender' => 'Gender', 'gtin' => 'string', 'id' => 'string', 'image_cdn_urls' => 'map<string, string>', 'image_fetch_status' => 'ImageFetchStatus', 'image_url' => 'string', 'images' => 'list<string>', 'importer_address' => 'ProductItemImporterAddress', 'importer_name' => 'string', 'invalidation_errors' => 'list<Object>', 'inventory' => 'int', 'manufacturer_info' => 'string', 'manufacturer_part_number' => 'string', 'marked_for_product_launch' => 'string', 'material' => 'string', 'mobile_link' => 'string', 'name' => 'string', 'ordering_index' => 'int', 'origin_country' => 'string', 'parent_product_id' => 'string', 'pattern' => 'string', 'price' => 'string', 'product_catalog' => 'ProductCatalog', 'product_feed' => 'ProductFeed', 'product_group' => 'ProductGroup', 'product_type' => 'string', 'quantity_to_sell_on_facebook' => 'int', 'retailer_id' => 'string', 'retailer_product_group_id' => 'string', 'review_rejection_reasons' => 'list<string>', 'review_status' => 'ReviewStatus', 'sale_price' => 'string', 'sale_price_end_date' => 'string', 'sale_price_start_date' => 'string', 'shipping_weight_unit' => 'ShippingWeightUnit', 'shipping_weight_value' => 'float', 'short_description' => 'string', 'size' => 'string', 'start_date' => 'string', 'url' => 'string', 'visibility' => 'Visibility', 'additional_uploaded_image_ids' => 'list<string>', 'android_app_name' => 'string', 'android_class' => 'string', 'android_package' => 'string', 'android_url' => 'string', 'checkout_url' => 'string', 'commerce_tax_category' => 'CommerceTaxCategory', 'ios_app_name' => 'string', 'ios_app_store_id' => 'unsigned int', 'ios_url' => 'string', 'ipad_app_name' => 'string', 'ipad_app_store_id' => 'unsigned int', 'ipad_url' => 'string', 'iphone_app_name' => 'string', 'iphone_app_store_id' => 'unsigned int', 'iphone_url' => 'string', 'launch_date' => 'string', 'offer_price_amount' => 'unsigned int', 'offer_price_end_date' => 'datetime', 'offer_price_start_date' => 'datetime', 'return_policy_days' => 'unsigned int', 'windows_phone_app_id' => 'string', 'windows_phone_app_name' => 'string', 'windows_phone_url' => 'string');
|
130 |
}
|
131 |
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/ProductItemImporterAddressFields.php
ADDED
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Copyright (c) 2015-present, Facebook, Inc. All rights reserved.
|
5 |
+
*
|
6 |
+
* You are hereby granted a non-exclusive, worldwide, royalty-free license to
|
7 |
+
* use, copy, modify, and distribute this software in source code or binary
|
8 |
+
* form for use in connection with the web services and APIs provided by
|
9 |
+
* Facebook.
|
10 |
+
*
|
11 |
+
* As with any software that integrates with the Facebook platform, your use
|
12 |
+
* of this software is subject to the Facebook Developer Principles and
|
13 |
+
* Policies [http://developers.facebook.com/policy/]. This copyright notice
|
14 |
+
* shall be included in all copies or substantial portions of the software.
|
15 |
+
*
|
16 |
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
17 |
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
18 |
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
19 |
+
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
20 |
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
21 |
+
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
22 |
+
* DEALINGS IN THE SOFTWARE.
|
23 |
+
*
|
24 |
+
*/
|
25 |
+
namespace PYS_PRO_GLOBAL\FacebookAds\Object\Fields;
|
26 |
+
|
27 |
+
use PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum;
|
28 |
+
/**
|
29 |
+
* This class is auto-generated.
|
30 |
+
*
|
31 |
+
* For any issues or feature requests related to this class, please let us know
|
32 |
+
* on github and we'll fix in our codegen framework. We'll not be able to accept
|
33 |
+
* pull request for this class.
|
34 |
+
*
|
35 |
+
*/
|
36 |
+
class ProductItemImporterAddressFields extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
37 |
+
{
|
38 |
+
const CITY = 'city';
|
39 |
+
const COUNTRY = 'country';
|
40 |
+
const POSTAL_CODE = 'postal_code';
|
41 |
+
const REGION = 'region';
|
42 |
+
const STREET1 = 'street1';
|
43 |
+
const STREET2 = 'street2';
|
44 |
+
public function getFieldTypes()
|
45 |
+
{
|
46 |
+
return array('city' => 'string', 'country' => 'string', 'postal_code' => 'string', 'region' => 'string', 'street1' => 'string', 'street2' => 'string');
|
47 |
+
}
|
48 |
+
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/ProductSetFields.php
CHANGED
@@ -41,12 +41,14 @@ class ProductSetFields extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
|
41 |
const LATEST_METADATA = 'latest_metadata';
|
42 |
const LIVE_METADATA = 'live_metadata';
|
43 |
const NAME = 'name';
|
|
|
44 |
const PRODUCT_CATALOG = 'product_catalog';
|
45 |
const PRODUCT_COUNT = 'product_count';
|
46 |
const RETAILER_ID = 'retailer_id';
|
47 |
const METADATA = 'metadata';
|
|
|
48 |
public function getFieldTypes()
|
49 |
{
|
50 |
-
return array('auto_creation_url' => 'string', 'filter' => 'string', 'id' => 'string', 'latest_metadata' => 'ProductSetMetadata', 'live_metadata' => 'ProductSetMetadata', 'name' => 'string', 'product_catalog' => 'ProductCatalog', 'product_count' => 'unsigned int', 'retailer_id' => 'string', 'metadata' => 'map');
|
51 |
}
|
52 |
}
|
41 |
const LATEST_METADATA = 'latest_metadata';
|
42 |
const LIVE_METADATA = 'live_metadata';
|
43 |
const NAME = 'name';
|
44 |
+
const ORDERING_INFO = 'ordering_info';
|
45 |
const PRODUCT_CATALOG = 'product_catalog';
|
46 |
const PRODUCT_COUNT = 'product_count';
|
47 |
const RETAILER_ID = 'retailer_id';
|
48 |
const METADATA = 'metadata';
|
49 |
+
const PUBLISH_TO_SHOPS = 'publish_to_shops';
|
50 |
public function getFieldTypes()
|
51 |
{
|
52 |
+
return array('auto_creation_url' => 'string', 'filter' => 'string', 'id' => 'string', 'latest_metadata' => 'ProductSetMetadata', 'live_metadata' => 'ProductSetMetadata', 'name' => 'string', 'ordering_info' => 'list<int>', 'product_catalog' => 'ProductCatalog', 'product_count' => 'unsigned int', 'retailer_id' => 'string', 'metadata' => 'map', 'publish_to_shops' => 'list<map>');
|
53 |
}
|
54 |
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/ReachFrequencyPredictionFields.php
CHANGED
@@ -39,6 +39,8 @@ class ReachFrequencyPredictionFields extends \PYS_PRO_GLOBAL\FacebookAds\Enum\Ab
|
|
39 |
const ACTIVITY_STATUS = 'activity_status';
|
40 |
const AD_FORMATS = 'ad_formats';
|
41 |
const AUCTION_ENTRY_OPTION_INDEX = 'auction_entry_option_index';
|
|
|
|
|
42 |
const BUSINESS_ID = 'business_id';
|
43 |
const BUYING_TYPE = 'buying_type';
|
44 |
const CAMPAIGN_GROUP_ID = 'campaign_group_id';
|
@@ -134,6 +136,6 @@ class ReachFrequencyPredictionFields extends \PYS_PRO_GLOBAL\FacebookAds\Enum\Ab
|
|
134 |
const STOP_TIME = 'stop_time';
|
135 |
public function getFieldTypes()
|
136 |
{
|
137 |
-
return array('account_id' => 'int', 'activity_status' => 'ReachFrequencyActivity', 'ad_formats' => 'list<ReachFrequencyAdFormat>', 'auction_entry_option_index' => 'int', 'business_id' => 'int', 'buying_type' => 'string', 'campaign_group_id' => 'int', 'campaign_id' => 'string', 'campaign_time_start' => 'datetime', 'campaign_time_stop' => 'datetime', 'currency' => 'string', 'curve_budget_reach' => 'ReachFrequencyEstimatesCurve', 'curve_reach' => 'list<unsigned int>', 'daily_grp_curve' => 'list<float>', 'daily_impression_curve' => 'list<float>', 'daily_impression_curve_map' => 'map<unsigned int, list<float>>', 'day_parting_schedule' => 'list<ReachFrequencyDayPart>', 'destination_id' => 'string', 'end_time' => 'datetime', 'expiration_time' => 'datetime', 'external_budget' => 'int', 'external_impression' => 'unsigned int', 'external_maximum_budget' => 'int', 'external_maximum_impression' => 'string', 'external_maximum_reach' => 'unsigned int', 'external_minimum_budget' => 'int', 'external_minimum_impression' => 'unsigned int', 'external_minimum_reach' => 'unsigned int', 'external_reach' => 'unsigned int', 'feed_ratio_0000' => 'unsigned int', 'frequency_cap' => 'unsigned int', 'frequency_distribution_map' => 'map<unsigned int, list<float>>', 'frequency_distribution_map_agg' => 'map<unsigned int, list<unsigned int>>', 'grp_audience_size' => 'float', 'grp_avg_probability_map' => 'string', 'grp_country_audience_size' => 'float', 'grp_curve' => 'list<float>', 'grp_dmas_audience_size' => 'float', 'grp_filtering_threshold_00' => 'unsigned int', 'grp_points' => 'float', 'grp_ratio' => 'float', 'grp_reach_ratio' => 'float', 'grp_status' => 'string', 'holdout_percentage' => 'unsigned int', 'id' => 'string', 'impression_curve' => 'list<unsigned int>', 'instagram_destination_id' => 'string', 'instream_packages' => 'list<string>', 'interval_frequency_cap' => 'unsigned int', 'interval_frequency_cap_reset_period' => 'unsigned int', 'is_bonus_media' => 'unsigned int', 'is_conversion_goal' => 'unsigned int', 'is_higher_average_frequency' => 'bool', 'is_io' => 'bool', 'is_reserved_buying' => 'unsigned int', 'is_trp' => 'bool', 'name' => 'string', 'objective' => 'unsigned int', 'objective_name' => 'string', 'pause_periods' => 'list<Object>', 'placement_breakdown' => 'ReachFrequencyEstimatesPlacementBreakdown', 'placement_breakdown_map' => 'map<unsigned int, ReachFrequencyEstimatesPlacementBreakdown>', 'plan_name' => 'string', 'plan_type' => 'string', 'prediction_mode' => 'unsigned int', 'prediction_progress' => 'unsigned int', 'reference_id' => 'string', 'reservation_status' => 'unsigned int', 'start_time' => 'datetime', 'status' => 'unsigned int', 'story_event_type' => 'unsigned int', 'target_audience_size' => 'unsigned int', 'target_cpm' => 'unsigned int', 'target_spec' => 'Targeting', 'time_created' => 'datetime', 'time_updated' => 'datetime', 'timezone_id' => 'unsigned int', 'timezone_name' => 'string', 'topline_id' => 'unsigned int', 'video_view_length_constraint' => 'unsigned int', 'viewtag' => 'string', 'action' => 'Action', 'budget' => 'unsigned int', 'deal_id' => 'string', 'destination_ids' => 'list<string>', 'exceptions' => 'bool', 'existing_campaign_id' => 'string', 'grp_buying' => 'bool', 'impression' => 'unsigned int', 'is_full_view' => 'bool', 'is_reach_and_frequency_io_buying' => 'bool', 'num_curve_points' => 'unsigned int', 'reach' => 'unsigned int', 'rf_prediction_id' => 'string', 'rf_prediction_id_to_release' => 'string', 'rf_prediction_id_to_share' => 'string', 'stop_time' => 'unsigned int');
|
138 |
}
|
139 |
}
|
39 |
const ACTIVITY_STATUS = 'activity_status';
|
40 |
const AD_FORMATS = 'ad_formats';
|
41 |
const AUCTION_ENTRY_OPTION_INDEX = 'auction_entry_option_index';
|
42 |
+
const AUDIENCE_SIZE_LOWER_BOUND = 'audience_size_lower_bound';
|
43 |
+
const AUDIENCE_SIZE_UPPER_BOUND = 'audience_size_upper_bound';
|
44 |
const BUSINESS_ID = 'business_id';
|
45 |
const BUYING_TYPE = 'buying_type';
|
46 |
const CAMPAIGN_GROUP_ID = 'campaign_group_id';
|
136 |
const STOP_TIME = 'stop_time';
|
137 |
public function getFieldTypes()
|
138 |
{
|
139 |
+
return array('account_id' => 'int', 'activity_status' => 'ReachFrequencyActivity', 'ad_formats' => 'list<ReachFrequencyAdFormat>', 'auction_entry_option_index' => 'int', 'audience_size_lower_bound' => 'unsigned int', 'audience_size_upper_bound' => 'unsigned int', 'business_id' => 'int', 'buying_type' => 'string', 'campaign_group_id' => 'int', 'campaign_id' => 'string', 'campaign_time_start' => 'datetime', 'campaign_time_stop' => 'datetime', 'currency' => 'string', 'curve_budget_reach' => 'ReachFrequencyEstimatesCurve', 'curve_reach' => 'list<unsigned int>', 'daily_grp_curve' => 'list<float>', 'daily_impression_curve' => 'list<float>', 'daily_impression_curve_map' => 'map<unsigned int, list<float>>', 'day_parting_schedule' => 'list<ReachFrequencyDayPart>', 'destination_id' => 'string', 'end_time' => 'datetime', 'expiration_time' => 'datetime', 'external_budget' => 'int', 'external_impression' => 'unsigned int', 'external_maximum_budget' => 'int', 'external_maximum_impression' => 'string', 'external_maximum_reach' => 'unsigned int', 'external_minimum_budget' => 'int', 'external_minimum_impression' => 'unsigned int', 'external_minimum_reach' => 'unsigned int', 'external_reach' => 'unsigned int', 'feed_ratio_0000' => 'unsigned int', 'frequency_cap' => 'unsigned int', 'frequency_distribution_map' => 'map<unsigned int, list<float>>', 'frequency_distribution_map_agg' => 'map<unsigned int, list<unsigned int>>', 'grp_audience_size' => 'float', 'grp_avg_probability_map' => 'string', 'grp_country_audience_size' => 'float', 'grp_curve' => 'list<float>', 'grp_dmas_audience_size' => 'float', 'grp_filtering_threshold_00' => 'unsigned int', 'grp_points' => 'float', 'grp_ratio' => 'float', 'grp_reach_ratio' => 'float', 'grp_status' => 'string', 'holdout_percentage' => 'unsigned int', 'id' => 'string', 'impression_curve' => 'list<unsigned int>', 'instagram_destination_id' => 'string', 'instream_packages' => 'list<string>', 'interval_frequency_cap' => 'unsigned int', 'interval_frequency_cap_reset_period' => 'unsigned int', 'is_bonus_media' => 'unsigned int', 'is_conversion_goal' => 'unsigned int', 'is_higher_average_frequency' => 'bool', 'is_io' => 'bool', 'is_reserved_buying' => 'unsigned int', 'is_trp' => 'bool', 'name' => 'string', 'objective' => 'unsigned int', 'objective_name' => 'string', 'pause_periods' => 'list<Object>', 'placement_breakdown' => 'ReachFrequencyEstimatesPlacementBreakdown', 'placement_breakdown_map' => 'map<unsigned int, ReachFrequencyEstimatesPlacementBreakdown>', 'plan_name' => 'string', 'plan_type' => 'string', 'prediction_mode' => 'unsigned int', 'prediction_progress' => 'unsigned int', 'reference_id' => 'string', 'reservation_status' => 'unsigned int', 'start_time' => 'datetime', 'status' => 'unsigned int', 'story_event_type' => 'unsigned int', 'target_audience_size' => 'unsigned int', 'target_cpm' => 'unsigned int', 'target_spec' => 'Targeting', 'time_created' => 'datetime', 'time_updated' => 'datetime', 'timezone_id' => 'unsigned int', 'timezone_name' => 'string', 'topline_id' => 'unsigned int', 'video_view_length_constraint' => 'unsigned int', 'viewtag' => 'string', 'action' => 'Action', 'budget' => 'unsigned int', 'deal_id' => 'string', 'destination_ids' => 'list<string>', 'exceptions' => 'bool', 'existing_campaign_id' => 'string', 'grp_buying' => 'bool', 'impression' => 'unsigned int', 'is_full_view' => 'bool', 'is_reach_and_frequency_io_buying' => 'bool', 'num_curve_points' => 'unsigned int', 'reach' => 'unsigned int', 'rf_prediction_id' => 'string', 'rf_prediction_id_to_release' => 'string', 'rf_prediction_id_to_share' => 'string', 'stop_time' => 'unsigned int');
|
140 |
}
|
141 |
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/SavedAudienceFields.php
CHANGED
@@ -38,12 +38,15 @@ class SavedAudienceFields extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
|
38 |
const ACCOUNT = 'account';
|
39 |
const APPROXIMATE_COUNT = 'approximate_count';
|
40 |
const APPROXIMATE_COUNT_64BIT = 'approximate_count_64bit';
|
|
|
|
|
41 |
const DELETE_TIME = 'delete_time';
|
42 |
const DESCRIPTION = 'description';
|
43 |
const EXTRA_INFO = 'extra_info';
|
44 |
const ID = 'id';
|
45 |
const NAME = 'name';
|
46 |
const OPERATION_STATUS = 'operation_status';
|
|
|
47 |
const PERMISSION_FOR_ACTIONS = 'permission_for_actions';
|
48 |
const RUN_STATUS = 'run_status';
|
49 |
const SENTENCE_LINES = 'sentence_lines';
|
@@ -52,6 +55,6 @@ class SavedAudienceFields extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
|
52 |
const TIME_UPDATED = 'time_updated';
|
53 |
public function getFieldTypes()
|
54 |
{
|
55 |
-
return array('account' => 'AdAccount', 'approximate_count' => 'int', 'approximate_count_64bit' => 'int', 'delete_time' => 'int', 'description' => 'string', 'extra_info' => 'string', 'id' => 'string', 'name' => 'string', 'operation_status' => 'CustomAudienceStatus', 'permission_for_actions' => 'AudiencePermissionForActions', 'run_status' => 'string', 'sentence_lines' => 'list', 'targeting' => 'Targeting', 'time_created' => 'datetime', 'time_updated' => 'datetime');
|
56 |
}
|
57 |
}
|
38 |
const ACCOUNT = 'account';
|
39 |
const APPROXIMATE_COUNT = 'approximate_count';
|
40 |
const APPROXIMATE_COUNT_64BIT = 'approximate_count_64bit';
|
41 |
+
const APPROXIMATE_COUNT_LOWER_BOUND = 'approximate_count_lower_bound';
|
42 |
+
const APPROXIMATE_COUNT_UPPER_BOUND = 'approximate_count_upper_bound';
|
43 |
const DELETE_TIME = 'delete_time';
|
44 |
const DESCRIPTION = 'description';
|
45 |
const EXTRA_INFO = 'extra_info';
|
46 |
const ID = 'id';
|
47 |
const NAME = 'name';
|
48 |
const OPERATION_STATUS = 'operation_status';
|
49 |
+
const PAGE_DELETION_MARKED_DELETE_TIME = 'page_deletion_marked_delete_time';
|
50 |
const PERMISSION_FOR_ACTIONS = 'permission_for_actions';
|
51 |
const RUN_STATUS = 'run_status';
|
52 |
const SENTENCE_LINES = 'sentence_lines';
|
55 |
const TIME_UPDATED = 'time_updated';
|
56 |
public function getFieldTypes()
|
57 |
{
|
58 |
+
return array('account' => 'AdAccount', 'approximate_count' => 'int', 'approximate_count_64bit' => 'int', 'approximate_count_lower_bound' => 'int', 'approximate_count_upper_bound' => 'int', 'delete_time' => 'int', 'description' => 'string', 'extra_info' => 'string', 'id' => 'string', 'name' => 'string', 'operation_status' => 'CustomAudienceStatus', 'page_deletion_marked_delete_time' => 'int', 'permission_for_actions' => 'AudiencePermissionForActions', 'run_status' => 'string', 'sentence_lines' => 'list', 'targeting' => 'Targeting', 'time_created' => 'datetime', 'time_updated' => 'datetime');
|
59 |
}
|
60 |
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/ShopFields.php
ADDED
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Copyright (c) 2015-present, Facebook, Inc. All rights reserved.
|
5 |
+
*
|
6 |
+
* You are hereby granted a non-exclusive, worldwide, royalty-free license to
|
7 |
+
* use, copy, modify, and distribute this software in source code or binary
|
8 |
+
* form for use in connection with the web services and APIs provided by
|
9 |
+
* Facebook.
|
10 |
+
*
|
11 |
+
* As with any software that integrates with the Facebook platform, your use
|
12 |
+
* of this software is subject to the Facebook Developer Principles and
|
13 |
+
* Policies [http://developers.facebook.com/policy/]. This copyright notice
|
14 |
+
* shall be included in all copies or substantial portions of the software.
|
15 |
+
*
|
16 |
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
17 |
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
18 |
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
19 |
+
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
20 |
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
21 |
+
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
22 |
+
* DEALINGS IN THE SOFTWARE.
|
23 |
+
*
|
24 |
+
*/
|
25 |
+
namespace PYS_PRO_GLOBAL\FacebookAds\Object\Fields;
|
26 |
+
|
27 |
+
use PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum;
|
28 |
+
/**
|
29 |
+
* This class is auto-generated.
|
30 |
+
*
|
31 |
+
* For any issues or feature requests related to this class, please let us know
|
32 |
+
* on github and we'll fix in our codegen framework. We'll not be able to accept
|
33 |
+
* pull request for this class.
|
34 |
+
*
|
35 |
+
*/
|
36 |
+
class ShopFields extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
37 |
+
{
|
38 |
+
const FB_SALES_CHANNEL = 'fb_sales_channel';
|
39 |
+
const ID = 'id';
|
40 |
+
const IG_SALES_CHANNEL = 'ig_sales_channel';
|
41 |
+
public function getFieldTypes()
|
42 |
+
{
|
43 |
+
return array('fb_sales_channel' => 'Object', 'id' => 'string', 'ig_sales_channel' => 'Object');
|
44 |
+
}
|
45 |
+
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/TextWithEntitiesFields.php
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Copyright (c) 2015-present, Facebook, Inc. All rights reserved.
|
5 |
+
*
|
6 |
+
* You are hereby granted a non-exclusive, worldwide, royalty-free license to
|
7 |
+
* use, copy, modify, and distribute this software in source code or binary
|
8 |
+
* form for use in connection with the web services and APIs provided by
|
9 |
+
* Facebook.
|
10 |
+
*
|
11 |
+
* As with any software that integrates with the Facebook platform, your use
|
12 |
+
* of this software is subject to the Facebook Developer Principles and
|
13 |
+
* Policies [http://developers.facebook.com/policy/]. This copyright notice
|
14 |
+
* shall be included in all copies or substantial portions of the software.
|
15 |
+
*
|
16 |
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
17 |
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
18 |
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
19 |
+
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
20 |
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
21 |
+
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
22 |
+
* DEALINGS IN THE SOFTWARE.
|
23 |
+
*
|
24 |
+
*/
|
25 |
+
namespace PYS_PRO_GLOBAL\FacebookAds\Object\Fields;
|
26 |
+
|
27 |
+
use PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum;
|
28 |
+
/**
|
29 |
+
* This class is auto-generated.
|
30 |
+
*
|
31 |
+
* For any issues or feature requests related to this class, please let us know
|
32 |
+
* on github and we'll fix in our codegen framework. We'll not be able to accept
|
33 |
+
* pull request for this class.
|
34 |
+
*
|
35 |
+
*/
|
36 |
+
class TextWithEntitiesFields extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
37 |
+
{
|
38 |
+
const TEXT = 'text';
|
39 |
+
public function getFieldTypes()
|
40 |
+
{
|
41 |
+
return array('text' => 'string');
|
42 |
+
}
|
43 |
+
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/VehicleFields.php
CHANGED
@@ -74,6 +74,7 @@ class VehicleFields extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
|
74 |
const TITLE = 'title';
|
75 |
const TRANSMISSION = 'transmission';
|
76 |
const TRIM = 'trim';
|
|
|
77 |
const URL = 'url';
|
78 |
const VEHICLE_ID = 'vehicle_id';
|
79 |
const VEHICLE_REGISTRATION_PLATE = 'vehicle_registration_plate';
|
@@ -83,6 +84,6 @@ class VehicleFields extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
|
83 |
const YEAR = 'year';
|
84 |
public function getFieldTypes()
|
85 |
{
|
86 |
-
return array('address' => 'Object', 'applinks' => 'CatalogItemAppLinks', 'availability' => 'string', 'body_style' => 'string', 'category_specific_fields' => 'CatalogSubVerticalList', 'condition' => 'string', 'currency' => 'string', 'custom_label_0' => 'string', 'date_first_on_lot' => 'string', 'dealer_communication_channel' => 'string', 'dealer_email' => 'string', 'dealer_id' => 'string', 'dealer_name' => 'string', 'dealer_phone' => 'string', 'dealer_privacy_policy_url' => 'string', 'description' => 'string', 'drivetrain' => 'string', 'exterior_color' => 'string', 'fb_page_id' => 'Page', 'features' => 'list<Object>', 'fuel_type' => 'string', 'id' => 'string', 'image_fetch_status' => 'ImageFetchStatus', 'images' => 'list<string>', 'interior_color' => 'string', 'legal_disclosure_impressum_url' => 'string', 'make' => 'string', 'mileage' => 'Object', 'model' => 'string', 'previous_currency' => 'string', 'previous_price' => 'string', 'price' => 'string', 'sale_currency' => 'string', 'sale_price' => 'string', 'sanitized_images' => 'list<string>', 'state_of_vehicle' => 'string', 'title' => 'string', 'transmission' => 'string', 'trim' => 'string', 'url' => 'string', 'vehicle_id' => 'string', 'vehicle_registration_plate' => 'string', 'vehicle_specifications' => 'list<Object>', 'vehicle_type' => 'string', 'vin' => 'string', 'year' => 'unsigned int');
|
87 |
}
|
88 |
}
|
74 |
const TITLE = 'title';
|
75 |
const TRANSMISSION = 'transmission';
|
76 |
const TRIM = 'trim';
|
77 |
+
const UNIT_PRICE = 'unit_price';
|
78 |
const URL = 'url';
|
79 |
const VEHICLE_ID = 'vehicle_id';
|
80 |
const VEHICLE_REGISTRATION_PLATE = 'vehicle_registration_plate';
|
84 |
const YEAR = 'year';
|
85 |
public function getFieldTypes()
|
86 |
{
|
87 |
+
return array('address' => 'Object', 'applinks' => 'CatalogItemAppLinks', 'availability' => 'string', 'body_style' => 'string', 'category_specific_fields' => 'CatalogSubVerticalList', 'condition' => 'string', 'currency' => 'string', 'custom_label_0' => 'string', 'date_first_on_lot' => 'string', 'dealer_communication_channel' => 'string', 'dealer_email' => 'string', 'dealer_id' => 'string', 'dealer_name' => 'string', 'dealer_phone' => 'string', 'dealer_privacy_policy_url' => 'string', 'description' => 'string', 'drivetrain' => 'string', 'exterior_color' => 'string', 'fb_page_id' => 'Page', 'features' => 'list<Object>', 'fuel_type' => 'string', 'id' => 'string', 'image_fetch_status' => 'ImageFetchStatus', 'images' => 'list<string>', 'interior_color' => 'string', 'legal_disclosure_impressum_url' => 'string', 'make' => 'string', 'mileage' => 'Object', 'model' => 'string', 'previous_currency' => 'string', 'previous_price' => 'string', 'price' => 'string', 'sale_currency' => 'string', 'sale_price' => 'string', 'sanitized_images' => 'list<string>', 'state_of_vehicle' => 'string', 'title' => 'string', 'transmission' => 'string', 'trim' => 'string', 'unit_price' => 'Object', 'url' => 'string', 'vehicle_id' => 'string', 'vehicle_registration_plate' => 'string', 'vehicle_specifications' => 'list<Object>', 'vehicle_type' => 'string', 'vin' => 'string', 'year' => 'unsigned int');
|
88 |
}
|
89 |
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/VehicleOfferFields.php
CHANGED
@@ -67,11 +67,12 @@ class VehicleOfferFields extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
|
67 |
const TERM_QUALIFIER = 'term_qualifier';
|
68 |
const TITLE = 'title';
|
69 |
const TRIM = 'trim';
|
|
|
70 |
const URL = 'url';
|
71 |
const VEHICLE_OFFER_ID = 'vehicle_offer_id';
|
72 |
const YEAR = 'year';
|
73 |
public function getFieldTypes()
|
74 |
{
|
75 |
-
return array('amount_currency' => 'string', 'amount_percentage' => 'float', 'amount_price' => 'string', 'amount_qualifier' => 'string', 'applinks' => 'CatalogItemAppLinks', 'body_style' => 'string', 'cashback_currency' => 'string', 'cashback_price' => 'string', 'category_specific_fields' => 'CatalogSubVerticalList', 'currency' => 'string', 'dma_codes' => 'list<string>', 'downpayment_currency' => 'string', 'downpayment_price' => 'string', 'downpayment_qualifier' => 'string', 'end_date' => 'string', 'end_time' => 'int', 'id' => 'string', 'image_fetch_status' => 'ImageFetchStatus', 'images' => 'list<string>', 'make' => 'string', 'model' => 'string', 'offer_description' => 'string', 'offer_disclaimer' => 'string', 'offer_type' => 'string', 'price' => 'string', 'sanitized_images' => 'list<string>', 'start_date' => 'string', 'start_time' => 'int', 'term_length' => 'unsigned int', 'term_qualifier' => 'string', 'title' => 'string', 'trim' => 'string', 'url' => 'string', 'vehicle_offer_id' => 'string', 'year' => 'int');
|
76 |
}
|
77 |
}
|
67 |
const TERM_QUALIFIER = 'term_qualifier';
|
68 |
const TITLE = 'title';
|
69 |
const TRIM = 'trim';
|
70 |
+
const UNIT_PRICE = 'unit_price';
|
71 |
const URL = 'url';
|
72 |
const VEHICLE_OFFER_ID = 'vehicle_offer_id';
|
73 |
const YEAR = 'year';
|
74 |
public function getFieldTypes()
|
75 |
{
|
76 |
+
return array('amount_currency' => 'string', 'amount_percentage' => 'float', 'amount_price' => 'string', 'amount_qualifier' => 'string', 'applinks' => 'CatalogItemAppLinks', 'body_style' => 'string', 'cashback_currency' => 'string', 'cashback_price' => 'string', 'category_specific_fields' => 'CatalogSubVerticalList', 'currency' => 'string', 'dma_codes' => 'list<string>', 'downpayment_currency' => 'string', 'downpayment_price' => 'string', 'downpayment_qualifier' => 'string', 'end_date' => 'string', 'end_time' => 'int', 'id' => 'string', 'image_fetch_status' => 'ImageFetchStatus', 'images' => 'list<string>', 'make' => 'string', 'model' => 'string', 'offer_description' => 'string', 'offer_disclaimer' => 'string', 'offer_type' => 'string', 'price' => 'string', 'sanitized_images' => 'list<string>', 'start_date' => 'string', 'start_time' => 'int', 'term_length' => 'unsigned int', 'term_qualifier' => 'string', 'title' => 'string', 'trim' => 'string', 'unit_price' => 'Object', 'url' => 'string', 'vehicle_offer_id' => 'string', 'year' => 'int');
|
77 |
}
|
78 |
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Fields/{PlayableContentFields.php → WoodhengePurchasedPAYGReceiptFields.php}
RENAMED
@@ -33,18 +33,14 @@ use PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum;
|
|
33 |
* pull request for this class.
|
34 |
*
|
35 |
*/
|
36 |
-
class
|
37 |
{
|
38 |
const ID = 'id';
|
39 |
-
const
|
40 |
-
const
|
41 |
-
const
|
42 |
-
const SESSION_ID = 'session_id';
|
43 |
-
const SOURCE = 'source';
|
44 |
-
const SOURCE_URL = 'source_url';
|
45 |
-
const SOURCE_ZIP = 'source_zip';
|
46 |
public function getFieldTypes()
|
47 |
{
|
48 |
-
return array('id' => 'string', '
|
49 |
}
|
50 |
}
|
33 |
* pull request for this class.
|
34 |
*
|
35 |
*/
|
36 |
+
class WoodhengePurchasedPAYGReceiptFields extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
37 |
{
|
38 |
const ID = 'id';
|
39 |
+
const NUMBER_OF_SUBSCRIPTIONS_PURCHASED = 'number_of_subscriptions_purchased';
|
40 |
+
const PURCHASE_TIME = 'purchase_time';
|
41 |
+
const USER = 'user';
|
|
|
|
|
|
|
|
|
42 |
public function getFieldTypes()
|
43 |
{
|
44 |
+
return array('id' => 'string', 'number_of_subscriptions_purchased' => 'int', 'purchase_time' => 'datetime', 'user' => 'User');
|
45 |
}
|
46 |
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Group.php
CHANGED
@@ -209,7 +209,7 @@ class Group extends \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject
|
|
209 |
public function createLiveVideo(array $fields = array(), array $params = array(), $pending = \false)
|
210 |
{
|
211 |
$this->assureId();
|
212 |
-
$param_types = array('content_tags' => 'list<string>', 'description' => 'string', 'enable_backup_ingest' => 'bool', 'encoding_settings' => 'string', 'fisheye_video_cropped' => 'bool', 'front_z_rotation' => 'float', 'is_audio_only' => 'bool', 'is_spherical' => 'bool', 'live_encoders' => 'list<string>', 'original_fov' => 'unsigned int', '
|
213 |
$enums = array('projection_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\LiveVideoProjectionValues::getInstance()->getValues(), 'spatial_audio_format_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\LiveVideoSpatialAudioFormatValues::getInstance()->getValues(), 'status_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\LiveVideoStatusValues::getInstance()->getValues(), 'stereoscopic_mode_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\LiveVideoStereoscopicModeValues::getInstance()->getValues(), 'stream_type_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\LiveVideoStreamTypeValues::getInstance()->getValues());
|
214 |
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_POST, '/live_videos', new \PYS_PRO_GLOBAL\FacebookAds\Object\LiveVideo(), 'EDGE', \PYS_PRO_GLOBAL\FacebookAds\Object\LiveVideo::getFieldsEnum()->getValues(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
215 |
$request->addParams($params);
|
@@ -266,6 +266,16 @@ class Group extends \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject
|
|
266 |
$request->addFields($fields);
|
267 |
return $pending ? $request : $request->execute();
|
268 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
269 |
public function getVideos(array $fields = array(), array $params = array(), $pending = \false)
|
270 |
{
|
271 |
$this->assureId();
|
@@ -279,7 +289,7 @@ class Group extends \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject
|
|
279 |
public function createVideo(array $fields = array(), array $params = array(), $pending = \false)
|
280 |
{
|
281 |
$this->assureId();
|
282 |
-
$param_types = array('adaptive_type' => 'string', 'animated_effect_id' => 'unsigned int', 'application_id' => 'string', 'asked_fun_fact_prompt_id' => 'unsigned int', 'audio_story_wave_animation_handle' => 'string', 'composer_entry_picker' => 'string', 'composer_entry_point' => 'string', 'composer_entry_time' => 'unsigned int', 'composer_session_events_log' => 'string', 'composer_session_id' => 'string', 'composer_source_surface' => 'string', 'composer_type' => 'string', 'container_type' => 'container_type_enum', 'content_category' => 'content_category_enum', 'creative_tools' => 'string', 'description' => 'string', 'embeddable' => 'bool', 'end_offset' => 'unsigned int', 'fbuploader_video_file_chunk' => 'string', 'file_size' => 'unsigned int', 'file_url' => 'string', 'fisheye_video_cropped' => 'bool', 'formatting' => 'formatting_enum', 'fov' => 'unsigned int', 'front_z_rotation' => 'float', 'fun_fact_prompt_id' => 'unsigned int', 'fun_fact_toastee_id' => 'unsigned int', 'guide' => 'list<list<unsigned int>>', 'guide_enabled' => 'bool', 'has_nickname' => 'bool', 'holiday_card' => 'string', 'initial_heading' => 'unsigned int', 'initial_pitch' => 'unsigned int', 'instant_game_entry_point_data' => 'string', 'is_boost_intended' => 'bool', 'is_explicit_share' => 'bool', 'is_group_linking_post' => 'bool', 'is_voice_clip' => 'bool', 'location_source_id' => 'string', 'manual_privacy' => 'bool', 'offer_like_post_id' => 'unsigned int', 'og_action_type_id' => 'string', 'og_icon_id' => 'string', 'og_object_id' => 'string', 'og_phrase' => 'string', 'og_suggestion_mechanism' => 'string', 'original_fov' => 'unsigned int', 'original_projection_type' => 'original_projection_type_enum', 'publish_event_id' => 'unsigned int', 'react_mode_metadata' => 'string', 'referenced_sticker_id' => 'string', 'replace_video_id' => 'string', 'sales_promo_id' => 'unsigned int', 'scheduled_publish_time' => 'unsigned int', 'slideshow_spec' => 'map', 'source' => 'string', 'source_instagram_media_id' => 'string', 'spherical' => 'bool', 'start_offset' => 'unsigned int', 'swap_mode' => 'swap_mode_enum', 'text_format_metadata' => 'string', 'throwback_camera_roll_media' => 'string', 'thumb' => 'file', 'time_since_original_post' => 'unsigned int', 'title' => 'string', 'transcode_setting_properties' => 'string', 'unpublished_content_type' => 'unpublished_content_type_enum', 'upload_phase' => 'upload_phase_enum', 'upload_session_id' => 'string', 'upload_setting_properties' => 'string', 'video_file_chunk' => 'string', 'video_id_original' => 'string', 'video_start_time_ms' => 'unsigned int', 'waterfall_id' => 'string');
|
283 |
$enums = array('container_type_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdVideoContainerTypeValues::getInstance()->getValues(), 'content_category_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdVideoContentCategoryValues::getInstance()->getValues(), 'formatting_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdVideoFormattingValues::getInstance()->getValues(), 'original_projection_type_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdVideoOriginalProjectionTypeValues::getInstance()->getValues(), 'swap_mode_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdVideoSwapModeValues::getInstance()->getValues(), 'unpublished_content_type_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdVideoUnpublishedContentTypeValues::getInstance()->getValues(), 'upload_phase_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdVideoUploadPhaseValues::getInstance()->getValues());
|
284 |
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_POST, '/videos', new \PYS_PRO_GLOBAL\FacebookAds\Object\AdVideo(), 'EDGE', \PYS_PRO_GLOBAL\FacebookAds\Object\AdVideo::getFieldsEnum()->getValues(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
285 |
$request->addParams($params);
|
209 |
public function createLiveVideo(array $fields = array(), array $params = array(), $pending = \false)
|
210 |
{
|
211 |
$this->assureId();
|
212 |
+
$param_types = array('content_tags' => 'list<string>', 'description' => 'string', 'enable_backup_ingest' => 'bool', 'encoding_settings' => 'string', 'fisheye_video_cropped' => 'bool', 'front_z_rotation' => 'float', 'is_audio_only' => 'bool', 'is_spherical' => 'bool', 'live_encoders' => 'list<string>', 'original_fov' => 'unsigned int', 'privacy' => 'string', 'projection' => 'projection_enum', 'published' => 'bool', 'schedule_custom_profile_image' => 'file', 'spatial_audio_format' => 'spatial_audio_format_enum', 'status' => 'status_enum', 'stereoscopic_mode' => 'stereoscopic_mode_enum', 'stop_on_delete_stream' => 'bool', 'stream_type' => 'stream_type_enum', 'title' => 'string');
|
213 |
$enums = array('projection_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\LiveVideoProjectionValues::getInstance()->getValues(), 'spatial_audio_format_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\LiveVideoSpatialAudioFormatValues::getInstance()->getValues(), 'status_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\LiveVideoStatusValues::getInstance()->getValues(), 'stereoscopic_mode_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\LiveVideoStereoscopicModeValues::getInstance()->getValues(), 'stream_type_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\LiveVideoStreamTypeValues::getInstance()->getValues());
|
214 |
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_POST, '/live_videos', new \PYS_PRO_GLOBAL\FacebookAds\Object\LiveVideo(), 'EDGE', \PYS_PRO_GLOBAL\FacebookAds\Object\LiveVideo::getFieldsEnum()->getValues(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
215 |
$request->addParams($params);
|
266 |
$request->addFields($fields);
|
267 |
return $pending ? $request : $request->execute();
|
268 |
}
|
269 |
+
public function createShiftSetting(array $fields = array(), array $params = array(), $pending = \false)
|
270 |
+
{
|
271 |
+
$this->assureId();
|
272 |
+
$param_types = array('external_id' => 'string', 'shift_feature_setting' => 'shift_feature_setting_enum');
|
273 |
+
$enums = array('shift_feature_setting_enum' => array('ALL_FEATURES_OFF', 'ALL_FEATURES_ON', 'SHIFT_COVER_ONLY_ON', 'SHIFT_VIEWER_ONLY_ON'));
|
274 |
+
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_POST, '/shift_settings', new \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject(), 'EDGE', array(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
275 |
+
$request->addParams($params);
|
276 |
+
$request->addFields($fields);
|
277 |
+
return $pending ? $request : $request->execute();
|
278 |
+
}
|
279 |
public function getVideos(array $fields = array(), array $params = array(), $pending = \false)
|
280 |
{
|
281 |
$this->assureId();
|
289 |
public function createVideo(array $fields = array(), array $params = array(), $pending = \false)
|
290 |
{
|
291 |
$this->assureId();
|
292 |
+
$param_types = array('adaptive_type' => 'string', 'animated_effect_id' => 'unsigned int', 'application_id' => 'string', 'asked_fun_fact_prompt_id' => 'unsigned int', 'audio_story_wave_animation_handle' => 'string', 'composer_entry_picker' => 'string', 'composer_entry_point' => 'string', 'composer_entry_time' => 'unsigned int', 'composer_session_events_log' => 'string', 'composer_session_id' => 'string', 'composer_source_surface' => 'string', 'composer_type' => 'string', 'container_type' => 'container_type_enum', 'content_category' => 'content_category_enum', 'creative_tools' => 'string', 'description' => 'string', 'embeddable' => 'bool', 'end_offset' => 'unsigned int', 'fbuploader_video_file_chunk' => 'string', 'file_size' => 'unsigned int', 'file_url' => 'string', 'fisheye_video_cropped' => 'bool', 'formatting' => 'formatting_enum', 'fov' => 'unsigned int', 'front_z_rotation' => 'float', 'fun_fact_prompt_id' => 'unsigned int', 'fun_fact_toastee_id' => 'unsigned int', 'guide' => 'list<list<unsigned int>>', 'guide_enabled' => 'bool', 'has_nickname' => 'bool', 'holiday_card' => 'string', 'initial_heading' => 'unsigned int', 'initial_pitch' => 'unsigned int', 'instant_game_entry_point_data' => 'string', 'is_boost_intended' => 'bool', 'is_explicit_share' => 'bool', 'is_group_linking_post' => 'bool', 'is_voice_clip' => 'bool', 'location_source_id' => 'string', 'manual_privacy' => 'bool', 'offer_like_post_id' => 'unsigned int', 'og_action_type_id' => 'string', 'og_icon_id' => 'string', 'og_object_id' => 'string', 'og_phrase' => 'string', 'og_suggestion_mechanism' => 'string', 'original_fov' => 'unsigned int', 'original_projection_type' => 'original_projection_type_enum', 'publish_event_id' => 'unsigned int', 'published' => 'bool', 'react_mode_metadata' => 'string', 'referenced_sticker_id' => 'string', 'replace_video_id' => 'string', 'sales_promo_id' => 'unsigned int', 'scheduled_publish_time' => 'unsigned int', 'slideshow_spec' => 'map', 'source' => 'string', 'source_instagram_media_id' => 'string', 'spherical' => 'bool', 'start_offset' => 'unsigned int', 'swap_mode' => 'swap_mode_enum', 'text_format_metadata' => 'string', 'throwback_camera_roll_media' => 'string', 'thumb' => 'file', 'time_since_original_post' => 'unsigned int', 'title' => 'string', 'transcode_setting_properties' => 'string', 'unpublished_content_type' => 'unpublished_content_type_enum', 'upload_phase' => 'upload_phase_enum', 'upload_session_id' => 'string', 'upload_setting_properties' => 'string', 'video_file_chunk' => 'string', 'video_id_original' => 'string', 'video_start_time_ms' => 'unsigned int', 'waterfall_id' => 'string');
|
293 |
$enums = array('container_type_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdVideoContainerTypeValues::getInstance()->getValues(), 'content_category_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdVideoContentCategoryValues::getInstance()->getValues(), 'formatting_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdVideoFormattingValues::getInstance()->getValues(), 'original_projection_type_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdVideoOriginalProjectionTypeValues::getInstance()->getValues(), 'swap_mode_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdVideoSwapModeValues::getInstance()->getValues(), 'unpublished_content_type_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdVideoUnpublishedContentTypeValues::getInstance()->getValues(), 'upload_phase_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\AdVideoUploadPhaseValues::getInstance()->getValues());
|
294 |
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_POST, '/videos', new \PYS_PRO_GLOBAL\FacebookAds\Object\AdVideo(), 'EDGE', \PYS_PRO_GLOBAL\FacebookAds\Object\AdVideo::getFieldsEnum()->getValues(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
295 |
$request->addParams($params);
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/JobsJob.php
ADDED
@@ -0,0 +1,96 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Copyright (c) 2015-present, Facebook, Inc. All rights reserved.
|
5 |
+
*
|
6 |
+
* You are hereby granted a non-exclusive, worldwide, royalty-free license to
|
7 |
+
* use, copy, modify, and distribute this software in source code or binary
|
8 |
+
* form for use in connection with the web services and APIs provided by
|
9 |
+
* Facebook.
|
10 |
+
*
|
11 |
+
* As with any software that integrates with the Facebook platform, your use
|
12 |
+
* of this software is subject to the Facebook Developer Principles and
|
13 |
+
* Policies [http://developers.facebook.com/policy/]. This copyright notice
|
14 |
+
* shall be included in all copies or substantial portions of the software.
|
15 |
+
*
|
16 |
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
17 |
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
18 |
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
19 |
+
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
20 |
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
21 |
+
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
22 |
+
* DEALINGS IN THE SOFTWARE.
|
23 |
+
*
|
24 |
+
*/
|
25 |
+
namespace PYS_PRO_GLOBAL\FacebookAds\Object;
|
26 |
+
|
27 |
+
use PYS_PRO_GLOBAL\FacebookAds\ApiRequest;
|
28 |
+
use PYS_PRO_GLOBAL\FacebookAds\Cursor;
|
29 |
+
use PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface;
|
30 |
+
use PYS_PRO_GLOBAL\FacebookAds\TypeChecker;
|
31 |
+
use PYS_PRO_GLOBAL\FacebookAds\Object\Fields\JobsJobFields;
|
32 |
+
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\JobsJobImageFetchStatusValues;
|
33 |
+
/**
|
34 |
+
* This class is auto-generated.
|
35 |
+
*
|
36 |
+
* For any issues or feature requests related to this class, please let us know
|
37 |
+
* on github and we'll fix in our codegen framework. We'll not be able to accept
|
38 |
+
* pull request for this class.
|
39 |
+
*
|
40 |
+
*/
|
41 |
+
class JobsJob extends \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject
|
42 |
+
{
|
43 |
+
/**
|
44 |
+
* @return JobsJobFields
|
45 |
+
*/
|
46 |
+
public static function getFieldsEnum()
|
47 |
+
{
|
48 |
+
return \PYS_PRO_GLOBAL\FacebookAds\Object\Fields\JobsJobFields::getInstance();
|
49 |
+
}
|
50 |
+
protected static function getReferencedEnums()
|
51 |
+
{
|
52 |
+
$ref_enums = array();
|
53 |
+
$ref_enums['ImageFetchStatus'] = \PYS_PRO_GLOBAL\FacebookAds\Object\Values\JobsJobImageFetchStatusValues::getInstance()->getValues();
|
54 |
+
return $ref_enums;
|
55 |
+
}
|
56 |
+
public function getAugmentedRealitiesMetadata(array $fields = array(), array $params = array(), $pending = \false)
|
57 |
+
{
|
58 |
+
$this->assureId();
|
59 |
+
$param_types = array();
|
60 |
+
$enums = array();
|
61 |
+
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_GET, '/augmented_realities_metadata', new \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject(), 'EDGE', array(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
62 |
+
$request->addParams($params);
|
63 |
+
$request->addFields($fields);
|
64 |
+
return $pending ? $request : $request->execute();
|
65 |
+
}
|
66 |
+
public function getChannelsToIntegrityStatus(array $fields = array(), array $params = array(), $pending = \false)
|
67 |
+
{
|
68 |
+
$this->assureId();
|
69 |
+
$param_types = array();
|
70 |
+
$enums = array();
|
71 |
+
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_GET, '/channels_to_integrity_status', new \PYS_PRO_GLOBAL\FacebookAds\Object\CatalogItemChannelsToIntegrityStatus(), 'EDGE', \PYS_PRO_GLOBAL\FacebookAds\Object\CatalogItemChannelsToIntegrityStatus::getFieldsEnum()->getValues(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
72 |
+
$request->addParams($params);
|
73 |
+
$request->addFields($fields);
|
74 |
+
return $pending ? $request : $request->execute();
|
75 |
+
}
|
76 |
+
public function getVideosMetadata(array $fields = array(), array $params = array(), $pending = \false)
|
77 |
+
{
|
78 |
+
$this->assureId();
|
79 |
+
$param_types = array();
|
80 |
+
$enums = array();
|
81 |
+
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_GET, '/videos_metadata', new \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject(), 'EDGE', array(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
82 |
+
$request->addParams($params);
|
83 |
+
$request->addFields($fields);
|
84 |
+
return $pending ? $request : $request->execute();
|
85 |
+
}
|
86 |
+
public function getSelf(array $fields = array(), array $params = array(), $pending = \false)
|
87 |
+
{
|
88 |
+
$this->assureId();
|
89 |
+
$param_types = array();
|
90 |
+
$enums = array();
|
91 |
+
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_GET, '/', new \PYS_PRO_GLOBAL\FacebookAds\Object\JobsJob(), 'NODE', \PYS_PRO_GLOBAL\FacebookAds\Object\JobsJob::getFieldsEnum()->getValues(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
92 |
+
$request->addParams($params);
|
93 |
+
$request->addFields($fields);
|
94 |
+
return $pending ? $request : $request->execute();
|
95 |
+
}
|
96 |
+
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/LiveVideo.php
CHANGED
@@ -62,13 +62,13 @@ class LiveVideo extends \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject
|
|
62 |
protected static function getReferencedEnums()
|
63 |
{
|
64 |
$ref_enums = array();
|
|
|
65 |
$ref_enums['Projection'] = \PYS_PRO_GLOBAL\FacebookAds\Object\Values\LiveVideoProjectionValues::getInstance()->getValues();
|
|
|
66 |
$ref_enums['SpatialAudioFormat'] = \PYS_PRO_GLOBAL\FacebookAds\Object\Values\LiveVideoSpatialAudioFormatValues::getInstance()->getValues();
|
67 |
$ref_enums['Status'] = \PYS_PRO_GLOBAL\FacebookAds\Object\Values\LiveVideoStatusValues::getInstance()->getValues();
|
68 |
$ref_enums['StereoscopicMode'] = \PYS_PRO_GLOBAL\FacebookAds\Object\Values\LiveVideoStereoscopicModeValues::getInstance()->getValues();
|
69 |
$ref_enums['StreamType'] = \PYS_PRO_GLOBAL\FacebookAds\Object\Values\LiveVideoStreamTypeValues::getInstance()->getValues();
|
70 |
-
$ref_enums['BroadcastStatus'] = \PYS_PRO_GLOBAL\FacebookAds\Object\Values\LiveVideoBroadcastStatusValues::getInstance()->getValues();
|
71 |
-
$ref_enums['Source'] = \PYS_PRO_GLOBAL\FacebookAds\Object\Values\LiveVideoSourceValues::getInstance()->getValues();
|
72 |
$ref_enums['LiveCommentModerationSetting'] = \PYS_PRO_GLOBAL\FacebookAds\Object\Values\LiveVideoLiveCommentModerationSettingValues::getInstance()->getValues();
|
73 |
$ref_enums['PersistentStreamKeyStatus'] = \PYS_PRO_GLOBAL\FacebookAds\Object\Values\LiveVideoPersistentStreamKeyStatusValues::getInstance()->getValues();
|
74 |
return $ref_enums;
|
@@ -186,7 +186,7 @@ class LiveVideo extends \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject
|
|
186 |
public function updateSelf(array $fields = array(), array $params = array(), $pending = \false)
|
187 |
{
|
188 |
$this->assureId();
|
189 |
-
$param_types = array('allow_bm_crossposting' => 'bool', 'content_tags' => 'list<string>', 'cross_share_to_group_ids' => 'list<string>', 'crossposting_actions' => 'list<map>', 'custom_labels' => 'list<string>', 'description' => 'string', 'direct_share_status' => 'unsigned int', 'embeddable' => 'bool', 'end_live_video' => 'bool', 'is_audio_only' => 'bool', 'is_manual_mode' => 'bool', 'live_comment_moderation_setting' => 'list<live_comment_moderation_setting_enum>', 'live_encoders' => 'list<string>', 'master_ingest_stream_id' => 'string', 'og_icon_id' => 'string', 'og_phrase' => 'string', 'persistent_stream_key_status' => 'persistent_stream_key_status_enum', 'place' => 'Object', '
|
190 |
$enums = array('live_comment_moderation_setting_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\LiveVideoLiveCommentModerationSettingValues::getInstance()->getValues(), 'persistent_stream_key_status_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\LiveVideoPersistentStreamKeyStatusValues::getInstance()->getValues(), 'status_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\LiveVideoStatusValues::getInstance()->getValues(), 'stream_type_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\LiveVideoStreamTypeValues::getInstance()->getValues());
|
191 |
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_POST, '/', new \PYS_PRO_GLOBAL\FacebookAds\Object\LiveVideo(), 'NODE', \PYS_PRO_GLOBAL\FacebookAds\Object\LiveVideo::getFieldsEnum()->getValues(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
192 |
$request->addParams($params);
|
62 |
protected static function getReferencedEnums()
|
63 |
{
|
64 |
$ref_enums = array();
|
65 |
+
$ref_enums['BroadcastStatus'] = \PYS_PRO_GLOBAL\FacebookAds\Object\Values\LiveVideoBroadcastStatusValues::getInstance()->getValues();
|
66 |
$ref_enums['Projection'] = \PYS_PRO_GLOBAL\FacebookAds\Object\Values\LiveVideoProjectionValues::getInstance()->getValues();
|
67 |
+
$ref_enums['Source'] = \PYS_PRO_GLOBAL\FacebookAds\Object\Values\LiveVideoSourceValues::getInstance()->getValues();
|
68 |
$ref_enums['SpatialAudioFormat'] = \PYS_PRO_GLOBAL\FacebookAds\Object\Values\LiveVideoSpatialAudioFormatValues::getInstance()->getValues();
|
69 |
$ref_enums['Status'] = \PYS_PRO_GLOBAL\FacebookAds\Object\Values\LiveVideoStatusValues::getInstance()->getValues();
|
70 |
$ref_enums['StereoscopicMode'] = \PYS_PRO_GLOBAL\FacebookAds\Object\Values\LiveVideoStereoscopicModeValues::getInstance()->getValues();
|
71 |
$ref_enums['StreamType'] = \PYS_PRO_GLOBAL\FacebookAds\Object\Values\LiveVideoStreamTypeValues::getInstance()->getValues();
|
|
|
|
|
72 |
$ref_enums['LiveCommentModerationSetting'] = \PYS_PRO_GLOBAL\FacebookAds\Object\Values\LiveVideoLiveCommentModerationSettingValues::getInstance()->getValues();
|
73 |
$ref_enums['PersistentStreamKeyStatus'] = \PYS_PRO_GLOBAL\FacebookAds\Object\Values\LiveVideoPersistentStreamKeyStatusValues::getInstance()->getValues();
|
74 |
return $ref_enums;
|
186 |
public function updateSelf(array $fields = array(), array $params = array(), $pending = \false)
|
187 |
{
|
188 |
$this->assureId();
|
189 |
+
$param_types = array('allow_bm_crossposting' => 'bool', 'content_tags' => 'list<string>', 'cross_share_to_group_ids' => 'list<string>', 'crossposting_actions' => 'list<map>', 'custom_labels' => 'list<string>', 'description' => 'string', 'direct_share_status' => 'unsigned int', 'embeddable' => 'bool', 'end_live_video' => 'bool', 'is_audio_only' => 'bool', 'is_manual_mode' => 'bool', 'live_comment_moderation_setting' => 'list<live_comment_moderation_setting_enum>', 'live_encoders' => 'list<string>', 'master_ingest_stream_id' => 'string', 'og_icon_id' => 'string', 'og_phrase' => 'string', 'persistent_stream_key_status' => 'persistent_stream_key_status_enum', 'place' => 'Object', 'privacy' => 'string', 'published' => 'bool', 'schedule_custom_profile_image' => 'file', 'schedule_feed_background_image' => 'file', 'sponsor_id' => 'string', 'sponsor_relationship' => 'unsigned int', 'status' => 'status_enum', 'stream_type' => 'stream_type_enum', 'tags' => 'list<int>', 'targeting' => 'Object', 'title' => 'string');
|
190 |
$enums = array('live_comment_moderation_setting_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\LiveVideoLiveCommentModerationSettingValues::getInstance()->getValues(), 'persistent_stream_key_status_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\LiveVideoPersistentStreamKeyStatusValues::getInstance()->getValues(), 'status_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\LiveVideoStatusValues::getInstance()->getValues(), 'stream_type_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\LiveVideoStreamTypeValues::getInstance()->getValues());
|
191 |
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_POST, '/', new \PYS_PRO_GLOBAL\FacebookAds\Object\LiveVideo(), 'NODE', \PYS_PRO_GLOBAL\FacebookAds\Object\LiveVideo::getFieldsEnum()->getValues(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
192 |
$request->addParams($params);
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/LiveVideoRecommendedEncoderSettings.php
ADDED
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Copyright (c) 2015-present, Facebook, Inc. All rights reserved.
|
5 |
+
*
|
6 |
+
* You are hereby granted a non-exclusive, worldwide, royalty-free license to
|
7 |
+
* use, copy, modify, and distribute this software in source code or binary
|
8 |
+
* form for use in connection with the web services and APIs provided by
|
9 |
+
* Facebook.
|
10 |
+
*
|
11 |
+
* As with any software that integrates with the Facebook platform, your use
|
12 |
+
* of this software is subject to the Facebook Developer Principles and
|
13 |
+
* Policies [http://developers.facebook.com/policy/]. This copyright notice
|
14 |
+
* shall be included in all copies or substantial portions of the software.
|
15 |
+
*
|
16 |
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
17 |
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
18 |
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
19 |
+
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
20 |
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
21 |
+
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
22 |
+
* DEALINGS IN THE SOFTWARE.
|
23 |
+
*
|
24 |
+
*/
|
25 |
+
namespace PYS_PRO_GLOBAL\FacebookAds\Object;
|
26 |
+
|
27 |
+
use PYS_PRO_GLOBAL\FacebookAds\ApiRequest;
|
28 |
+
use PYS_PRO_GLOBAL\FacebookAds\Cursor;
|
29 |
+
use PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface;
|
30 |
+
use PYS_PRO_GLOBAL\FacebookAds\TypeChecker;
|
31 |
+
use PYS_PRO_GLOBAL\FacebookAds\Object\Fields\LiveVideoRecommendedEncoderSettingsFields;
|
32 |
+
/**
|
33 |
+
* This class is auto-generated.
|
34 |
+
*
|
35 |
+
* For any issues or feature requests related to this class, please let us know
|
36 |
+
* on github and we'll fix in our codegen framework. We'll not be able to accept
|
37 |
+
* pull request for this class.
|
38 |
+
*
|
39 |
+
*/
|
40 |
+
class LiveVideoRecommendedEncoderSettings extends \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractObject
|
41 |
+
{
|
42 |
+
/**
|
43 |
+
* @return LiveVideoRecommendedEncoderSettingsFields
|
44 |
+
*/
|
45 |
+
public static function getFieldsEnum()
|
46 |
+
{
|
47 |
+
return \PYS_PRO_GLOBAL\FacebookAds\Object\Fields\LiveVideoRecommendedEncoderSettingsFields::getInstance();
|
48 |
+
}
|
49 |
+
protected static function getReferencedEnums()
|
50 |
+
{
|
51 |
+
$ref_enums = array();
|
52 |
+
return $ref_enums;
|
53 |
+
}
|
54 |
+
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/{Referral.php → LocalServiceBusiness.php}
RENAMED
@@ -28,7 +28,8 @@ use PYS_PRO_GLOBAL\FacebookAds\ApiRequest;
|
|
28 |
use PYS_PRO_GLOBAL\FacebookAds\Cursor;
|
29 |
use PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface;
|
30 |
use PYS_PRO_GLOBAL\FacebookAds\TypeChecker;
|
31 |
-
use PYS_PRO_GLOBAL\FacebookAds\Object\Fields\
|
|
|
32 |
/**
|
33 |
* This class is auto-generated.
|
34 |
*
|
@@ -37,26 +38,27 @@ use PYS_PRO_GLOBAL\FacebookAds\Object\Fields\ReferralFields;
|
|
37 |
* pull request for this class.
|
38 |
*
|
39 |
*/
|
40 |
-
class
|
41 |
{
|
42 |
/**
|
43 |
-
* @return
|
44 |
*/
|
45 |
public static function getFieldsEnum()
|
46 |
{
|
47 |
-
return \PYS_PRO_GLOBAL\FacebookAds\Object\Fields\
|
48 |
}
|
49 |
protected static function getReferencedEnums()
|
50 |
{
|
51 |
$ref_enums = array();
|
|
|
52 |
return $ref_enums;
|
53 |
}
|
54 |
-
public function
|
55 |
{
|
56 |
$this->assureId();
|
57 |
$param_types = array();
|
58 |
$enums = array();
|
59 |
-
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::
|
60 |
$request->addParams($params);
|
61 |
$request->addFields($fields);
|
62 |
return $pending ? $request : $request->execute();
|
@@ -66,17 +68,7 @@ class Referral extends \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject
|
|
66 |
$this->assureId();
|
67 |
$param_types = array();
|
68 |
$enums = array();
|
69 |
-
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_GET, '/', new \PYS_PRO_GLOBAL\FacebookAds\Object\
|
70 |
-
$request->addParams($params);
|
71 |
-
$request->addFields($fields);
|
72 |
-
return $pending ? $request : $request->execute();
|
73 |
-
}
|
74 |
-
public function updateSelf(array $fields = array(), array $params = array(), $pending = \false)
|
75 |
-
{
|
76 |
-
$this->assureId();
|
77 |
-
$param_types = array('invite_limit' => 'unsigned int', 'messenger_cta' => 'string', 'messenger_promotion_text' => 'string', 'namespace' => 'unsigned int', 'need_promo_code' => 'bool', 'offer_origin' => 'string', 'privacy_policy_link' => 'string', 'promotion_text' => 'string', 'receiver_benefits_text' => 'string', 'referral_link_uri' => 'string', 'sender_benefits_text' => 'string', 'terms_and_condition_link' => 'string');
|
78 |
-
$enums = array();
|
79 |
-
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_POST, '/', new \PYS_PRO_GLOBAL\FacebookAds\Object\Referral(), 'NODE', \PYS_PRO_GLOBAL\FacebookAds\Object\Referral::getFieldsEnum()->getValues(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
80 |
$request->addParams($params);
|
81 |
$request->addFields($fields);
|
82 |
return $pending ? $request : $request->execute();
|
28 |
use PYS_PRO_GLOBAL\FacebookAds\Cursor;
|
29 |
use PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface;
|
30 |
use PYS_PRO_GLOBAL\FacebookAds\TypeChecker;
|
31 |
+
use PYS_PRO_GLOBAL\FacebookAds\Object\Fields\LocalServiceBusinessFields;
|
32 |
+
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\LocalServiceBusinessImageFetchStatusValues;
|
33 |
/**
|
34 |
* This class is auto-generated.
|
35 |
*
|
38 |
* pull request for this class.
|
39 |
*
|
40 |
*/
|
41 |
+
class LocalServiceBusiness extends \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject
|
42 |
{
|
43 |
/**
|
44 |
+
* @return LocalServiceBusinessFields
|
45 |
*/
|
46 |
public static function getFieldsEnum()
|
47 |
{
|
48 |
+
return \PYS_PRO_GLOBAL\FacebookAds\Object\Fields\LocalServiceBusinessFields::getInstance();
|
49 |
}
|
50 |
protected static function getReferencedEnums()
|
51 |
{
|
52 |
$ref_enums = array();
|
53 |
+
$ref_enums['ImageFetchStatus'] = \PYS_PRO_GLOBAL\FacebookAds\Object\Values\LocalServiceBusinessImageFetchStatusValues::getInstance()->getValues();
|
54 |
return $ref_enums;
|
55 |
}
|
56 |
+
public function getChannelsToIntegrityStatus(array $fields = array(), array $params = array(), $pending = \false)
|
57 |
{
|
58 |
$this->assureId();
|
59 |
$param_types = array();
|
60 |
$enums = array();
|
61 |
+
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_GET, '/channels_to_integrity_status', new \PYS_PRO_GLOBAL\FacebookAds\Object\CatalogItemChannelsToIntegrityStatus(), 'EDGE', \PYS_PRO_GLOBAL\FacebookAds\Object\CatalogItemChannelsToIntegrityStatus::getFieldsEnum()->getValues(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
62 |
$request->addParams($params);
|
63 |
$request->addFields($fields);
|
64 |
return $pending ? $request : $request->execute();
|
68 |
$this->assureId();
|
69 |
$param_types = array();
|
70 |
$enums = array();
|
71 |
+
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_GET, '/', new \PYS_PRO_GLOBAL\FacebookAds\Object\LocalServiceBusiness(), 'NODE', \PYS_PRO_GLOBAL\FacebookAds\Object\LocalServiceBusiness::getFieldsEnum()->getValues(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
72 |
$request->addParams($params);
|
73 |
$request->addFields($fields);
|
74 |
return $pending ? $request : $request->execute();
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/ManagedPartnerBusiness.php
ADDED
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Copyright (c) 2015-present, Facebook, Inc. All rights reserved.
|
5 |
+
*
|
6 |
+
* You are hereby granted a non-exclusive, worldwide, royalty-free license to
|
7 |
+
* use, copy, modify, and distribute this software in source code or binary
|
8 |
+
* form for use in connection with the web services and APIs provided by
|
9 |
+
* Facebook.
|
10 |
+
*
|
11 |
+
* As with any software that integrates with the Facebook platform, your use
|
12 |
+
* of this software is subject to the Facebook Developer Principles and
|
13 |
+
* Policies [http://developers.facebook.com/policy/]. This copyright notice
|
14 |
+
* shall be included in all copies or substantial portions of the software.
|
15 |
+
*
|
16 |
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
17 |
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
18 |
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
19 |
+
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
20 |
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
21 |
+
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
22 |
+
* DEALINGS IN THE SOFTWARE.
|
23 |
+
*
|
24 |
+
*/
|
25 |
+
namespace PYS_PRO_GLOBAL\FacebookAds\Object;
|
26 |
+
|
27 |
+
use PYS_PRO_GLOBAL\FacebookAds\ApiRequest;
|
28 |
+
use PYS_PRO_GLOBAL\FacebookAds\Cursor;
|
29 |
+
use PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface;
|
30 |
+
use PYS_PRO_GLOBAL\FacebookAds\TypeChecker;
|
31 |
+
use PYS_PRO_GLOBAL\FacebookAds\Object\Fields\ManagedPartnerBusinessFields;
|
32 |
+
/**
|
33 |
+
* This class is auto-generated.
|
34 |
+
*
|
35 |
+
* For any issues or feature requests related to this class, please let us know
|
36 |
+
* on github and we'll fix in our codegen framework. We'll not be able to accept
|
37 |
+
* pull request for this class.
|
38 |
+
*
|
39 |
+
*/
|
40 |
+
class ManagedPartnerBusiness extends \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractObject
|
41 |
+
{
|
42 |
+
/**
|
43 |
+
* @return ManagedPartnerBusinessFields
|
44 |
+
*/
|
45 |
+
public static function getFieldsEnum()
|
46 |
+
{
|
47 |
+
return \PYS_PRO_GLOBAL\FacebookAds\Object\Fields\ManagedPartnerBusinessFields::getInstance();
|
48 |
+
}
|
49 |
+
protected static function getReferencedEnums()
|
50 |
+
{
|
51 |
+
$ref_enums = array();
|
52 |
+
return $ref_enums;
|
53 |
+
}
|
54 |
+
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/MeasurementUploadEvent.php
DELETED
@@ -1,91 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
/**
|
4 |
-
* Copyright (c) 2015-present, Facebook, Inc. All rights reserved.
|
5 |
-
*
|
6 |
-
* You are hereby granted a non-exclusive, worldwide, royalty-free license to
|
7 |
-
* use, copy, modify, and distribute this software in source code or binary
|
8 |
-
* form for use in connection with the web services and APIs provided by
|
9 |
-
* Facebook.
|
10 |
-
*
|
11 |
-
* As with any software that integrates with the Facebook platform, your use
|
12 |
-
* of this software is subject to the Facebook Developer Principles and
|
13 |
-
* Policies [http://developers.facebook.com/policy/]. This copyright notice
|
14 |
-
* shall be included in all copies or substantial portions of the software.
|
15 |
-
*
|
16 |
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
17 |
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
18 |
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
19 |
-
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
20 |
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
21 |
-
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
22 |
-
* DEALINGS IN THE SOFTWARE.
|
23 |
-
*
|
24 |
-
*/
|
25 |
-
namespace PYS_PRO_GLOBAL\FacebookAds\Object;
|
26 |
-
|
27 |
-
use PYS_PRO_GLOBAL\FacebookAds\ApiRequest;
|
28 |
-
use PYS_PRO_GLOBAL\FacebookAds\Cursor;
|
29 |
-
use PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface;
|
30 |
-
use PYS_PRO_GLOBAL\FacebookAds\TypeChecker;
|
31 |
-
use PYS_PRO_GLOBAL\FacebookAds\Object\Fields\MeasurementUploadEventFields;
|
32 |
-
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\MeasurementUploadEventAggregationLevelValues;
|
33 |
-
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\MeasurementUploadEventEventStatusValues;
|
34 |
-
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\MeasurementUploadEventLookbackWindowValues;
|
35 |
-
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\MeasurementUploadEventMatchUniverseValues;
|
36 |
-
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\MeasurementUploadEventTimezoneValues;
|
37 |
-
/**
|
38 |
-
* This class is auto-generated.
|
39 |
-
*
|
40 |
-
* For any issues or feature requests related to this class, please let us know
|
41 |
-
* on github and we'll fix in our codegen framework. We'll not be able to accept
|
42 |
-
* pull request for this class.
|
43 |
-
*
|
44 |
-
*/
|
45 |
-
class MeasurementUploadEvent extends \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject
|
46 |
-
{
|
47 |
-
/**
|
48 |
-
* @deprecated getEndpoint function is deprecated
|
49 |
-
*/
|
50 |
-
protected function getEndpoint()
|
51 |
-
{
|
52 |
-
return 'upload_event';
|
53 |
-
}
|
54 |
-
/**
|
55 |
-
* @return MeasurementUploadEventFields
|
56 |
-
*/
|
57 |
-
public static function getFieldsEnum()
|
58 |
-
{
|
59 |
-
return \PYS_PRO_GLOBAL\FacebookAds\Object\Fields\MeasurementUploadEventFields::getInstance();
|
60 |
-
}
|
61 |
-
protected static function getReferencedEnums()
|
62 |
-
{
|
63 |
-
$ref_enums = array();
|
64 |
-
$ref_enums['AggregationLevel'] = \PYS_PRO_GLOBAL\FacebookAds\Object\Values\MeasurementUploadEventAggregationLevelValues::getInstance()->getValues();
|
65 |
-
$ref_enums['EventStatus'] = \PYS_PRO_GLOBAL\FacebookAds\Object\Values\MeasurementUploadEventEventStatusValues::getInstance()->getValues();
|
66 |
-
$ref_enums['LookbackWindow'] = \PYS_PRO_GLOBAL\FacebookAds\Object\Values\MeasurementUploadEventLookbackWindowValues::getInstance()->getValues();
|
67 |
-
$ref_enums['MatchUniverse'] = \PYS_PRO_GLOBAL\FacebookAds\Object\Values\MeasurementUploadEventMatchUniverseValues::getInstance()->getValues();
|
68 |
-
$ref_enums['Timezone'] = \PYS_PRO_GLOBAL\FacebookAds\Object\Values\MeasurementUploadEventTimezoneValues::getInstance()->getValues();
|
69 |
-
return $ref_enums;
|
70 |
-
}
|
71 |
-
public function getSelf(array $fields = array(), array $params = array(), $pending = \false)
|
72 |
-
{
|
73 |
-
$this->assureId();
|
74 |
-
$param_types = array();
|
75 |
-
$enums = array();
|
76 |
-
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_GET, '/', new \PYS_PRO_GLOBAL\FacebookAds\Object\MeasurementUploadEvent(), 'NODE', \PYS_PRO_GLOBAL\FacebookAds\Object\MeasurementUploadEvent::getFieldsEnum()->getValues(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
77 |
-
$request->addParams($params);
|
78 |
-
$request->addFields($fields);
|
79 |
-
return $pending ? $request : $request->execute();
|
80 |
-
}
|
81 |
-
public function updateSelf(array $fields = array(), array $params = array(), $pending = \false)
|
82 |
-
{
|
83 |
-
$this->assureId();
|
84 |
-
$param_types = array('aggregation_level' => 'aggregation_level_enum', 'conversion_end_date' => 'string', 'conversion_start_date' => 'string', 'event_status' => 'event_status_enum', 'lookback_window' => 'lookback_window_enum', 'match_universe' => 'match_universe_enum', 'partner' => 'string', 'timezone' => 'timezone_enum', 'upload_tag' => 'string');
|
85 |
-
$enums = array('aggregation_level_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\MeasurementUploadEventAggregationLevelValues::getInstance()->getValues(), 'event_status_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\MeasurementUploadEventEventStatusValues::getInstance()->getValues(), 'lookback_window_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\MeasurementUploadEventLookbackWindowValues::getInstance()->getValues(), 'match_universe_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\MeasurementUploadEventMatchUniverseValues::getInstance()->getValues(), 'timezone_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\MeasurementUploadEventTimezoneValues::getInstance()->getValues());
|
86 |
-
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_POST, '/', new \PYS_PRO_GLOBAL\FacebookAds\Object\MeasurementUploadEvent(), 'NODE', \PYS_PRO_GLOBAL\FacebookAds\Object\MeasurementUploadEvent::getFieldsEnum()->getValues(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
87 |
-
$request->addParams($params);
|
88 |
-
$request->addFields($fields);
|
89 |
-
return $pending ? $request : $request->execute();
|
90 |
-
}
|
91 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/MessagingFeatureStatus.php
ADDED
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Copyright (c) 2015-present, Facebook, Inc. All rights reserved.
|
5 |
+
*
|
6 |
+
* You are hereby granted a non-exclusive, worldwide, royalty-free license to
|
7 |
+
* use, copy, modify, and distribute this software in source code or binary
|
8 |
+
* form for use in connection with the web services and APIs provided by
|
9 |
+
* Facebook.
|
10 |
+
*
|
11 |
+
* As with any software that integrates with the Facebook platform, your use
|
12 |
+
* of this software is subject to the Facebook Developer Principles and
|
13 |
+
* Policies [http://developers.facebook.com/policy/]. This copyright notice
|
14 |
+
* shall be included in all copies or substantial portions of the software.
|
15 |
+
*
|
16 |
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
17 |
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
18 |
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
19 |
+
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
20 |
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
21 |
+
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
22 |
+
* DEALINGS IN THE SOFTWARE.
|
23 |
+
*
|
24 |
+
*/
|
25 |
+
namespace PYS_PRO_GLOBAL\FacebookAds\Object;
|
26 |
+
|
27 |
+
use PYS_PRO_GLOBAL\FacebookAds\ApiRequest;
|
28 |
+
use PYS_PRO_GLOBAL\FacebookAds\Cursor;
|
29 |
+
use PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface;
|
30 |
+
use PYS_PRO_GLOBAL\FacebookAds\TypeChecker;
|
31 |
+
use PYS_PRO_GLOBAL\FacebookAds\Object\Fields\MessagingFeatureStatusFields;
|
32 |
+
/**
|
33 |
+
* This class is auto-generated.
|
34 |
+
*
|
35 |
+
* For any issues or feature requests related to this class, please let us know
|
36 |
+
* on github and we'll fix in our codegen framework. We'll not be able to accept
|
37 |
+
* pull request for this class.
|
38 |
+
*
|
39 |
+
*/
|
40 |
+
class MessagingFeatureStatus extends \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractObject
|
41 |
+
{
|
42 |
+
/**
|
43 |
+
* @return MessagingFeatureStatusFields
|
44 |
+
*/
|
45 |
+
public static function getFieldsEnum()
|
46 |
+
{
|
47 |
+
return \PYS_PRO_GLOBAL\FacebookAds\Object\Fields\MessagingFeatureStatusFields::getInstance();
|
48 |
+
}
|
49 |
+
protected static function getReferencedEnums()
|
50 |
+
{
|
51 |
+
$ref_enums = array();
|
52 |
+
return $ref_enums;
|
53 |
+
}
|
54 |
+
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/MessengerDestinationPageWelcomeMessage.php
CHANGED
@@ -51,14 +51,4 @@ class MessengerDestinationPageWelcomeMessage extends \PYS_PRO_GLOBAL\FacebookAds
|
|
51 |
$ref_enums = array();
|
52 |
return $ref_enums;
|
53 |
}
|
54 |
-
public function getSelf(array $fields = array(), array $params = array(), $pending = \false)
|
55 |
-
{
|
56 |
-
$this->assureId();
|
57 |
-
$param_types = array();
|
58 |
-
$enums = array();
|
59 |
-
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_GET, '/', new \PYS_PRO_GLOBAL\FacebookAds\Object\MessengerDestinationPageWelcomeMessage(), 'NODE', \PYS_PRO_GLOBAL\FacebookAds\Object\MessengerDestinationPageWelcomeMessage::getFieldsEnum()->getValues(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
60 |
-
$request->addParams($params);
|
61 |
-
$request->addFields($fields);
|
62 |
-
return $pending ? $request : $request->execute();
|
63 |
-
}
|
64 |
}
|
51 |
$ref_enums = array();
|
52 |
return $ref_enums;
|
53 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
54 |
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Page.php
CHANGED
@@ -59,12 +59,18 @@ use PYS_PRO_GLOBAL\FacebookAds\Object\Values\LiveVideoStreamTypeValues;
|
|
59 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\MediaFingerprintFingerprintContentTypeValues;
|
60 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\NativeOfferBarcodeTypeValues;
|
61 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\NativeOfferLocationTypeValues;
|
|
|
62 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\PageAttireValues;
|
63 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\PageBackdatedTimeGranularityValues;
|
64 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\PageCheckinEntryPointValues;
|
|
|
|
|
65 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\PageFoodStylesValues;
|
66 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\PageFormattingValues;
|
|
|
|
|
67 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\PageMessagingTypeValues;
|
|
|
68 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\PageModelValues;
|
69 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\PageNotificationTypeValues;
|
70 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\PagePermittedTasksValues;
|
@@ -123,6 +129,12 @@ class Page extends \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject
|
|
123 |
$ref_enums['TemporaryStatus'] = \PYS_PRO_GLOBAL\FacebookAds\Object\Values\PageTemporaryStatusValues::getInstance()->getValues();
|
124 |
$ref_enums['PermittedTasks'] = \PYS_PRO_GLOBAL\FacebookAds\Object\Values\PagePermittedTasksValues::getInstance()->getValues();
|
125 |
$ref_enums['Tasks'] = \PYS_PRO_GLOBAL\FacebookAds\Object\Values\PageTasksValues::getInstance()->getValues();
|
|
|
|
|
|
|
|
|
|
|
|
|
126 |
$ref_enums['BackdatedTimeGranularity'] = \PYS_PRO_GLOBAL\FacebookAds\Object\Values\PageBackdatedTimeGranularityValues::getInstance()->getValues();
|
127 |
$ref_enums['CheckinEntryPoint'] = \PYS_PRO_GLOBAL\FacebookAds\Object\Values\PageCheckinEntryPointValues::getInstance()->getValues();
|
128 |
$ref_enums['Formatting'] = \PYS_PRO_GLOBAL\FacebookAds\Object\Values\PageFormattingValues::getInstance()->getValues();
|
@@ -240,16 +252,6 @@ class Page extends \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject
|
|
240 |
$request->addFields($fields);
|
241 |
return $pending ? $request : $request->execute();
|
242 |
}
|
243 |
-
public function getAudioIsrcs(array $fields = array(), array $params = array(), $pending = \false)
|
244 |
-
{
|
245 |
-
$this->assureId();
|
246 |
-
$param_types = array();
|
247 |
-
$enums = array();
|
248 |
-
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_GET, '/audio_isrcs', new \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject(), 'EDGE', array(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
249 |
-
$request->addParams($params);
|
250 |
-
$request->addFields($fields);
|
251 |
-
return $pending ? $request : $request->execute();
|
252 |
-
}
|
253 |
public function deleteBlocked(array $fields = array(), array $params = array(), $pending = \false)
|
254 |
{
|
255 |
$this->assureId();
|
@@ -280,22 +282,22 @@ class Page extends \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject
|
|
280 |
$request->addFields($fields);
|
281 |
return $pending ? $request : $request->execute();
|
282 |
}
|
283 |
-
public function
|
284 |
{
|
285 |
$this->assureId();
|
286 |
-
$param_types = array('
|
287 |
-
$enums = array(
|
288 |
-
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::
|
289 |
$request->addParams($params);
|
290 |
$request->addFields($fields);
|
291 |
return $pending ? $request : $request->execute();
|
292 |
}
|
293 |
-
public function
|
294 |
{
|
295 |
$this->assureId();
|
296 |
-
$param_types = array('
|
297 |
$enums = array();
|
298 |
-
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::
|
299 |
$request->addParams($params);
|
300 |
$request->addFields($fields);
|
301 |
return $pending ? $request : $request->execute();
|
@@ -350,6 +352,26 @@ class Page extends \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject
|
|
350 |
$request->addFields($fields);
|
351 |
return $pending ? $request : $request->execute();
|
352 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
353 |
public function getClaimedUrls(array $fields = array(), array $params = array(), $pending = \false)
|
354 |
{
|
355 |
$this->assureId();
|
@@ -424,7 +446,7 @@ class Page extends \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject
|
|
424 |
{
|
425 |
$this->assureId();
|
426 |
$param_types = array('action' => 'action_enum', 'action_reason' => 'action_reason_enum', 'countries' => 'Object', 'match_content_type' => 'match_content_type_enum', 'matched_asset_id' => 'string', 'reference_asset_id' => 'string');
|
427 |
-
$enums = array('action_enum' => array('BLOCK', 'CLAIM_AD_EARNINGS', 'MANUAL_REVIEW', 'MONITOR', 'REQUEST_TAKEDOWN'), 'action_reason_enum' => array('ARTIST_OBJECTION', 'OBJECTIONABLE_CONTENT', 'PREMIUM_MUSIC_VIDEO', 'PRERELEASE_CONTENT', 'PRODUCT_PARAMETERS', 'RESTRICTED_CONTENT', 'UNAUTHORIZED_COMMERCIAL_USE'), 'match_content_type_enum' => array('AUDIO_ONLY', 'VIDEO_AND_AUDIO', 'VIDEO_ONLY'));
|
428 |
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_POST, '/copyright_manual_claims', new \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject(), 'EDGE', array(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
429 |
$request->addParams($params);
|
430 |
$request->addFields($fields);
|
@@ -463,7 +485,7 @@ class Page extends \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject
|
|
463 |
public function createCustomLabel(array $fields = array(), array $params = array(), $pending = \false)
|
464 |
{
|
465 |
$this->assureId();
|
466 |
-
$param_types = array('name' => 'string');
|
467 |
$enums = array();
|
468 |
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_POST, '/custom_labels', new \PYS_PRO_GLOBAL\FacebookAds\Object\PageUserMessageThreadLabel(), 'EDGE', \PYS_PRO_GLOBAL\FacebookAds\Object\PageUserMessageThreadLabel::getFieldsEnum()->getValues(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
469 |
$request->addParams($params);
|
@@ -600,6 +622,16 @@ class Page extends \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject
|
|
600 |
$request->addFields($fields);
|
601 |
return $pending ? $request : $request->execute();
|
602 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
603 |
public function getInstagramAccounts(array $fields = array(), array $params = array(), $pending = \false)
|
604 |
{
|
605 |
$this->assureId();
|
@@ -713,7 +745,7 @@ class Page extends \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject
|
|
713 |
public function createLiveVideo(array $fields = array(), array $params = array(), $pending = \false)
|
714 |
{
|
715 |
$this->assureId();
|
716 |
-
$param_types = array('content_tags' => 'list<string>', 'crossposting_actions' => 'list<map>', 'custom_labels' => 'list<string>', 'description' => 'string', 'enable_backup_ingest' => 'bool', 'encoding_settings' => 'string', 'fisheye_video_cropped' => 'bool', 'front_z_rotation' => 'float', 'game_show' => 'map', 'is_audio_only' => 'bool', 'is_spherical' => 'bool', 'live_encoders' => 'list<string>', 'original_fov' => 'unsigned int', '
|
717 |
$enums = array('projection_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\LiveVideoProjectionValues::getInstance()->getValues(), 'spatial_audio_format_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\LiveVideoSpatialAudioFormatValues::getInstance()->getValues(), 'status_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\LiveVideoStatusValues::getInstance()->getValues(), 'stereoscopic_mode_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\LiveVideoStereoscopicModeValues::getInstance()->getValues(), 'stream_type_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\LiveVideoStreamTypeValues::getInstance()->getValues());
|
718 |
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_POST, '/live_videos', new \PYS_PRO_GLOBAL\FacebookAds\Object\LiveVideo(), 'EDGE', \PYS_PRO_GLOBAL\FacebookAds\Object\LiveVideo::getFieldsEnum()->getValues(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
719 |
$request->addParams($params);
|
59 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\MediaFingerprintFingerprintContentTypeValues;
|
60 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\NativeOfferBarcodeTypeValues;
|
61 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\NativeOfferLocationTypeValues;
|
62 |
+
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\PageAlignmentValues;
|
63 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\PageAttireValues;
|
64 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\PageBackdatedTimeGranularityValues;
|
65 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\PageCheckinEntryPointValues;
|
66 |
+
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\PageEntryPointIconValues;
|
67 |
+
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\PageEntryPointLabelValues;
|
68 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\PageFoodStylesValues;
|
69 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\PageFormattingValues;
|
70 |
+
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\PageGreetingDialogDisplayValues;
|
71 |
+
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\PageGuestChatModeValues;
|
72 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\PageMessagingTypeValues;
|
73 |
+
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\PageMobileChatDisplayValues;
|
74 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\PageModelValues;
|
75 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\PageNotificationTypeValues;
|
76 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\PagePermittedTasksValues;
|
129 |
$ref_enums['TemporaryStatus'] = \PYS_PRO_GLOBAL\FacebookAds\Object\Values\PageTemporaryStatusValues::getInstance()->getValues();
|
130 |
$ref_enums['PermittedTasks'] = \PYS_PRO_GLOBAL\FacebookAds\Object\Values\PagePermittedTasksValues::getInstance()->getValues();
|
131 |
$ref_enums['Tasks'] = \PYS_PRO_GLOBAL\FacebookAds\Object\Values\PageTasksValues::getInstance()->getValues();
|
132 |
+
$ref_enums['Alignment'] = \PYS_PRO_GLOBAL\FacebookAds\Object\Values\PageAlignmentValues::getInstance()->getValues();
|
133 |
+
$ref_enums['EntryPointIcon'] = \PYS_PRO_GLOBAL\FacebookAds\Object\Values\PageEntryPointIconValues::getInstance()->getValues();
|
134 |
+
$ref_enums['EntryPointLabel'] = \PYS_PRO_GLOBAL\FacebookAds\Object\Values\PageEntryPointLabelValues::getInstance()->getValues();
|
135 |
+
$ref_enums['GreetingDialogDisplay'] = \PYS_PRO_GLOBAL\FacebookAds\Object\Values\PageGreetingDialogDisplayValues::getInstance()->getValues();
|
136 |
+
$ref_enums['GuestChatMode'] = \PYS_PRO_GLOBAL\FacebookAds\Object\Values\PageGuestChatModeValues::getInstance()->getValues();
|
137 |
+
$ref_enums['MobileChatDisplay'] = \PYS_PRO_GLOBAL\FacebookAds\Object\Values\PageMobileChatDisplayValues::getInstance()->getValues();
|
138 |
$ref_enums['BackdatedTimeGranularity'] = \PYS_PRO_GLOBAL\FacebookAds\Object\Values\PageBackdatedTimeGranularityValues::getInstance()->getValues();
|
139 |
$ref_enums['CheckinEntryPoint'] = \PYS_PRO_GLOBAL\FacebookAds\Object\Values\PageCheckinEntryPointValues::getInstance()->getValues();
|
140 |
$ref_enums['Formatting'] = \PYS_PRO_GLOBAL\FacebookAds\Object\Values\PageFormattingValues::getInstance()->getValues();
|
252 |
$request->addFields($fields);
|
253 |
return $pending ? $request : $request->execute();
|
254 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
255 |
public function deleteBlocked(array $fields = array(), array $params = array(), $pending = \false)
|
256 |
{
|
257 |
$this->assureId();
|
282 |
$request->addFields($fields);
|
283 |
return $pending ? $request : $request->execute();
|
284 |
}
|
285 |
+
public function createBusinessDatum(array $fields = array(), array $params = array(), $pending = \false)
|
286 |
{
|
287 |
$this->assureId();
|
288 |
+
$param_types = array('data' => 'list<string>', 'partner_agent' => 'string', 'processing_type' => 'string');
|
289 |
+
$enums = array();
|
290 |
+
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_POST, '/business_data', new \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject(), 'EDGE', array(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
291 |
$request->addParams($params);
|
292 |
$request->addFields($fields);
|
293 |
return $pending ? $request : $request->execute();
|
294 |
}
|
295 |
+
public function getBusinessProjects(array $fields = array(), array $params = array(), $pending = \false)
|
296 |
{
|
297 |
$this->assureId();
|
298 |
+
$param_types = array('business' => 'string');
|
299 |
$enums = array();
|
300 |
+
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_GET, '/businessprojects', new \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject(), 'EDGE', array(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
301 |
$request->addParams($params);
|
302 |
$request->addFields($fields);
|
303 |
return $pending ? $request : $request->execute();
|
352 |
$request->addFields($fields);
|
353 |
return $pending ? $request : $request->execute();
|
354 |
}
|
355 |
+
public function getChatPlugin(array $fields = array(), array $params = array(), $pending = \false)
|
356 |
+
{
|
357 |
+
$this->assureId();
|
358 |
+
$param_types = array();
|
359 |
+
$enums = array();
|
360 |
+
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_GET, '/chat_plugin', new \PYS_PRO_GLOBAL\FacebookAds\Object\ChatPlugin(), 'EDGE', \PYS_PRO_GLOBAL\FacebookAds\Object\ChatPlugin::getFieldsEnum()->getValues(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
361 |
+
$request->addParams($params);
|
362 |
+
$request->addFields($fields);
|
363 |
+
return $pending ? $request : $request->execute();
|
364 |
+
}
|
365 |
+
public function createChatPlugin(array $fields = array(), array $params = array(), $pending = \false)
|
366 |
+
{
|
367 |
+
$this->assureId();
|
368 |
+
$param_types = array('alignment' => 'alignment_enum', 'desktop_bottom_spacing' => 'unsigned int', 'desktop_side_spacing' => 'unsigned int', 'entry_point_icon' => 'entry_point_icon_enum', 'entry_point_label' => 'entry_point_label_enum', 'greeting_dialog_display' => 'greeting_dialog_display_enum', 'guest_chat_mode' => 'guest_chat_mode_enum', 'mobile_bottom_spacing' => 'unsigned int', 'mobile_chat_display' => 'mobile_chat_display_enum', 'mobile_side_spacing' => 'unsigned int', 'theme_color' => 'string', 'welcome_screen_greeting' => 'string');
|
369 |
+
$enums = array('alignment_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\PageAlignmentValues::getInstance()->getValues(), 'entry_point_icon_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\PageEntryPointIconValues::getInstance()->getValues(), 'entry_point_label_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\PageEntryPointLabelValues::getInstance()->getValues(), 'greeting_dialog_display_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\PageGreetingDialogDisplayValues::getInstance()->getValues(), 'guest_chat_mode_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\PageGuestChatModeValues::getInstance()->getValues(), 'mobile_chat_display_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\PageMobileChatDisplayValues::getInstance()->getValues());
|
370 |
+
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_POST, '/chat_plugin', new \PYS_PRO_GLOBAL\FacebookAds\Object\Page(), 'EDGE', \PYS_PRO_GLOBAL\FacebookAds\Object\Page::getFieldsEnum()->getValues(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
371 |
+
$request->addParams($params);
|
372 |
+
$request->addFields($fields);
|
373 |
+
return $pending ? $request : $request->execute();
|
374 |
+
}
|
375 |
public function getClaimedUrls(array $fields = array(), array $params = array(), $pending = \false)
|
376 |
{
|
377 |
$this->assureId();
|
446 |
{
|
447 |
$this->assureId();
|
448 |
$param_types = array('action' => 'action_enum', 'action_reason' => 'action_reason_enum', 'countries' => 'Object', 'match_content_type' => 'match_content_type_enum', 'matched_asset_id' => 'string', 'reference_asset_id' => 'string');
|
449 |
+
$enums = array('action_enum' => array('BLOCK', 'CLAIM_AD_EARNINGS', 'MANUAL_REVIEW', 'MONITOR', 'REQUEST_TAKEDOWN'), 'action_reason_enum' => array('ARTICLE_17_PREFLAGGING', 'ARTIST_OBJECTION', 'OBJECTIONABLE_CONTENT', 'PREMIUM_MUSIC_VIDEO', 'PRERELEASE_CONTENT', 'PRODUCT_PARAMETERS', 'RESTRICTED_CONTENT', 'UNAUTHORIZED_COMMERCIAL_USE'), 'match_content_type_enum' => array('AUDIO_ONLY', 'VIDEO_AND_AUDIO', 'VIDEO_ONLY'));
|
450 |
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_POST, '/copyright_manual_claims', new \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject(), 'EDGE', array(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
451 |
$request->addParams($params);
|
452 |
$request->addFields($fields);
|
485 |
public function createCustomLabel(array $fields = array(), array $params = array(), $pending = \false)
|
486 |
{
|
487 |
$this->assureId();
|
488 |
+
$param_types = array('name' => 'string', 'page_label_name' => 'string');
|
489 |
$enums = array();
|
490 |
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_POST, '/custom_labels', new \PYS_PRO_GLOBAL\FacebookAds\Object\PageUserMessageThreadLabel(), 'EDGE', \PYS_PRO_GLOBAL\FacebookAds\Object\PageUserMessageThreadLabel::getFieldsEnum()->getValues(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
491 |
$request->addParams($params);
|
622 |
$request->addFields($fields);
|
623 |
return $pending ? $request : $request->execute();
|
624 |
}
|
625 |
+
public function getInsightsExports(array $fields = array(), array $params = array(), $pending = \false)
|
626 |
+
{
|
627 |
+
$this->assureId();
|
628 |
+
$param_types = array('data_level' => 'list<string>', 'from_creation_date' => 'datetime');
|
629 |
+
$enums = array();
|
630 |
+
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_GET, '/insights_exports', new \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject(), 'EDGE', array(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
631 |
+
$request->addParams($params);
|
632 |
+
$request->addFields($fields);
|
633 |
+
return $pending ? $request : $request->execute();
|
634 |
+
}
|
635 |
public function getInstagramAccounts(array $fields = array(), array $params = array(), $pending = \false)
|
636 |
{
|
637 |
$this->assureId();
|
745 |
public function createLiveVideo(array $fields = array(), array $params = array(), $pending = \false)
|
746 |
{
|
747 |
$this->assureId();
|
748 |
+
$param_types = array('content_tags' => 'list<string>', 'crossposting_actions' => 'list<map>', 'custom_labels' => 'list<string>', 'description' => 'string', 'enable_backup_ingest' => 'bool', 'encoding_settings' => 'string', 'fisheye_video_cropped' => 'bool', 'front_z_rotation' => 'float', 'game_show' => 'map', 'is_audio_only' => 'bool', 'is_spherical' => 'bool', 'live_encoders' => 'list<string>', 'original_fov' => 'unsigned int', 'privacy' => 'string', 'projection' => 'projection_enum', 'published' => 'bool', 'schedule_custom_profile_image' => 'file', 'spatial_audio_format' => 'spatial_audio_format_enum', 'status' => 'status_enum', 'stereoscopic_mode' => 'stereoscopic_mode_enum', 'stop_on_delete_stream' => 'bool', 'stream_type' => 'stream_type_enum', 'targeting' => 'Object', 'title' => 'string');
|
749 |
$enums = array('projection_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\LiveVideoProjectionValues::getInstance()->getValues(), 'spatial_audio_format_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\LiveVideoSpatialAudioFormatValues::getInstance()->getValues(), 'status_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\LiveVideoStatusValues::getInstance()->getValues(), 'stereoscopic_mode_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\LiveVideoStereoscopicModeValues::getInstance()->getValues(), 'stream_type_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\LiveVideoStreamTypeValues::getInstance()->getValues());
|
750 |
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_POST, '/live_videos', new \PYS_PRO_GLOBAL\FacebookAds\Object\LiveVideo(), 'EDGE', \PYS_PRO_GLOBAL\FacebookAds\Object\LiveVideo::getFieldsEnum()->getValues(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
751 |
$request->addParams($params);
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/PartnerStudy.php
CHANGED
@@ -51,6 +51,16 @@ class PartnerStudy extends \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject
|
|
51 |
$ref_enums = array();
|
52 |
return $ref_enums;
|
53 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
54 |
public function getSelf(array $fields = array(), array $params = array(), $pending = \false)
|
55 |
{
|
56 |
$this->assureId();
|
51 |
$ref_enums = array();
|
52 |
return $ref_enums;
|
53 |
}
|
54 |
+
public function getPartners(array $fields = array(), array $params = array(), $pending = \false)
|
55 |
+
{
|
56 |
+
$this->assureId();
|
57 |
+
$param_types = array();
|
58 |
+
$enums = array();
|
59 |
+
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_GET, '/partners', new \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject(), 'EDGE', array(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
60 |
+
$request->addParams($params);
|
61 |
+
$request->addFields($fields);
|
62 |
+
return $pending ? $request : $request->execute();
|
63 |
+
}
|
64 |
public function getSelf(array $fields = array(), array $params = array(), $pending = \false)
|
65 |
{
|
66 |
$this->assureId();
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/ProductCatalog.php
CHANGED
@@ -45,6 +45,7 @@ use PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductEventStatBreakdownsValues;
|
|
45 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductFeedDelimiterValues;
|
46 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductFeedEncodingValues;
|
47 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductFeedFeedTypeValues;
|
|
|
48 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductFeedItemSubTypeValues;
|
49 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductFeedOverrideTypeValues;
|
50 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductFeedQuotedFieldsModeValues;
|
@@ -53,6 +54,7 @@ use PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductItemCommerceTaxCategoryValue
|
|
53 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductItemConditionValues;
|
54 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductItemGenderValues;
|
55 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductItemMarkedForProductLaunchValues;
|
|
|
56 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductItemVisibilityValues;
|
57 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\VehicleAvailabilityValues;
|
58 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\VehicleBodyStyleValues;
|
@@ -127,6 +129,16 @@ class ProductCatalog extends \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObje
|
|
127 |
$request->addFields($fields);
|
128 |
return $pending ? $request : $request->execute();
|
129 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
130 |
public function deleteAssignedUsers(array $fields = array(), array $params = array(), $pending = \false)
|
131 |
{
|
132 |
$this->assureId();
|
@@ -187,22 +199,22 @@ class ProductCatalog extends \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObje
|
|
187 |
$request->addFields($fields);
|
188 |
return $pending ? $request : $request->execute();
|
189 |
}
|
190 |
-
public function
|
191 |
{
|
192 |
$this->assureId();
|
193 |
-
$param_types = array();
|
194 |
$enums = array();
|
195 |
-
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::
|
196 |
$request->addParams($params);
|
197 |
$request->addFields($fields);
|
198 |
return $pending ? $request : $request->execute();
|
199 |
}
|
200 |
-
public function
|
201 |
{
|
202 |
$this->assureId();
|
203 |
-
$param_types = array('
|
204 |
$enums = array();
|
205 |
-
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_POST, '/
|
206 |
$request->addParams($params);
|
207 |
$request->addFields($fields);
|
208 |
return $pending ? $request : $request->execute();
|
@@ -440,8 +452,8 @@ class ProductCatalog extends \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObje
|
|
440 |
public function createProductFeed(array $fields = array(), array $params = array(), $pending = \false)
|
441 |
{
|
442 |
$this->assureId();
|
443 |
-
$param_types = array('country' => 'string', 'default_currency' => 'string', 'deletion_enabled' => 'bool', 'delimiter' => 'delimiter_enum', 'encoding' => 'encoding_enum', 'feed_type' => 'feed_type_enum', 'file_name' => 'string', 'item_sub_type' => 'item_sub_type_enum', 'migrated_from_feed_id' => 'string', 'name' => 'string', 'override_type' => 'override_type_enum', 'override_value' => 'string', 'quoted_fields_mode' => 'quoted_fields_mode_enum', 'rules' => 'list<string>', 'schedule' => 'string', 'selected_override_fields' => 'list<string>', 'update_schedule' => 'string');
|
444 |
-
$enums = array('delimiter_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductFeedDelimiterValues::getInstance()->getValues(), 'encoding_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductFeedEncodingValues::getInstance()->getValues(), 'feed_type_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductFeedFeedTypeValues::getInstance()->getValues(), 'item_sub_type_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductFeedItemSubTypeValues::getInstance()->getValues(), 'override_type_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductFeedOverrideTypeValues::getInstance()->getValues(), 'quoted_fields_mode_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductFeedQuotedFieldsModeValues::getInstance()->getValues());
|
445 |
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_POST, '/product_feeds', new \PYS_PRO_GLOBAL\FacebookAds\Object\ProductFeed(), 'EDGE', \PYS_PRO_GLOBAL\FacebookAds\Object\ProductFeed::getFieldsEnum()->getValues(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
446 |
$request->addParams($params);
|
447 |
$request->addFields($fields);
|
@@ -480,7 +492,7 @@ class ProductCatalog extends \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObje
|
|
480 |
public function createProductSet(array $fields = array(), array $params = array(), $pending = \false)
|
481 |
{
|
482 |
$this->assureId();
|
483 |
-
$param_types = array('filter' => 'Object', 'metadata' => 'map', 'name' => 'string', 'retailer_id' => 'string');
|
484 |
$enums = array();
|
485 |
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_POST, '/product_sets', new \PYS_PRO_GLOBAL\FacebookAds\Object\ProductSet(), 'EDGE', \PYS_PRO_GLOBAL\FacebookAds\Object\ProductSet::getFieldsEnum()->getValues(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
486 |
$request->addParams($params);
|
@@ -510,8 +522,8 @@ class ProductCatalog extends \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObje
|
|
510 |
public function createProduct(array $fields = array(), array $params = array(), $pending = \false)
|
511 |
{
|
512 |
$this->assureId();
|
513 |
-
$param_types = array('additional_image_urls' => 'list<string>', 'additional_uploaded_image_ids' => 'list<string>', 'additional_variant_attributes' => 'map', 'android_app_name' => 'string', 'android_class' => 'string', 'android_package' => 'string', 'android_url' => 'string', 'availability' => 'availability_enum', 'brand' => 'string', 'category' => 'string', 'category_specific_fields' => 'map', 'checkout_url' => 'string', 'color' => 'string', 'commerce_tax_category' => 'commerce_tax_category_enum', 'condition' => 'condition_enum', 'currency' => 'string', 'custom_data' => 'map', 'custom_label_0' => 'string', 'custom_label_1' => 'string', 'custom_label_2' => 'string', 'custom_label_3' => 'string', 'custom_label_4' => 'string', 'description' => 'string', 'expiration_date' => 'string', 'fb_product_category' => 'string', 'gender' => 'gender_enum', 'gtin' => 'string', 'image_url' => 'string', 'inventory' => 'unsigned int', 'ios_app_name' => 'string', 'ios_app_store_id' => 'unsigned int', 'ios_url' => 'string', 'ipad_app_name' => 'string', 'ipad_app_store_id' => 'unsigned int', 'ipad_url' => 'string', 'iphone_app_name' => 'string', 'iphone_app_store_id' => 'unsigned int', 'iphone_url' => 'string', 'launch_date' => 'string', 'manufacturer_part_number' => 'string', 'marked_for_product_launch' => 'marked_for_product_launch_enum', 'material' => 'string', 'mobile_link' => 'string', 'name' => 'string', 'offer_price_amount' => 'unsigned int', 'offer_price_end_date' => 'datetime', 'offer_price_start_date' => 'datetime', 'ordering_index' => 'unsigned int', 'pattern' => 'string', 'price' => 'unsigned int', 'product_type' => 'string', 'quantity_to_sell_on_facebook' => 'unsigned int', 'retailer_id' => 'string', 'retailer_product_group_id' => 'string', 'return_policy_days' => 'unsigned int', 'sale_price' => 'unsigned int', 'sale_price_end_date' => 'datetime', 'sale_price_start_date' => 'datetime', 'short_description' => 'string', 'size' => 'string', 'start_date' => 'string', 'url' => 'string', 'visibility' => 'visibility_enum', 'windows_phone_app_id' => 'string', 'windows_phone_app_name' => 'string', 'windows_phone_url' => 'string');
|
514 |
-
$enums = array('availability_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductItemAvailabilityValues::getInstance()->getValues(), 'commerce_tax_category_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductItemCommerceTaxCategoryValues::getInstance()->getValues(), 'condition_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductItemConditionValues::getInstance()->getValues(), 'gender_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductItemGenderValues::getInstance()->getValues(), 'marked_for_product_launch_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductItemMarkedForProductLaunchValues::getInstance()->getValues(), 'visibility_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductItemVisibilityValues::getInstance()->getValues());
|
515 |
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_POST, '/products', new \PYS_PRO_GLOBAL\FacebookAds\Object\ProductItem(), 'EDGE', \PYS_PRO_GLOBAL\FacebookAds\Object\ProductItem::getFieldsEnum()->getValues(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
516 |
$request->addParams($params);
|
517 |
$request->addFields($fields);
|
@@ -561,7 +573,7 @@ class ProductCatalog extends \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObje
|
|
561 |
{
|
562 |
$this->assureId();
|
563 |
$param_types = array('segment_use_cases' => 'list<segment_use_cases_enum>');
|
564 |
-
$enums = array('segment_use_cases_enum' => array('AFFILIATE_SELLER_STOREFRONT', '
|
565 |
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_GET, '/', new \PYS_PRO_GLOBAL\FacebookAds\Object\ProductCatalog(), 'NODE', \PYS_PRO_GLOBAL\FacebookAds\Object\ProductCatalog::getFieldsEnum()->getValues(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
566 |
$request->addParams($params);
|
567 |
$request->addFields($fields);
|
45 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductFeedDelimiterValues;
|
46 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductFeedEncodingValues;
|
47 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductFeedFeedTypeValues;
|
48 |
+
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductFeedIngestionSourceTypeValues;
|
49 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductFeedItemSubTypeValues;
|
50 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductFeedOverrideTypeValues;
|
51 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductFeedQuotedFieldsModeValues;
|
54 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductItemConditionValues;
|
55 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductItemGenderValues;
|
56 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductItemMarkedForProductLaunchValues;
|
57 |
+
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductItemOriginCountryValues;
|
58 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductItemVisibilityValues;
|
59 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\VehicleAvailabilityValues;
|
60 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\VehicleBodyStyleValues;
|
129 |
$request->addFields($fields);
|
130 |
return $pending ? $request : $request->execute();
|
131 |
}
|
132 |
+
public function getArEffectsBatchStatus(array $fields = array(), array $params = array(), $pending = \false)
|
133 |
+
{
|
134 |
+
$this->assureId();
|
135 |
+
$param_types = array('handle' => 'string');
|
136 |
+
$enums = array();
|
137 |
+
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_GET, '/ar_effects_batch_status', new \PYS_PRO_GLOBAL\FacebookAds\Object\AREffectsBatchStatus(), 'EDGE', \PYS_PRO_GLOBAL\FacebookAds\Object\AREffectsBatchStatus::getFieldsEnum()->getValues(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
138 |
+
$request->addParams($params);
|
139 |
+
$request->addFields($fields);
|
140 |
+
return $pending ? $request : $request->execute();
|
141 |
+
}
|
142 |
public function deleteAssignedUsers(array $fields = array(), array $params = array(), $pending = \false)
|
143 |
{
|
144 |
$this->assureId();
|
199 |
$request->addFields($fields);
|
200 |
return $pending ? $request : $request->execute();
|
201 |
}
|
202 |
+
public function createBatch(array $fields = array(), array $params = array(), $pending = \false)
|
203 |
{
|
204 |
$this->assureId();
|
205 |
+
$param_types = array('allow_upsert' => 'bool', 'fbe_external_business_id' => 'string', 'requests' => 'list<map>');
|
206 |
$enums = array();
|
207 |
+
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_POST, '/batch', new \PYS_PRO_GLOBAL\FacebookAds\Object\ProductCatalog(), 'EDGE', \PYS_PRO_GLOBAL\FacebookAds\Object\ProductCatalog::getFieldsEnum()->getValues(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
208 |
$request->addParams($params);
|
209 |
$request->addFields($fields);
|
210 |
return $pending ? $request : $request->execute();
|
211 |
}
|
212 |
+
public function createCatalogWebsiteSetting(array $fields = array(), array $params = array(), $pending = \false)
|
213 |
{
|
214 |
$this->assureId();
|
215 |
+
$param_types = array('is_allowed_to_crawl' => 'bool');
|
216 |
$enums = array();
|
217 |
+
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_POST, '/catalog_website_settings', new \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject(), 'EDGE', array(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
218 |
$request->addParams($params);
|
219 |
$request->addFields($fields);
|
220 |
return $pending ? $request : $request->execute();
|
452 |
public function createProductFeed(array $fields = array(), array $params = array(), $pending = \false)
|
453 |
{
|
454 |
$this->assureId();
|
455 |
+
$param_types = array('country' => 'string', 'default_currency' => 'string', 'deletion_enabled' => 'bool', 'delimiter' => 'delimiter_enum', 'encoding' => 'encoding_enum', 'feed_type' => 'feed_type_enum', 'file_name' => 'string', 'ingestion_source_type' => 'ingestion_source_type_enum', 'item_sub_type' => 'item_sub_type_enum', 'migrated_from_feed_id' => 'string', 'name' => 'string', 'override_type' => 'override_type_enum', 'override_value' => 'string', 'primary_feed_ids' => 'list<string>', 'quoted_fields_mode' => 'quoted_fields_mode_enum', 'rules' => 'list<string>', 'schedule' => 'string', 'selected_override_fields' => 'list<string>', 'update_schedule' => 'string');
|
456 |
+
$enums = array('delimiter_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductFeedDelimiterValues::getInstance()->getValues(), 'encoding_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductFeedEncodingValues::getInstance()->getValues(), 'feed_type_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductFeedFeedTypeValues::getInstance()->getValues(), 'ingestion_source_type_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductFeedIngestionSourceTypeValues::getInstance()->getValues(), 'item_sub_type_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductFeedItemSubTypeValues::getInstance()->getValues(), 'override_type_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductFeedOverrideTypeValues::getInstance()->getValues(), 'quoted_fields_mode_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductFeedQuotedFieldsModeValues::getInstance()->getValues());
|
457 |
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_POST, '/product_feeds', new \PYS_PRO_GLOBAL\FacebookAds\Object\ProductFeed(), 'EDGE', \PYS_PRO_GLOBAL\FacebookAds\Object\ProductFeed::getFieldsEnum()->getValues(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
458 |
$request->addParams($params);
|
459 |
$request->addFields($fields);
|
492 |
public function createProductSet(array $fields = array(), array $params = array(), $pending = \false)
|
493 |
{
|
494 |
$this->assureId();
|
495 |
+
$param_types = array('filter' => 'Object', 'metadata' => 'map', 'name' => 'string', 'ordering_info' => 'list<unsigned int>', 'publish_to_shops' => 'list<map>', 'retailer_id' => 'string');
|
496 |
$enums = array();
|
497 |
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_POST, '/product_sets', new \PYS_PRO_GLOBAL\FacebookAds\Object\ProductSet(), 'EDGE', \PYS_PRO_GLOBAL\FacebookAds\Object\ProductSet::getFieldsEnum()->getValues(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
498 |
$request->addParams($params);
|
522 |
public function createProduct(array $fields = array(), array $params = array(), $pending = \false)
|
523 |
{
|
524 |
$this->assureId();
|
525 |
+
$param_types = array('additional_image_urls' => 'list<string>', 'additional_uploaded_image_ids' => 'list<string>', 'additional_variant_attributes' => 'map', 'android_app_name' => 'string', 'android_class' => 'string', 'android_package' => 'string', 'android_url' => 'string', 'availability' => 'availability_enum', 'brand' => 'string', 'category' => 'string', 'category_specific_fields' => 'map', 'checkout_url' => 'string', 'color' => 'string', 'commerce_tax_category' => 'commerce_tax_category_enum', 'condition' => 'condition_enum', 'currency' => 'string', 'custom_data' => 'map', 'custom_label_0' => 'string', 'custom_label_1' => 'string', 'custom_label_2' => 'string', 'custom_label_3' => 'string', 'custom_label_4' => 'string', 'description' => 'string', 'expiration_date' => 'string', 'fb_product_category' => 'string', 'gender' => 'gender_enum', 'gtin' => 'string', 'image_url' => 'string', 'importer_address' => 'map', 'importer_name' => 'string', 'inventory' => 'unsigned int', 'ios_app_name' => 'string', 'ios_app_store_id' => 'unsigned int', 'ios_url' => 'string', 'ipad_app_name' => 'string', 'ipad_app_store_id' => 'unsigned int', 'ipad_url' => 'string', 'iphone_app_name' => 'string', 'iphone_app_store_id' => 'unsigned int', 'iphone_url' => 'string', 'launch_date' => 'string', 'manufacturer_info' => 'string', 'manufacturer_part_number' => 'string', 'marked_for_product_launch' => 'marked_for_product_launch_enum', 'material' => 'string', 'mobile_link' => 'string', 'name' => 'string', 'offer_price_amount' => 'unsigned int', 'offer_price_end_date' => 'datetime', 'offer_price_start_date' => 'datetime', 'ordering_index' => 'unsigned int', 'origin_country' => 'origin_country_enum', 'pattern' => 'string', 'price' => 'unsigned int', 'product_type' => 'string', 'quantity_to_sell_on_facebook' => 'unsigned int', 'retailer_id' => 'string', 'retailer_product_group_id' => 'string', 'return_policy_days' => 'unsigned int', 'sale_price' => 'unsigned int', 'sale_price_end_date' => 'datetime', 'sale_price_start_date' => 'datetime', 'short_description' => 'string', 'size' => 'string', 'start_date' => 'string', 'url' => 'string', 'visibility' => 'visibility_enum', 'windows_phone_app_id' => 'string', 'windows_phone_app_name' => 'string', 'windows_phone_url' => 'string');
|
526 |
+
$enums = array('availability_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductItemAvailabilityValues::getInstance()->getValues(), 'commerce_tax_category_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductItemCommerceTaxCategoryValues::getInstance()->getValues(), 'condition_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductItemConditionValues::getInstance()->getValues(), 'gender_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductItemGenderValues::getInstance()->getValues(), 'marked_for_product_launch_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductItemMarkedForProductLaunchValues::getInstance()->getValues(), 'origin_country_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductItemOriginCountryValues::getInstance()->getValues(), 'visibility_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductItemVisibilityValues::getInstance()->getValues());
|
527 |
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_POST, '/products', new \PYS_PRO_GLOBAL\FacebookAds\Object\ProductItem(), 'EDGE', \PYS_PRO_GLOBAL\FacebookAds\Object\ProductItem::getFieldsEnum()->getValues(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
528 |
$request->addParams($params);
|
529 |
$request->addFields($fields);
|
573 |
{
|
574 |
$this->assureId();
|
575 |
$param_types = array('segment_use_cases' => 'list<segment_use_cases_enum>');
|
576 |
+
$enums = array('segment_use_cases_enum' => array('AFFILIATE_SELLER_STOREFRONT', 'COLLAB_ADS', 'COLLAB_ADS_FOR_MARKETPLACE_PARTNER', 'COLLAB_ADS_SEGMENT_WITHOUT_SEGMENT_SYNCING', 'CREATORS_AS_SELLERS', 'DIGITAL_CIRCULARS', 'FB_LIVE_SHOPPING', 'IG_SHOPPING', 'IG_SHOPPING_SUGGESTED_PRODUCTS', 'MARKETPLACE_SHOPS', 'TEST'));
|
577 |
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_GET, '/', new \PYS_PRO_GLOBAL\FacebookAds\Object\ProductCatalog(), 'NODE', \PYS_PRO_GLOBAL\FacebookAds\Object\ProductCatalog::getFieldsEnum()->getValues(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
578 |
$request->addParams($params);
|
579 |
$request->addFields($fields);
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/ProductFeed.php
CHANGED
@@ -32,6 +32,7 @@ use PYS_PRO_GLOBAL\FacebookAds\Object\Fields\ProductFeedFields;
|
|
32 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductFeedDelimiterValues;
|
33 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductFeedEncodingValues;
|
34 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductFeedFeedTypeValues;
|
|
|
35 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductFeedItemSubTypeValues;
|
36 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductFeedOverrideTypeValues;
|
37 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductFeedQuotedFieldsModeValues;
|
@@ -67,6 +68,7 @@ class ProductFeed extends \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject
|
|
67 |
$ref_enums['QuotedFieldsMode'] = \PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductFeedQuotedFieldsModeValues::getInstance()->getValues();
|
68 |
$ref_enums['Encoding'] = \PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductFeedEncodingValues::getInstance()->getValues();
|
69 |
$ref_enums['FeedType'] = \PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductFeedFeedTypeValues::getInstance()->getValues();
|
|
|
70 |
$ref_enums['ItemSubType'] = \PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductFeedItemSubTypeValues::getInstance()->getValues();
|
71 |
$ref_enums['OverrideType'] = \PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductFeedOverrideTypeValues::getInstance()->getValues();
|
72 |
return $ref_enums;
|
@@ -91,16 +93,6 @@ class ProductFeed extends \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject
|
|
91 |
$request->addFields($fields);
|
92 |
return $pending ? $request : $request->execute();
|
93 |
}
|
94 |
-
public function getAutos(array $fields = array(), array $params = array(), $pending = \false)
|
95 |
-
{
|
96 |
-
$this->assureId();
|
97 |
-
$param_types = array();
|
98 |
-
$enums = array();
|
99 |
-
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_GET, '/autos', new \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject(), 'EDGE', array(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
100 |
-
$request->addParams($params);
|
101 |
-
$request->addFields($fields);
|
102 |
-
return $pending ? $request : $request->execute();
|
103 |
-
}
|
104 |
public function getDestinations(array $fields = array(), array $params = array(), $pending = \false)
|
105 |
{
|
106 |
$this->assureId();
|
@@ -181,6 +173,16 @@ class ProductFeed extends \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject
|
|
181 |
$request->addFields($fields);
|
182 |
return $pending ? $request : $request->execute();
|
183 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
184 |
public function getUploadSchedules(array $fields = array(), array $params = array(), $pending = \false)
|
185 |
{
|
186 |
$this->assureId();
|
32 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductFeedDelimiterValues;
|
33 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductFeedEncodingValues;
|
34 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductFeedFeedTypeValues;
|
35 |
+
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductFeedIngestionSourceTypeValues;
|
36 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductFeedItemSubTypeValues;
|
37 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductFeedOverrideTypeValues;
|
38 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductFeedQuotedFieldsModeValues;
|
68 |
$ref_enums['QuotedFieldsMode'] = \PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductFeedQuotedFieldsModeValues::getInstance()->getValues();
|
69 |
$ref_enums['Encoding'] = \PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductFeedEncodingValues::getInstance()->getValues();
|
70 |
$ref_enums['FeedType'] = \PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductFeedFeedTypeValues::getInstance()->getValues();
|
71 |
+
$ref_enums['IngestionSourceType'] = \PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductFeedIngestionSourceTypeValues::getInstance()->getValues();
|
72 |
$ref_enums['ItemSubType'] = \PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductFeedItemSubTypeValues::getInstance()->getValues();
|
73 |
$ref_enums['OverrideType'] = \PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductFeedOverrideTypeValues::getInstance()->getValues();
|
74 |
return $ref_enums;
|
93 |
$request->addFields($fields);
|
94 |
return $pending ? $request : $request->execute();
|
95 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
96 |
public function getDestinations(array $fields = array(), array $params = array(), $pending = \false)
|
97 |
{
|
98 |
$this->assureId();
|
173 |
$request->addFields($fields);
|
174 |
return $pending ? $request : $request->execute();
|
175 |
}
|
176 |
+
public function createSupplementaryFeedAssoc(array $fields = array(), array $params = array(), $pending = \false)
|
177 |
+
{
|
178 |
+
$this->assureId();
|
179 |
+
$param_types = array('assoc_data' => 'list<map>');
|
180 |
+
$enums = array();
|
181 |
+
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_POST, '/supplementary_feed_assocs', new \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject(), 'EDGE', array(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
182 |
+
$request->addParams($params);
|
183 |
+
$request->addFields($fields);
|
184 |
+
return $pending ? $request : $request->execute();
|
185 |
+
}
|
186 |
public function getUploadSchedules(array $fields = array(), array $params = array(), $pending = \false)
|
187 |
{
|
188 |
$this->assureId();
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/ProductItem.php
CHANGED
@@ -36,6 +36,7 @@ use PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductItemConditionValues;
|
|
36 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductItemGenderValues;
|
37 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductItemImageFetchStatusValues;
|
38 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductItemMarkedForProductLaunchValues;
|
|
|
39 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductItemReviewStatusValues;
|
40 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductItemShippingWeightUnitValues;
|
41 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductItemVisibilityValues;
|
@@ -76,6 +77,7 @@ class ProductItem extends \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject
|
|
76 |
$ref_enums['Visibility'] = \PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductItemVisibilityValues::getInstance()->getValues();
|
77 |
$ref_enums['CommerceTaxCategory'] = \PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductItemCommerceTaxCategoryValues::getInstance()->getValues();
|
78 |
$ref_enums['MarkedForProductLaunch'] = \PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductItemMarkedForProductLaunchValues::getInstance()->getValues();
|
|
|
79 |
return $ref_enums;
|
80 |
}
|
81 |
public function getChannelsToIntegrityStatus(array $fields = array(), array $params = array(), $pending = \false)
|
@@ -121,8 +123,8 @@ class ProductItem extends \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject
|
|
121 |
public function updateSelf(array $fields = array(), array $params = array(), $pending = \false)
|
122 |
{
|
123 |
$this->assureId();
|
124 |
-
$param_types = array('additional_image_urls' => 'list<string>', 'additional_uploaded_image_ids' => 'list<string>', 'additional_variant_attributes' => 'map', 'android_app_name' => 'string', 'android_class' => 'string', 'android_package' => 'string', 'android_url' => 'string', 'availability' => 'availability_enum', 'brand' => 'string', 'category' => 'string', 'category_specific_fields' => 'map', 'checkout_url' => 'string', 'color' => 'string', 'commerce_tax_category' => 'commerce_tax_category_enum', 'condition' => 'condition_enum', 'currency' => 'string', 'custom_data' => 'map', 'custom_label_0' => 'string', 'custom_label_1' => 'string', 'custom_label_2' => 'string', 'custom_label_3' => 'string', 'custom_label_4' => 'string', 'description' => 'string', 'expiration_date' => 'string', 'fb_product_category' => 'string', 'gender' => 'gender_enum', 'gtin' => 'string', 'image_url' => 'string', 'inventory' => 'unsigned int', 'ios_app_name' => 'string', 'ios_app_store_id' => 'unsigned int', 'ios_url' => 'string', 'ipad_app_name' => 'string', 'ipad_app_store_id' => 'unsigned int', 'ipad_url' => 'string', 'iphone_app_name' => 'string', 'iphone_app_store_id' => 'unsigned int', 'iphone_url' => 'string', 'launch_date' => 'string', 'manufacturer_part_number' => 'string', 'marked_for_product_launch' => 'marked_for_product_launch_enum', 'material' => 'string', 'mobile_link' => 'string', 'name' => 'string', 'offer_price_amount' => 'unsigned int', 'offer_price_end_date' => 'datetime', 'offer_price_start_date' => 'datetime', 'ordering_index' => 'unsigned int', 'pattern' => 'string', 'price' => 'unsigned int', 'product_type' => 'string', 'quantity_to_sell_on_facebook' => 'unsigned int', 'retailer_id' => 'string', 'return_policy_days' => 'unsigned int', 'sale_price' => 'unsigned int', 'sale_price_end_date' => 'datetime', 'sale_price_start_date' => 'datetime', 'short_description' => 'string', 'size' => 'string', 'start_date' => 'string', 'url' => 'string', 'visibility' => 'visibility_enum', 'windows_phone_app_id' => 'string', 'windows_phone_app_name' => 'string', 'windows_phone_url' => 'string');
|
125 |
-
$enums = array('availability_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductItemAvailabilityValues::getInstance()->getValues(), 'commerce_tax_category_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductItemCommerceTaxCategoryValues::getInstance()->getValues(), 'condition_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductItemConditionValues::getInstance()->getValues(), 'gender_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductItemGenderValues::getInstance()->getValues(), 'marked_for_product_launch_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductItemMarkedForProductLaunchValues::getInstance()->getValues(), 'visibility_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductItemVisibilityValues::getInstance()->getValues());
|
126 |
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_POST, '/', new \PYS_PRO_GLOBAL\FacebookAds\Object\ProductItem(), 'NODE', \PYS_PRO_GLOBAL\FacebookAds\Object\ProductItem::getFieldsEnum()->getValues(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
127 |
$request->addParams($params);
|
128 |
$request->addFields($fields);
|
36 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductItemGenderValues;
|
37 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductItemImageFetchStatusValues;
|
38 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductItemMarkedForProductLaunchValues;
|
39 |
+
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductItemOriginCountryValues;
|
40 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductItemReviewStatusValues;
|
41 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductItemShippingWeightUnitValues;
|
42 |
use PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductItemVisibilityValues;
|
77 |
$ref_enums['Visibility'] = \PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductItemVisibilityValues::getInstance()->getValues();
|
78 |
$ref_enums['CommerceTaxCategory'] = \PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductItemCommerceTaxCategoryValues::getInstance()->getValues();
|
79 |
$ref_enums['MarkedForProductLaunch'] = \PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductItemMarkedForProductLaunchValues::getInstance()->getValues();
|
80 |
+
$ref_enums['OriginCountry'] = \PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductItemOriginCountryValues::getInstance()->getValues();
|
81 |
return $ref_enums;
|
82 |
}
|
83 |
public function getChannelsToIntegrityStatus(array $fields = array(), array $params = array(), $pending = \false)
|
123 |
public function updateSelf(array $fields = array(), array $params = array(), $pending = \false)
|
124 |
{
|
125 |
$this->assureId();
|
126 |
+
$param_types = array('additional_image_urls' => 'list<string>', 'additional_uploaded_image_ids' => 'list<string>', 'additional_variant_attributes' => 'map', 'android_app_name' => 'string', 'android_class' => 'string', 'android_package' => 'string', 'android_url' => 'string', 'availability' => 'availability_enum', 'brand' => 'string', 'category' => 'string', 'category_specific_fields' => 'map', 'checkout_url' => 'string', 'color' => 'string', 'commerce_tax_category' => 'commerce_tax_category_enum', 'condition' => 'condition_enum', 'currency' => 'string', 'custom_data' => 'map', 'custom_label_0' => 'string', 'custom_label_1' => 'string', 'custom_label_2' => 'string', 'custom_label_3' => 'string', 'custom_label_4' => 'string', 'description' => 'string', 'expiration_date' => 'string', 'fb_product_category' => 'string', 'gender' => 'gender_enum', 'gtin' => 'string', 'image_url' => 'string', 'importer_address' => 'map', 'importer_name' => 'string', 'inventory' => 'unsigned int', 'ios_app_name' => 'string', 'ios_app_store_id' => 'unsigned int', 'ios_url' => 'string', 'ipad_app_name' => 'string', 'ipad_app_store_id' => 'unsigned int', 'ipad_url' => 'string', 'iphone_app_name' => 'string', 'iphone_app_store_id' => 'unsigned int', 'iphone_url' => 'string', 'launch_date' => 'string', 'manufacturer_info' => 'string', 'manufacturer_part_number' => 'string', 'marked_for_product_launch' => 'marked_for_product_launch_enum', 'material' => 'string', 'mobile_link' => 'string', 'name' => 'string', 'offer_price_amount' => 'unsigned int', 'offer_price_end_date' => 'datetime', 'offer_price_start_date' => 'datetime', 'ordering_index' => 'unsigned int', 'origin_country' => 'origin_country_enum', 'pattern' => 'string', 'price' => 'unsigned int', 'product_type' => 'string', 'quantity_to_sell_on_facebook' => 'unsigned int', 'retailer_id' => 'string', 'return_policy_days' => 'unsigned int', 'sale_price' => 'unsigned int', 'sale_price_end_date' => 'datetime', 'sale_price_start_date' => 'datetime', 'short_description' => 'string', 'size' => 'string', 'start_date' => 'string', 'url' => 'string', 'visibility' => 'visibility_enum', 'windows_phone_app_id' => 'string', 'windows_phone_app_name' => 'string', 'windows_phone_url' => 'string');
|
127 |
+
$enums = array('availability_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductItemAvailabilityValues::getInstance()->getValues(), 'commerce_tax_category_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductItemCommerceTaxCategoryValues::getInstance()->getValues(), 'condition_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductItemConditionValues::getInstance()->getValues(), 'gender_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductItemGenderValues::getInstance()->getValues(), 'marked_for_product_launch_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductItemMarkedForProductLaunchValues::getInstance()->getValues(), 'origin_country_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductItemOriginCountryValues::getInstance()->getValues(), 'visibility_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\ProductItemVisibilityValues::getInstance()->getValues());
|
128 |
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_POST, '/', new \PYS_PRO_GLOBAL\FacebookAds\Object\ProductItem(), 'NODE', \PYS_PRO_GLOBAL\FacebookAds\Object\ProductItem::getFieldsEnum()->getValues(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
129 |
$request->addParams($params);
|
130 |
$request->addFields($fields);
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/{ProductFeedUploadDiagnosticsReport.php → ProductItemImporterAddress.php}
RENAMED
@@ -28,7 +28,7 @@ use PYS_PRO_GLOBAL\FacebookAds\ApiRequest;
|
|
28 |
use PYS_PRO_GLOBAL\FacebookAds\Cursor;
|
29 |
use PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface;
|
30 |
use PYS_PRO_GLOBAL\FacebookAds\TypeChecker;
|
31 |
-
use PYS_PRO_GLOBAL\FacebookAds\Object\Fields\
|
32 |
/**
|
33 |
* This class is auto-generated.
|
34 |
*
|
@@ -37,14 +37,14 @@ use PYS_PRO_GLOBAL\FacebookAds\Object\Fields\ProductFeedUploadDiagnosticsReportF
|
|
37 |
* pull request for this class.
|
38 |
*
|
39 |
*/
|
40 |
-
class
|
41 |
{
|
42 |
/**
|
43 |
-
* @return
|
44 |
*/
|
45 |
public static function getFieldsEnum()
|
46 |
{
|
47 |
-
return \PYS_PRO_GLOBAL\FacebookAds\Object\Fields\
|
48 |
}
|
49 |
protected static function getReferencedEnums()
|
50 |
{
|
28 |
use PYS_PRO_GLOBAL\FacebookAds\Cursor;
|
29 |
use PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface;
|
30 |
use PYS_PRO_GLOBAL\FacebookAds\TypeChecker;
|
31 |
+
use PYS_PRO_GLOBAL\FacebookAds\Object\Fields\ProductItemImporterAddressFields;
|
32 |
/**
|
33 |
* This class is auto-generated.
|
34 |
*
|
37 |
* pull request for this class.
|
38 |
*
|
39 |
*/
|
40 |
+
class ProductItemImporterAddress extends \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractObject
|
41 |
{
|
42 |
/**
|
43 |
+
* @return ProductItemImporterAddressFields
|
44 |
*/
|
45 |
public static function getFieldsEnum()
|
46 |
{
|
47 |
+
return \PYS_PRO_GLOBAL\FacebookAds\Object\Fields\ProductItemImporterAddressFields::getInstance();
|
48 |
}
|
49 |
protected static function getReferencedEnums()
|
50 |
{
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/ProductSet.php
CHANGED
@@ -171,7 +171,7 @@ class ProductSet extends \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject
|
|
171 |
public function updateSelf(array $fields = array(), array $params = array(), $pending = \false)
|
172 |
{
|
173 |
$this->assureId();
|
174 |
-
$param_types = array('filter' => 'Object', 'metadata' => 'map', 'name' => 'string', 'retailer_id' => 'string');
|
175 |
$enums = array();
|
176 |
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_POST, '/', new \PYS_PRO_GLOBAL\FacebookAds\Object\ProductSet(), 'NODE', \PYS_PRO_GLOBAL\FacebookAds\Object\ProductSet::getFieldsEnum()->getValues(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
177 |
$request->addParams($params);
|
171 |
public function updateSelf(array $fields = array(), array $params = array(), $pending = \false)
|
172 |
{
|
173 |
$this->assureId();
|
174 |
+
$param_types = array('filter' => 'Object', 'metadata' => 'map', 'name' => 'string', 'ordering_info' => 'list<unsigned int>', 'publish_to_shops' => 'list<map>', 'retailer_id' => 'string');
|
175 |
$enums = array();
|
176 |
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_POST, '/', new \PYS_PRO_GLOBAL\FacebookAds\Object\ProductSet(), 'NODE', \PYS_PRO_GLOBAL\FacebookAds\Object\ProductSet::getFieldsEnum()->getValues(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
177 |
$request->addParams($params);
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Shop.php
ADDED
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Copyright (c) 2015-present, Facebook, Inc. All rights reserved.
|
5 |
+
*
|
6 |
+
* You are hereby granted a non-exclusive, worldwide, royalty-free license to
|
7 |
+
* use, copy, modify, and distribute this software in source code or binary
|
8 |
+
* form for use in connection with the web services and APIs provided by
|
9 |
+
* Facebook.
|
10 |
+
*
|
11 |
+
* As with any software that integrates with the Facebook platform, your use
|
12 |
+
* of this software is subject to the Facebook Developer Principles and
|
13 |
+
* Policies [http://developers.facebook.com/policy/]. This copyright notice
|
14 |
+
* shall be included in all copies or substantial portions of the software.
|
15 |
+
*
|
16 |
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
17 |
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
18 |
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
19 |
+
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
20 |
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
21 |
+
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
22 |
+
* DEALINGS IN THE SOFTWARE.
|
23 |
+
*
|
24 |
+
*/
|
25 |
+
namespace PYS_PRO_GLOBAL\FacebookAds\Object;
|
26 |
+
|
27 |
+
use PYS_PRO_GLOBAL\FacebookAds\ApiRequest;
|
28 |
+
use PYS_PRO_GLOBAL\FacebookAds\Cursor;
|
29 |
+
use PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface;
|
30 |
+
use PYS_PRO_GLOBAL\FacebookAds\TypeChecker;
|
31 |
+
use PYS_PRO_GLOBAL\FacebookAds\Object\Fields\ShopFields;
|
32 |
+
/**
|
33 |
+
* This class is auto-generated.
|
34 |
+
*
|
35 |
+
* For any issues or feature requests related to this class, please let us know
|
36 |
+
* on github and we'll fix in our codegen framework. We'll not be able to accept
|
37 |
+
* pull request for this class.
|
38 |
+
*
|
39 |
+
*/
|
40 |
+
class Shop extends \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject
|
41 |
+
{
|
42 |
+
/**
|
43 |
+
* @return ShopFields
|
44 |
+
*/
|
45 |
+
public static function getFieldsEnum()
|
46 |
+
{
|
47 |
+
return \PYS_PRO_GLOBAL\FacebookAds\Object\Fields\ShopFields::getInstance();
|
48 |
+
}
|
49 |
+
protected static function getReferencedEnums()
|
50 |
+
{
|
51 |
+
$ref_enums = array();
|
52 |
+
return $ref_enums;
|
53 |
+
}
|
54 |
+
public function getSelf(array $fields = array(), array $params = array(), $pending = \false)
|
55 |
+
{
|
56 |
+
$this->assureId();
|
57 |
+
$param_types = array();
|
58 |
+
$enums = array();
|
59 |
+
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_GET, '/', new \PYS_PRO_GLOBAL\FacebookAds\Object\Shop(), 'NODE', \PYS_PRO_GLOBAL\FacebookAds\Object\Shop::getFieldsEnum()->getValues(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
60 |
+
$request->addParams($params);
|
61 |
+
$request->addFields($fields);
|
62 |
+
return $pending ? $request : $request->execute();
|
63 |
+
}
|
64 |
+
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/TextWithEntities.php
ADDED
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Copyright (c) 2015-present, Facebook, Inc. All rights reserved.
|
5 |
+
*
|
6 |
+
* You are hereby granted a non-exclusive, worldwide, royalty-free license to
|
7 |
+
* use, copy, modify, and distribute this software in source code or binary
|
8 |
+
* form for use in connection with the web services and APIs provided by
|
9 |
+
* Facebook.
|
10 |
+
*
|
11 |
+
* As with any software that integrates with the Facebook platform, your use
|
12 |
+
* of this software is subject to the Facebook Developer Principles and
|
13 |
+
* Policies [http://developers.facebook.com/policy/]. This copyright notice
|
14 |
+
* shall be included in all copies or substantial portions of the software.
|
15 |
+
*
|
16 |
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
17 |
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
18 |
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
19 |
+
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
20 |
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
21 |
+
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
22 |
+
* DEALINGS IN THE SOFTWARE.
|
23 |
+
*
|
24 |
+
*/
|
25 |
+
namespace PYS_PRO_GLOBAL\FacebookAds\Object;
|
26 |
+
|
27 |
+
use PYS_PRO_GLOBAL\FacebookAds\ApiRequest;
|
28 |
+
use PYS_PRO_GLOBAL\FacebookAds\Cursor;
|
29 |
+
use PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface;
|
30 |
+
use PYS_PRO_GLOBAL\FacebookAds\TypeChecker;
|
31 |
+
use PYS_PRO_GLOBAL\FacebookAds\Object\Fields\TextWithEntitiesFields;
|
32 |
+
/**
|
33 |
+
* This class is auto-generated.
|
34 |
+
*
|
35 |
+
* For any issues or feature requests related to this class, please let us know
|
36 |
+
* on github and we'll fix in our codegen framework. We'll not be able to accept
|
37 |
+
* pull request for this class.
|
38 |
+
*
|
39 |
+
*/
|
40 |
+
class TextWithEntities extends \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractObject
|
41 |
+
{
|
42 |
+
/**
|
43 |
+
* @return TextWithEntitiesFields
|
44 |
+
*/
|
45 |
+
public static function getFieldsEnum()
|
46 |
+
{
|
47 |
+
return \PYS_PRO_GLOBAL\FacebookAds\Object\Fields\TextWithEntitiesFields::getInstance();
|
48 |
+
}
|
49 |
+
protected static function getReferencedEnums()
|
50 |
+
{
|
51 |
+
$ref_enums = array();
|
52 |
+
return $ref_enums;
|
53 |
+
}
|
54 |
+
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/User.php
CHANGED
@@ -362,16 +362,6 @@ class User extends \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject
|
|
362 |
$request->addFields($fields);
|
363 |
return $pending ? $request : $request->execute();
|
364 |
}
|
365 |
-
public function createGamesPlay(array $fields = array(), array $params = array(), $pending = \false)
|
366 |
-
{
|
367 |
-
$this->assureId();
|
368 |
-
$param_types = array('added' => 'string', 'alias' => 'string', 'android_key_hash' => 'string', 'client_secret' => 'string', 'created_time' => 'datetime', 'end_time' => 'datetime', 'expires_in' => 'unsigned int', 'fb:channel' => 'string', 'fb:explicitly_shared' => 'bool', 'image:height' => 'unsigned int', 'image:secure_url' => 'string', 'image:type' => 'string', 'image:url' => 'string', 'image:user_generated' => 'bool', 'image:width' => 'unsigned int', 'ios_bundle_id' => 'string', 'message' => 'string', 'no_action_link' => 'bool', 'no_feed_story' => 'bool', 'notify' => 'bool', 'place' => 'string', 'preview' => 'bool', 'privacy' => 'string', 'proxied_app_id' => 'string', 'ref' => 'string', 'scrape' => 'bool', 'start_time' => 'datetime', 'tags' => 'list<int>', 'to' => 'string', 'user_selected_place' => 'bool', 'user_selected_tags' => 'bool');
|
369 |
-
$enums = array();
|
370 |
-
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_POST, '/games_plays', new \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject(), 'EDGE', array(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
371 |
-
$request->addParams($params);
|
372 |
-
$request->addFields($fields);
|
373 |
-
return $pending ? $request : $request->execute();
|
374 |
-
}
|
375 |
public function getGroups(array $fields = array(), array $params = array(), $pending = \false)
|
376 |
{
|
377 |
$this->assureId();
|
@@ -455,7 +445,7 @@ class User extends \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject
|
|
455 |
public function createLiveVideo(array $fields = array(), array $params = array(), $pending = \false)
|
456 |
{
|
457 |
$this->assureId();
|
458 |
-
$param_types = array('content_tags' => 'list<string>', 'description' => 'string', 'enable_backup_ingest' => 'bool', 'encoding_settings' => 'string', 'fisheye_video_cropped' => 'bool', 'front_z_rotation' => 'float', 'is_audio_only' => 'bool', 'is_spherical' => 'bool', 'live_encoders' => 'list<string>', 'original_fov' => 'unsigned int', '
|
459 |
$enums = array('projection_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\LiveVideoProjectionValues::getInstance()->getValues(), 'spatial_audio_format_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\LiveVideoSpatialAudioFormatValues::getInstance()->getValues(), 'status_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\LiveVideoStatusValues::getInstance()->getValues(), 'stereoscopic_mode_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\LiveVideoStereoscopicModeValues::getInstance()->getValues(), 'stream_type_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\LiveVideoStreamTypeValues::getInstance()->getValues());
|
460 |
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_POST, '/live_videos', new \PYS_PRO_GLOBAL\FacebookAds\Object\LiveVideo(), 'EDGE', \PYS_PRO_GLOBAL\FacebookAds\Object\LiveVideo::getFieldsEnum()->getValues(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
461 |
$request->addParams($params);
|
362 |
$request->addFields($fields);
|
363 |
return $pending ? $request : $request->execute();
|
364 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
365 |
public function getGroups(array $fields = array(), array $params = array(), $pending = \false)
|
366 |
{
|
367 |
$this->assureId();
|
445 |
public function createLiveVideo(array $fields = array(), array $params = array(), $pending = \false)
|
446 |
{
|
447 |
$this->assureId();
|
448 |
+
$param_types = array('content_tags' => 'list<string>', 'description' => 'string', 'enable_backup_ingest' => 'bool', 'encoding_settings' => 'string', 'fisheye_video_cropped' => 'bool', 'front_z_rotation' => 'float', 'is_audio_only' => 'bool', 'is_spherical' => 'bool', 'live_encoders' => 'list<string>', 'original_fov' => 'unsigned int', 'privacy' => 'string', 'projection' => 'projection_enum', 'published' => 'bool', 'schedule_custom_profile_image' => 'file', 'spatial_audio_format' => 'spatial_audio_format_enum', 'status' => 'status_enum', 'stereoscopic_mode' => 'stereoscopic_mode_enum', 'stop_on_delete_stream' => 'bool', 'stream_type' => 'stream_type_enum', 'title' => 'string');
|
449 |
$enums = array('projection_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\LiveVideoProjectionValues::getInstance()->getValues(), 'spatial_audio_format_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\LiveVideoSpatialAudioFormatValues::getInstance()->getValues(), 'status_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\LiveVideoStatusValues::getInstance()->getValues(), 'stereoscopic_mode_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\LiveVideoStereoscopicModeValues::getInstance()->getValues(), 'stream_type_enum' => \PYS_PRO_GLOBAL\FacebookAds\Object\Values\LiveVideoStreamTypeValues::getInstance()->getValues());
|
450 |
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_POST, '/live_videos', new \PYS_PRO_GLOBAL\FacebookAds\Object\LiveVideo(), 'EDGE', \PYS_PRO_GLOBAL\FacebookAds\Object\LiveVideo::getFieldsEnum()->getValues(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
451 |
$request->addParams($params);
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdAccountAdVolumeRecommendationTypeValues.php
CHANGED
@@ -42,6 +42,8 @@ class AdAccountAdVolumeRecommendationTypeValues extends \PYS_PRO_GLOBAL\Facebook
|
|
42 |
const AGGREGATED_COST_LIMITED = 'AGGREGATED_COST_LIMITED';
|
43 |
const AUCTION_OVERLAP = 'AUCTION_OVERLAP';
|
44 |
const CREATIVE_FATIGUE = 'CREATIVE_FATIGUE';
|
|
|
|
|
45 |
const FRAGMENTATION = 'FRAGMENTATION';
|
46 |
const LEARNING_LIMITED = 'LEARNING_LIMITED';
|
47 |
const TOP_ADSETS_WITH_ADS_UNDER_CAP = 'TOP_ADSETS_WITH_ADS_UNDER_CAP';
|
42 |
const AGGREGATED_COST_LIMITED = 'AGGREGATED_COST_LIMITED';
|
43 |
const AUCTION_OVERLAP = 'AUCTION_OVERLAP';
|
44 |
const CREATIVE_FATIGUE = 'CREATIVE_FATIGUE';
|
45 |
+
const DEAD_LINK = 'DEAD_LINK';
|
46 |
+
const ECOSYSTEM_BID_REDUCE_L1_CARDINALITY = 'ECOSYSTEM_BID_REDUCE_L1_CARDINALITY';
|
47 |
const FRAGMENTATION = 'FRAGMENTATION';
|
48 |
const LEARNING_LIMITED = 'LEARNING_LIMITED';
|
49 |
const TOP_ADSETS_WITH_ADS_UNDER_CAP = 'TOP_ADSETS_WITH_ADS_UNDER_CAP';
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdAccountContentTypeValues.php
CHANGED
@@ -41,6 +41,7 @@ class AdAccountContentTypeValues extends \PYS_PRO_GLOBAL\FacebookAds\Enum\Abstra
|
|
41 |
const FLIGHT = 'FLIGHT';
|
42 |
const HOME_LISTING = 'HOME_LISTING';
|
43 |
const HOTEL = 'HOTEL';
|
|
|
44 |
const LOCAL_SERVICE_BUSINESS = 'LOCAL_SERVICE_BUSINESS';
|
45 |
const LOCATION_BASED_ITEM = 'LOCATION_BASED_ITEM';
|
46 |
const MEDIA_TITLE = 'MEDIA_TITLE';
|
41 |
const FLIGHT = 'FLIGHT';
|
42 |
const HOME_LISTING = 'HOME_LISTING';
|
43 |
const HOTEL = 'HOTEL';
|
44 |
+
const JOB = 'JOB';
|
45 |
const LOCAL_SERVICE_BUSINESS = 'LOCAL_SERVICE_BUSINESS';
|
46 |
const LOCATION_BASED_ITEM = 'LOCATION_BASED_ITEM';
|
47 |
const MEDIA_TITLE = 'MEDIA_TITLE';
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdAccountDeliveryEstimateOptimizationGoalValues.php
CHANGED
@@ -37,10 +37,9 @@ use PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum;
|
|
37 |
class AdAccountDeliveryEstimateOptimizationGoalValues extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
38 |
{
|
39 |
const AD_RECALL_LIFT = 'AD_RECALL_LIFT';
|
40 |
-
const APP_DOWNLOADS = 'APP_DOWNLOADS';
|
41 |
const APP_INSTALLS = 'APP_INSTALLS';
|
42 |
-
const
|
43 |
-
const
|
44 |
const DERIVED_EVENTS = 'DERIVED_EVENTS';
|
45 |
const ENGAGED_USERS = 'ENGAGED_USERS';
|
46 |
const EVENT_RESPONSES = 'EVENT_RESPONSES';
|
@@ -49,18 +48,13 @@ class AdAccountDeliveryEstimateOptimizationGoalValues extends \PYS_PRO_GLOBAL\Fa
|
|
49 |
const LEAD_GENERATION = 'LEAD_GENERATION';
|
50 |
const LINK_CLICKS = 'LINK_CLICKS';
|
51 |
const NONE = 'NONE';
|
52 |
-
const OFFER_CLAIMS = 'OFFER_CLAIMS';
|
53 |
const OFFSITE_CONVERSIONS = 'OFFSITE_CONVERSIONS';
|
54 |
-
const PAGE_ENGAGEMENT = 'PAGE_ENGAGEMENT';
|
55 |
const PAGE_LIKES = 'PAGE_LIKES';
|
56 |
const POST_ENGAGEMENT = 'POST_ENGAGEMENT';
|
57 |
const QUALITY_CALL = 'QUALITY_CALL';
|
58 |
const QUALITY_LEAD = 'QUALITY_LEAD';
|
59 |
const REACH = 'REACH';
|
60 |
-
const REPLIES = 'REPLIES';
|
61 |
-
const SOCIAL_IMPRESSIONS = 'SOCIAL_IMPRESSIONS';
|
62 |
const THRUPLAY = 'THRUPLAY';
|
63 |
-
const TWO_SECOND_CONTINUOUS_VIDEO_VIEWS = 'TWO_SECOND_CONTINUOUS_VIDEO_VIEWS';
|
64 |
const VALUE = 'VALUE';
|
65 |
const VISIT_INSTAGRAM_PROFILE = 'VISIT_INSTAGRAM_PROFILE';
|
66 |
}
|
37 |
class AdAccountDeliveryEstimateOptimizationGoalValues extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
38 |
{
|
39 |
const AD_RECALL_LIFT = 'AD_RECALL_LIFT';
|
|
|
40 |
const APP_INSTALLS = 'APP_INSTALLS';
|
41 |
+
const APP_INSTALLS_AND_OFFSITE_CONVERSIONS = 'APP_INSTALLS_AND_OFFSITE_CONVERSIONS';
|
42 |
+
const CONVERSATIONS = 'CONVERSATIONS';
|
43 |
const DERIVED_EVENTS = 'DERIVED_EVENTS';
|
44 |
const ENGAGED_USERS = 'ENGAGED_USERS';
|
45 |
const EVENT_RESPONSES = 'EVENT_RESPONSES';
|
48 |
const LEAD_GENERATION = 'LEAD_GENERATION';
|
49 |
const LINK_CLICKS = 'LINK_CLICKS';
|
50 |
const NONE = 'NONE';
|
|
|
51 |
const OFFSITE_CONVERSIONS = 'OFFSITE_CONVERSIONS';
|
|
|
52 |
const PAGE_LIKES = 'PAGE_LIKES';
|
53 |
const POST_ENGAGEMENT = 'POST_ENGAGEMENT';
|
54 |
const QUALITY_CALL = 'QUALITY_CALL';
|
55 |
const QUALITY_LEAD = 'QUALITY_LEAD';
|
56 |
const REACH = 'REACH';
|
|
|
|
|
57 |
const THRUPLAY = 'THRUPLAY';
|
|
|
58 |
const VALUE = 'VALUE';
|
59 |
const VISIT_INSTAGRAM_PROFILE = 'VISIT_INSTAGRAM_PROFILE';
|
60 |
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdAccountMatchedSearchApplicationsEdgeDataAppStoreValues.php
CHANGED
@@ -37,6 +37,11 @@ use PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum;
|
|
37 |
class AdAccountMatchedSearchApplicationsEdgeDataAppStoreValues extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
38 |
{
|
39 |
const AMAZON_APP_STORE = 'AMAZON_APP_STORE';
|
|
|
|
|
|
|
|
|
|
|
40 |
const DOES_NOT_EXIST = 'DOES_NOT_EXIST';
|
41 |
const FB_ANDROID_STORE = 'FB_ANDROID_STORE';
|
42 |
const FB_CANVAS = 'FB_CANVAS';
|
@@ -47,7 +52,11 @@ class AdAccountMatchedSearchApplicationsEdgeDataAppStoreValues extends \PYS_PRO_
|
|
47 |
const ITUNES = 'ITUNES';
|
48 |
const ITUNES_IPAD = 'ITUNES_IPAD';
|
49 |
const OCULUS_APP_STORE = 'OCULUS_APP_STORE';
|
|
|
50 |
const ROKU_STORE = 'ROKU_STORE';
|
|
|
|
|
51 |
const WINDOWS_10_STORE = 'WINDOWS_10_STORE';
|
52 |
const WINDOWS_STORE = 'WINDOWS_STORE';
|
|
|
53 |
}
|
37 |
class AdAccountMatchedSearchApplicationsEdgeDataAppStoreValues extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
38 |
{
|
39 |
const AMAZON_APP_STORE = 'AMAZON_APP_STORE';
|
40 |
+
const APK_MIRROR = 'APK_MIRROR';
|
41 |
+
const APK_MONK = 'APK_MONK';
|
42 |
+
const APK_PURE = 'APK_PURE';
|
43 |
+
const APTOIDE_A1_STORE = 'APTOIDE_A1_STORE';
|
44 |
+
const BEMOBI_MOBILE_STORE = 'BEMOBI_MOBILE_STORE';
|
45 |
const DOES_NOT_EXIST = 'DOES_NOT_EXIST';
|
46 |
const FB_ANDROID_STORE = 'FB_ANDROID_STORE';
|
47 |
const FB_CANVAS = 'FB_CANVAS';
|
52 |
const ITUNES = 'ITUNES';
|
53 |
const ITUNES_IPAD = 'ITUNES_IPAD';
|
54 |
const OCULUS_APP_STORE = 'OCULUS_APP_STORE';
|
55 |
+
const OPPO = 'OPPO';
|
56 |
const ROKU_STORE = 'ROKU_STORE';
|
57 |
+
const UPTODOWN = 'UPTODOWN';
|
58 |
+
const VIVO = 'VIVO';
|
59 |
const WINDOWS_10_STORE = 'WINDOWS_10_STORE';
|
60 |
const WINDOWS_STORE = 'WINDOWS_STORE';
|
61 |
+
const XIAOMI = 'XIAOMI';
|
62 |
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdAccountTargetingUnifiedAppStoreValues.php
CHANGED
@@ -37,6 +37,11 @@ use PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum;
|
|
37 |
class AdAccountTargetingUnifiedAppStoreValues extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
38 |
{
|
39 |
const AMAZON_APP_STORE = 'amazon_app_store';
|
|
|
|
|
|
|
|
|
|
|
40 |
const DOES_NOT_EXIST = 'does_not_exist';
|
41 |
const FB_ANDROID_STORE = 'fb_android_store';
|
42 |
const FB_CANVAS = 'fb_canvas';
|
@@ -47,7 +52,11 @@ class AdAccountTargetingUnifiedAppStoreValues extends \PYS_PRO_GLOBAL\FacebookAd
|
|
47 |
const ITUNES = 'itunes';
|
48 |
const ITUNES_IPAD = 'itunes_ipad';
|
49 |
const OCULUS_APP_STORE = 'oculus_app_store';
|
|
|
50 |
const ROKU_CHANNEL_STORE = 'roku_channel_store';
|
|
|
|
|
51 |
const WINDOWS_10_STORE = 'windows_10_store';
|
52 |
const WINDOWS_STORE = 'windows_store';
|
|
|
53 |
}
|
37 |
class AdAccountTargetingUnifiedAppStoreValues extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
38 |
{
|
39 |
const AMAZON_APP_STORE = 'amazon_app_store';
|
40 |
+
const APK_MIRROR = 'apk_mirror';
|
41 |
+
const APK_MONK = 'apk_monk';
|
42 |
+
const APK_PURE = 'apk_pure';
|
43 |
+
const APTOIDE_A1_STORE = 'aptoide_a1_store';
|
44 |
+
const BEMOBI_MOBILE_STORE = 'bemobi_mobile_store';
|
45 |
const DOES_NOT_EXIST = 'does_not_exist';
|
46 |
const FB_ANDROID_STORE = 'fb_android_store';
|
47 |
const FB_CANVAS = 'fb_canvas';
|
52 |
const ITUNES = 'itunes';
|
53 |
const ITUNES_IPAD = 'itunes_ipad';
|
54 |
const OCULUS_APP_STORE = 'oculus_app_store';
|
55 |
+
const OPPO = 'oppo';
|
56 |
const ROKU_CHANNEL_STORE = 'roku_channel_store';
|
57 |
+
const UPTODOWN = 'uptodown';
|
58 |
+
const VIVO = 'vivo';
|
59 |
const WINDOWS_10_STORE = 'windows_10_store';
|
60 |
const WINDOWS_STORE = 'windows_store';
|
61 |
+
const XIAOMI = 'xiaomi';
|
62 |
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdAccountTargetingUnifiedRegulatedCategoriesValues.php
CHANGED
@@ -41,4 +41,5 @@ class AdAccountTargetingUnifiedRegulatedCategoriesValues extends \PYS_PRO_GLOBAL
|
|
41 |
const HOUSING = 'HOUSING';
|
42 |
const ISSUES_ELECTIONS_POLITICS = 'ISSUES_ELECTIONS_POLITICS';
|
43 |
const NONE = 'NONE';
|
|
|
44 |
}
|
41 |
const HOUSING = 'HOUSING';
|
42 |
const ISSUES_ELECTIONS_POLITICS = 'ISSUES_ELECTIONS_POLITICS';
|
43 |
const NONE = 'NONE';
|
44 |
+
const ONLINE_GAMBLING_AND_GAMING = 'ONLINE_GAMBLING_AND_GAMING';
|
45 |
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdAccountTasksValues.php
CHANGED
@@ -36,6 +36,7 @@ use PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum;
|
|
36 |
*/
|
37 |
class AdAccountTasksValues extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
38 |
{
|
|
|
39 |
const ADVERTISE = 'ADVERTISE';
|
40 |
const ANALYZE = 'ANALYZE';
|
41 |
const DRAFT = 'DRAFT';
|
36 |
*/
|
37 |
class AdAccountTasksValues extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
38 |
{
|
39 |
+
const AA_ANALYZE = 'AA_ANALYZE';
|
40 |
const ADVERTISE = 'ADVERTISE';
|
41 |
const ANALYZE = 'ANALYZE';
|
42 |
const DRAFT = 'DRAFT';
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdActivityDataSourceValues.php
CHANGED
@@ -38,4 +38,5 @@ class AdActivityDataSourceValues extends \PYS_PRO_GLOBAL\FacebookAds\Enum\Abstra
|
|
38 |
{
|
39 |
const CALYPSO = 'CALYPSO';
|
40 |
const TAO = 'TAO';
|
|
|
41 |
}
|
38 |
{
|
39 |
const CALYPSO = 'CALYPSO';
|
40 |
const TAO = 'TAO';
|
41 |
+
const TAO_AD_ACCOUNT = 'TAO_AD_ACCOUNT';
|
42 |
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdAssetFeedSpecCallToActionTypesValues.php
CHANGED
@@ -44,6 +44,7 @@ class AdAssetFeedSpecCallToActionTypesValues extends \PYS_PRO_GLOBAL\FacebookAds
|
|
44 |
const BUY_TICKETS = 'BUY_TICKETS';
|
45 |
const CALL = 'CALL';
|
46 |
const CALL_ME = 'CALL_ME';
|
|
|
47 |
const CONTACT = 'CONTACT';
|
48 |
const CONTACT_US = 'CONTACT_US';
|
49 |
const DONATE = 'DONATE';
|
44 |
const BUY_TICKETS = 'BUY_TICKETS';
|
45 |
const CALL = 'CALL';
|
46 |
const CALL_ME = 'CALL_ME';
|
47 |
+
const CALL_NOW = 'CALL_NOW';
|
48 |
const CONTACT = 'CONTACT';
|
49 |
const CONTACT_US = 'CONTACT_US';
|
50 |
const DONATE = 'DONATE';
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdCampaignActivityOptimizationGoalNewValues.php
CHANGED
@@ -37,10 +37,9 @@ use PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum;
|
|
37 |
class AdCampaignActivityOptimizationGoalNewValues extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
38 |
{
|
39 |
const AD_RECALL_LIFT = 'AD_RECALL_LIFT';
|
40 |
-
const APP_DOWNLOADS = 'APP_DOWNLOADS';
|
41 |
const APP_INSTALLS = 'APP_INSTALLS';
|
42 |
-
const
|
43 |
-
const
|
44 |
const DERIVED_EVENTS = 'DERIVED_EVENTS';
|
45 |
const ENGAGED_USERS = 'ENGAGED_USERS';
|
46 |
const EVENT_RESPONSES = 'EVENT_RESPONSES';
|
@@ -49,18 +48,13 @@ class AdCampaignActivityOptimizationGoalNewValues extends \PYS_PRO_GLOBAL\Facebo
|
|
49 |
const LEAD_GENERATION = 'LEAD_GENERATION';
|
50 |
const LINK_CLICKS = 'LINK_CLICKS';
|
51 |
const NONE = 'NONE';
|
52 |
-
const OFFER_CLAIMS = 'OFFER_CLAIMS';
|
53 |
const OFFSITE_CONVERSIONS = 'OFFSITE_CONVERSIONS';
|
54 |
-
const PAGE_ENGAGEMENT = 'PAGE_ENGAGEMENT';
|
55 |
const PAGE_LIKES = 'PAGE_LIKES';
|
56 |
const POST_ENGAGEMENT = 'POST_ENGAGEMENT';
|
57 |
const QUALITY_CALL = 'QUALITY_CALL';
|
58 |
const QUALITY_LEAD = 'QUALITY_LEAD';
|
59 |
const REACH = 'REACH';
|
60 |
-
const REPLIES = 'REPLIES';
|
61 |
-
const SOCIAL_IMPRESSIONS = 'SOCIAL_IMPRESSIONS';
|
62 |
const THRUPLAY = 'THRUPLAY';
|
63 |
-
const TWO_SECOND_CONTINUOUS_VIDEO_VIEWS = 'TWO_SECOND_CONTINUOUS_VIDEO_VIEWS';
|
64 |
const VALUE = 'VALUE';
|
65 |
const VISIT_INSTAGRAM_PROFILE = 'VISIT_INSTAGRAM_PROFILE';
|
66 |
}
|
37 |
class AdCampaignActivityOptimizationGoalNewValues extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
38 |
{
|
39 |
const AD_RECALL_LIFT = 'AD_RECALL_LIFT';
|
|
|
40 |
const APP_INSTALLS = 'APP_INSTALLS';
|
41 |
+
const APP_INSTALLS_AND_OFFSITE_CONVERSIONS = 'APP_INSTALLS_AND_OFFSITE_CONVERSIONS';
|
42 |
+
const CONVERSATIONS = 'CONVERSATIONS';
|
43 |
const DERIVED_EVENTS = 'DERIVED_EVENTS';
|
44 |
const ENGAGED_USERS = 'ENGAGED_USERS';
|
45 |
const EVENT_RESPONSES = 'EVENT_RESPONSES';
|
48 |
const LEAD_GENERATION = 'LEAD_GENERATION';
|
49 |
const LINK_CLICKS = 'LINK_CLICKS';
|
50 |
const NONE = 'NONE';
|
|
|
51 |
const OFFSITE_CONVERSIONS = 'OFFSITE_CONVERSIONS';
|
|
|
52 |
const PAGE_LIKES = 'PAGE_LIKES';
|
53 |
const POST_ENGAGEMENT = 'POST_ENGAGEMENT';
|
54 |
const QUALITY_CALL = 'QUALITY_CALL';
|
55 |
const QUALITY_LEAD = 'QUALITY_LEAD';
|
56 |
const REACH = 'REACH';
|
|
|
|
|
57 |
const THRUPLAY = 'THRUPLAY';
|
|
|
58 |
const VALUE = 'VALUE';
|
59 |
const VISIT_INSTAGRAM_PROFILE = 'VISIT_INSTAGRAM_PROFILE';
|
60 |
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdCampaignActivityOptimizationGoalOldValues.php
CHANGED
@@ -37,10 +37,9 @@ use PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum;
|
|
37 |
class AdCampaignActivityOptimizationGoalOldValues extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
38 |
{
|
39 |
const AD_RECALL_LIFT = 'AD_RECALL_LIFT';
|
40 |
-
const APP_DOWNLOADS = 'APP_DOWNLOADS';
|
41 |
const APP_INSTALLS = 'APP_INSTALLS';
|
42 |
-
const
|
43 |
-
const
|
44 |
const DERIVED_EVENTS = 'DERIVED_EVENTS';
|
45 |
const ENGAGED_USERS = 'ENGAGED_USERS';
|
46 |
const EVENT_RESPONSES = 'EVENT_RESPONSES';
|
@@ -49,18 +48,13 @@ class AdCampaignActivityOptimizationGoalOldValues extends \PYS_PRO_GLOBAL\Facebo
|
|
49 |
const LEAD_GENERATION = 'LEAD_GENERATION';
|
50 |
const LINK_CLICKS = 'LINK_CLICKS';
|
51 |
const NONE = 'NONE';
|
52 |
-
const OFFER_CLAIMS = 'OFFER_CLAIMS';
|
53 |
const OFFSITE_CONVERSIONS = 'OFFSITE_CONVERSIONS';
|
54 |
-
const PAGE_ENGAGEMENT = 'PAGE_ENGAGEMENT';
|
55 |
const PAGE_LIKES = 'PAGE_LIKES';
|
56 |
const POST_ENGAGEMENT = 'POST_ENGAGEMENT';
|
57 |
const QUALITY_CALL = 'QUALITY_CALL';
|
58 |
const QUALITY_LEAD = 'QUALITY_LEAD';
|
59 |
const REACH = 'REACH';
|
60 |
-
const REPLIES = 'REPLIES';
|
61 |
-
const SOCIAL_IMPRESSIONS = 'SOCIAL_IMPRESSIONS';
|
62 |
const THRUPLAY = 'THRUPLAY';
|
63 |
-
const TWO_SECOND_CONTINUOUS_VIDEO_VIEWS = 'TWO_SECOND_CONTINUOUS_VIDEO_VIEWS';
|
64 |
const VALUE = 'VALUE';
|
65 |
const VISIT_INSTAGRAM_PROFILE = 'VISIT_INSTAGRAM_PROFILE';
|
66 |
}
|
37 |
class AdCampaignActivityOptimizationGoalOldValues extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
38 |
{
|
39 |
const AD_RECALL_LIFT = 'AD_RECALL_LIFT';
|
|
|
40 |
const APP_INSTALLS = 'APP_INSTALLS';
|
41 |
+
const APP_INSTALLS_AND_OFFSITE_CONVERSIONS = 'APP_INSTALLS_AND_OFFSITE_CONVERSIONS';
|
42 |
+
const CONVERSATIONS = 'CONVERSATIONS';
|
43 |
const DERIVED_EVENTS = 'DERIVED_EVENTS';
|
44 |
const ENGAGED_USERS = 'ENGAGED_USERS';
|
45 |
const EVENT_RESPONSES = 'EVENT_RESPONSES';
|
48 |
const LEAD_GENERATION = 'LEAD_GENERATION';
|
49 |
const LINK_CLICKS = 'LINK_CLICKS';
|
50 |
const NONE = 'NONE';
|
|
|
51 |
const OFFSITE_CONVERSIONS = 'OFFSITE_CONVERSIONS';
|
|
|
52 |
const PAGE_LIKES = 'PAGE_LIKES';
|
53 |
const POST_ENGAGEMENT = 'POST_ENGAGEMENT';
|
54 |
const QUALITY_CALL = 'QUALITY_CALL';
|
55 |
const QUALITY_LEAD = 'QUALITY_LEAD';
|
56 |
const REACH = 'REACH';
|
|
|
|
|
57 |
const THRUPLAY = 'THRUPLAY';
|
|
|
58 |
const VALUE = 'VALUE';
|
59 |
const VISIT_INSTAGRAM_PROFILE = 'VISIT_INSTAGRAM_PROFILE';
|
60 |
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdCampaignDeliveryEstimateOptimizationGoalValues.php
CHANGED
@@ -37,10 +37,9 @@ use PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum;
|
|
37 |
class AdCampaignDeliveryEstimateOptimizationGoalValues extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
38 |
{
|
39 |
const AD_RECALL_LIFT = 'AD_RECALL_LIFT';
|
40 |
-
const APP_DOWNLOADS = 'APP_DOWNLOADS';
|
41 |
const APP_INSTALLS = 'APP_INSTALLS';
|
42 |
-
const
|
43 |
-
const
|
44 |
const DERIVED_EVENTS = 'DERIVED_EVENTS';
|
45 |
const ENGAGED_USERS = 'ENGAGED_USERS';
|
46 |
const EVENT_RESPONSES = 'EVENT_RESPONSES';
|
@@ -49,18 +48,13 @@ class AdCampaignDeliveryEstimateOptimizationGoalValues extends \PYS_PRO_GLOBAL\F
|
|
49 |
const LEAD_GENERATION = 'LEAD_GENERATION';
|
50 |
const LINK_CLICKS = 'LINK_CLICKS';
|
51 |
const NONE = 'NONE';
|
52 |
-
const OFFER_CLAIMS = 'OFFER_CLAIMS';
|
53 |
const OFFSITE_CONVERSIONS = 'OFFSITE_CONVERSIONS';
|
54 |
-
const PAGE_ENGAGEMENT = 'PAGE_ENGAGEMENT';
|
55 |
const PAGE_LIKES = 'PAGE_LIKES';
|
56 |
const POST_ENGAGEMENT = 'POST_ENGAGEMENT';
|
57 |
const QUALITY_CALL = 'QUALITY_CALL';
|
58 |
const QUALITY_LEAD = 'QUALITY_LEAD';
|
59 |
const REACH = 'REACH';
|
60 |
-
const REPLIES = 'REPLIES';
|
61 |
-
const SOCIAL_IMPRESSIONS = 'SOCIAL_IMPRESSIONS';
|
62 |
const THRUPLAY = 'THRUPLAY';
|
63 |
-
const TWO_SECOND_CONTINUOUS_VIDEO_VIEWS = 'TWO_SECOND_CONTINUOUS_VIDEO_VIEWS';
|
64 |
const VALUE = 'VALUE';
|
65 |
const VISIT_INSTAGRAM_PROFILE = 'VISIT_INSTAGRAM_PROFILE';
|
66 |
}
|
37 |
class AdCampaignDeliveryEstimateOptimizationGoalValues extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
38 |
{
|
39 |
const AD_RECALL_LIFT = 'AD_RECALL_LIFT';
|
|
|
40 |
const APP_INSTALLS = 'APP_INSTALLS';
|
41 |
+
const APP_INSTALLS_AND_OFFSITE_CONVERSIONS = 'APP_INSTALLS_AND_OFFSITE_CONVERSIONS';
|
42 |
+
const CONVERSATIONS = 'CONVERSATIONS';
|
43 |
const DERIVED_EVENTS = 'DERIVED_EVENTS';
|
44 |
const ENGAGED_USERS = 'ENGAGED_USERS';
|
45 |
const EVENT_RESPONSES = 'EVENT_RESPONSES';
|
48 |
const LEAD_GENERATION = 'LEAD_GENERATION';
|
49 |
const LINK_CLICKS = 'LINK_CLICKS';
|
50 |
const NONE = 'NONE';
|
|
|
51 |
const OFFSITE_CONVERSIONS = 'OFFSITE_CONVERSIONS';
|
|
|
52 |
const PAGE_LIKES = 'PAGE_LIKES';
|
53 |
const POST_ENGAGEMENT = 'POST_ENGAGEMENT';
|
54 |
const QUALITY_CALL = 'QUALITY_CALL';
|
55 |
const QUALITY_LEAD = 'QUALITY_LEAD';
|
56 |
const REACH = 'REACH';
|
|
|
|
|
57 |
const THRUPLAY = 'THRUPLAY';
|
|
|
58 |
const VALUE = 'VALUE';
|
59 |
const VISIT_INSTAGRAM_PROFILE = 'VISIT_INSTAGRAM_PROFILE';
|
60 |
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdCreativeApplinkTreatmentValues.php
CHANGED
@@ -36,6 +36,7 @@ use PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum;
|
|
36 |
*/
|
37 |
class AdCreativeApplinkTreatmentValues extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
38 |
{
|
|
|
39 |
const DEEPLINK_WITH_APPSTORE_FALLBACK = 'deeplink_with_appstore_fallback';
|
40 |
const DEEPLINK_WITH_WEB_FALLBACK = 'deeplink_with_web_fallback';
|
41 |
const WEB_ONLY = 'web_only';
|
36 |
*/
|
37 |
class AdCreativeApplinkTreatmentValues extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
38 |
{
|
39 |
+
const AUTOMATIC = 'automatic';
|
40 |
const DEEPLINK_WITH_APPSTORE_FALLBACK = 'deeplink_with_appstore_fallback';
|
41 |
const DEEPLINK_WITH_WEB_FALLBACK = 'deeplink_with_web_fallback';
|
42 |
const WEB_ONLY = 'web_only';
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdCreativeCallToActionTypeValues.php
CHANGED
@@ -44,6 +44,7 @@ class AdCreativeCallToActionTypeValues extends \PYS_PRO_GLOBAL\FacebookAds\Enum\
|
|
44 |
const BUY_TICKETS = 'BUY_TICKETS';
|
45 |
const CALL = 'CALL';
|
46 |
const CALL_ME = 'CALL_ME';
|
|
|
47 |
const CONTACT = 'CONTACT';
|
48 |
const CONTACT_US = 'CONTACT_US';
|
49 |
const DONATE = 'DONATE';
|
44 |
const BUY_TICKETS = 'BUY_TICKETS';
|
45 |
const CALL = 'CALL';
|
46 |
const CALL_ME = 'CALL_ME';
|
47 |
+
const CALL_NOW = 'CALL_NOW';
|
48 |
const CONTACT = 'CONTACT';
|
49 |
const CONTACT_US = 'CONTACT_US';
|
50 |
const DONATE = 'DONATE';
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdCreativeLinkDataCallToActionTypeValues.php
CHANGED
@@ -44,6 +44,7 @@ class AdCreativeLinkDataCallToActionTypeValues extends \PYS_PRO_GLOBAL\FacebookA
|
|
44 |
const BUY_TICKETS = 'BUY_TICKETS';
|
45 |
const CALL = 'CALL';
|
46 |
const CALL_ME = 'CALL_ME';
|
|
|
47 |
const CONTACT = 'CONTACT';
|
48 |
const CONTACT_US = 'CONTACT_US';
|
49 |
const DONATE = 'DONATE';
|
44 |
const BUY_TICKETS = 'BUY_TICKETS';
|
45 |
const CALL = 'CALL';
|
46 |
const CALL_ME = 'CALL_ME';
|
47 |
+
const CALL_NOW = 'CALL_NOW';
|
48 |
const CONTACT = 'CONTACT';
|
49 |
const CONTACT_US = 'CONTACT_US';
|
50 |
const DONATE = 'DONATE';
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdCreativeLinkDataImageOverlaySpecTextTypeValues.php
CHANGED
@@ -36,6 +36,7 @@ use PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum;
|
|
36 |
*/
|
37 |
class AdCreativeLinkDataImageOverlaySpecTextTypeValues extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
38 |
{
|
|
|
39 |
const CUSTOM = 'custom';
|
40 |
const DISCLAIMER = 'disclaimer';
|
41 |
const FROM_PRICE = 'from_price';
|
36 |
*/
|
37 |
class AdCreativeLinkDataImageOverlaySpecTextTypeValues extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
38 |
{
|
39 |
+
const AUTOMATED_PERSONALIZE = 'automated_personalize';
|
40 |
const CUSTOM = 'custom';
|
41 |
const DISCLAIMER = 'disclaimer';
|
42 |
const FROM_PRICE = 'from_price';
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdNetworkAnalyticsSyncQueryResultMetricsValues.php
CHANGED
@@ -51,6 +51,7 @@ class AdNetworkAnalyticsSyncQueryResultMetricsValues extends \PYS_PRO_GLOBAL\Fac
|
|
51 |
const FB_AD_NETWORK_REQUEST = 'FB_AD_NETWORK_REQUEST';
|
52 |
const FB_AD_NETWORK_REVENUE = 'FB_AD_NETWORK_REVENUE';
|
53 |
const FB_AD_NETWORK_SHOW_RATE = 'FB_AD_NETWORK_SHOW_RATE';
|
|
|
54 |
const FB_AD_NETWORK_VIDEO_GUARANTEE_REVENUE = 'FB_AD_NETWORK_VIDEO_GUARANTEE_REVENUE';
|
55 |
const FB_AD_NETWORK_VIDEO_MRC = 'FB_AD_NETWORK_VIDEO_MRC';
|
56 |
const FB_AD_NETWORK_VIDEO_MRC_RATE = 'FB_AD_NETWORK_VIDEO_MRC_RATE';
|
51 |
const FB_AD_NETWORK_REQUEST = 'FB_AD_NETWORK_REQUEST';
|
52 |
const FB_AD_NETWORK_REVENUE = 'FB_AD_NETWORK_REVENUE';
|
53 |
const FB_AD_NETWORK_SHOW_RATE = 'FB_AD_NETWORK_SHOW_RATE';
|
54 |
+
const FB_AD_NETWORK_UA_SPEND = 'FB_AD_NETWORK_UA_SPEND';
|
55 |
const FB_AD_NETWORK_VIDEO_GUARANTEE_REVENUE = 'FB_AD_NETWORK_VIDEO_GUARANTEE_REVENUE';
|
56 |
const FB_AD_NETWORK_VIDEO_MRC = 'FB_AD_NETWORK_VIDEO_MRC';
|
57 |
const FB_AD_NETWORK_VIDEO_MRC_RATE = 'FB_AD_NETWORK_VIDEO_MRC_RATE';
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdPreviewAdFormatValues.php
CHANGED
@@ -40,13 +40,17 @@ class AdPreviewAdFormatValues extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractE
|
|
40 |
const AUDIENCE_NETWORK_INSTREAM_VIDEO_MOBILE = 'AUDIENCE_NETWORK_INSTREAM_VIDEO_MOBILE';
|
41 |
const AUDIENCE_NETWORK_OUTSTREAM_VIDEO = 'AUDIENCE_NETWORK_OUTSTREAM_VIDEO';
|
42 |
const AUDIENCE_NETWORK_REWARDED_VIDEO = 'AUDIENCE_NETWORK_REWARDED_VIDEO';
|
|
|
43 |
const DESKTOP_FEED_STANDARD = 'DESKTOP_FEED_STANDARD';
|
|
|
|
|
|
|
44 |
const FACEBOOK_STORY_MOBILE = 'FACEBOOK_STORY_MOBILE';
|
45 |
const FACEBOOK_STORY_STICKER_MOBILE = 'FACEBOOK_STORY_STICKER_MOBILE';
|
46 |
const INSTAGRAM_EXPLORE_CONTEXTUAL = 'INSTAGRAM_EXPLORE_CONTEXTUAL';
|
47 |
const INSTAGRAM_EXPLORE_IMMERSIVE = 'INSTAGRAM_EXPLORE_IMMERSIVE';
|
48 |
const INSTAGRAM_REELS = 'INSTAGRAM_REELS';
|
49 |
-
const
|
50 |
const INSTAGRAM_STANDARD = 'INSTAGRAM_STANDARD';
|
51 |
const INSTAGRAM_STORY = 'INSTAGRAM_STORY';
|
52 |
const INSTANT_ARTICLE_RECIRCULATION_AD = 'INSTANT_ARTICLE_RECIRCULATION_AD';
|
40 |
const AUDIENCE_NETWORK_INSTREAM_VIDEO_MOBILE = 'AUDIENCE_NETWORK_INSTREAM_VIDEO_MOBILE';
|
41 |
const AUDIENCE_NETWORK_OUTSTREAM_VIDEO = 'AUDIENCE_NETWORK_OUTSTREAM_VIDEO';
|
42 |
const AUDIENCE_NETWORK_REWARDED_VIDEO = 'AUDIENCE_NETWORK_REWARDED_VIDEO';
|
43 |
+
const BIZ_DISCO_FEED_MOBILE = 'BIZ_DISCO_FEED_MOBILE';
|
44 |
const DESKTOP_FEED_STANDARD = 'DESKTOP_FEED_STANDARD';
|
45 |
+
const FACEBOOK_REELS_BANNER = 'FACEBOOK_REELS_BANNER';
|
46 |
+
const FACEBOOK_REELS_MOBILE = 'FACEBOOK_REELS_MOBILE';
|
47 |
+
const FACEBOOK_REELS_STICKER = 'FACEBOOK_REELS_STICKER';
|
48 |
const FACEBOOK_STORY_MOBILE = 'FACEBOOK_STORY_MOBILE';
|
49 |
const FACEBOOK_STORY_STICKER_MOBILE = 'FACEBOOK_STORY_STICKER_MOBILE';
|
50 |
const INSTAGRAM_EXPLORE_CONTEXTUAL = 'INSTAGRAM_EXPLORE_CONTEXTUAL';
|
51 |
const INSTAGRAM_EXPLORE_IMMERSIVE = 'INSTAGRAM_EXPLORE_IMMERSIVE';
|
52 |
const INSTAGRAM_REELS = 'INSTAGRAM_REELS';
|
53 |
+
const INSTAGRAM_SHOP = 'INSTAGRAM_SHOP';
|
54 |
const INSTAGRAM_STANDARD = 'INSTAGRAM_STANDARD';
|
55 |
const INSTAGRAM_STORY = 'INSTAGRAM_STORY';
|
56 |
const INSTANT_ARTICLE_RECIRCULATION_AD = 'INSTANT_ARTICLE_RECIRCULATION_AD';
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdRuleExecutionSpecExecutionTypeValues.php
CHANGED
@@ -38,6 +38,7 @@ class AdRuleExecutionSpecExecutionTypeValues extends \PYS_PRO_GLOBAL\FacebookAds
|
|
38 |
{
|
39 |
const ADD_INTEREST_RELAXATION = 'ADD_INTEREST_RELAXATION';
|
40 |
const ADD_QUESTIONNAIRE_INTERESTS = 'ADD_QUESTIONNAIRE_INTERESTS';
|
|
|
41 |
const CHANGE_BID = 'CHANGE_BID';
|
42 |
const CHANGE_BUDGET = 'CHANGE_BUDGET';
|
43 |
const CHANGE_CAMPAIGN_BUDGET = 'CHANGE_CAMPAIGN_BUDGET';
|
@@ -49,4 +50,6 @@ class AdRuleExecutionSpecExecutionTypeValues extends \PYS_PRO_GLOBAL\FacebookAds
|
|
49 |
const ROTATE = 'ROTATE';
|
50 |
const UNPAUSE = 'UNPAUSE';
|
51 |
const UPDATE_CREATIVE = 'UPDATE_CREATIVE';
|
|
|
|
|
52 |
}
|
38 |
{
|
39 |
const ADD_INTEREST_RELAXATION = 'ADD_INTEREST_RELAXATION';
|
40 |
const ADD_QUESTIONNAIRE_INTERESTS = 'ADD_QUESTIONNAIRE_INTERESTS';
|
41 |
+
const AUDIENCE_CONSOLIDATION = 'AUDIENCE_CONSOLIDATION';
|
42 |
const CHANGE_BID = 'CHANGE_BID';
|
43 |
const CHANGE_BUDGET = 'CHANGE_BUDGET';
|
44 |
const CHANGE_CAMPAIGN_BUDGET = 'CHANGE_CAMPAIGN_BUDGET';
|
50 |
const ROTATE = 'ROTATE';
|
51 |
const UNPAUSE = 'UNPAUSE';
|
52 |
const UPDATE_CREATIVE = 'UPDATE_CREATIVE';
|
53 |
+
const UPDATE_LAX_BUDGET = 'UPDATE_LAX_BUDGET';
|
54 |
+
const UPDATE_LAX_DURATION = 'UPDATE_LAX_DURATION';
|
55 |
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdRuleUiCreationSourceValues.php
ADDED
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Copyright (c) 2015-present, Facebook, Inc. All rights reserved.
|
5 |
+
*
|
6 |
+
* You are hereby granted a non-exclusive, worldwide, royalty-free license to
|
7 |
+
* use, copy, modify, and distribute this software in source code or binary
|
8 |
+
* form for use in connection with the web services and APIs provided by
|
9 |
+
* Facebook.
|
10 |
+
*
|
11 |
+
* As with any software that integrates with the Facebook platform, your use
|
12 |
+
* of this software is subject to the Facebook Developer Principles and
|
13 |
+
* Policies [http://developers.facebook.com/policy/]. This copyright notice
|
14 |
+
* shall be included in all copies or substantial portions of the software.
|
15 |
+
*
|
16 |
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
17 |
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
18 |
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
19 |
+
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
20 |
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
21 |
+
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
22 |
+
* DEALINGS IN THE SOFTWARE.
|
23 |
+
*
|
24 |
+
*/
|
25 |
+
namespace PYS_PRO_GLOBAL\FacebookAds\Object\Values;
|
26 |
+
|
27 |
+
use PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum;
|
28 |
+
/**
|
29 |
+
* This class is auto-generated.
|
30 |
+
*
|
31 |
+
* For any issues or feature requests related to this class, please let us know
|
32 |
+
* on github and we'll fix in our codegen framework. We'll not be able to accept
|
33 |
+
* pull request for this class.
|
34 |
+
*
|
35 |
+
* @method static AdRuleUiCreationSourceValues getInstance()
|
36 |
+
*/
|
37 |
+
class AdRuleUiCreationSourceValues extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
38 |
+
{
|
39 |
+
const AM_ACCOUNT_OVERVIEW_RECOMMENDATIONS = 'AM_ACCOUNT_OVERVIEW_RECOMMENDATIONS';
|
40 |
+
const AM_ACTIVITY_HISTORY_TABLE = 'AM_ACTIVITY_HISTORY_TABLE';
|
41 |
+
const AM_AD_OBJECT_NAME_CARD = 'AM_AD_OBJECT_NAME_CARD';
|
42 |
+
const AM_AMFE_L3_RECOMMENDATION = 'AM_AMFE_L3_RECOMMENDATION';
|
43 |
+
const AM_EDITOR_CARD = 'AM_EDITOR_CARD';
|
44 |
+
const AM_INFO_CARD = 'AM_INFO_CARD';
|
45 |
+
const AM_MID_FLIGHT_RESOLUTION_CARD = 'AM_MID_FLIGHT_RESOLUTION_CARD';
|
46 |
+
const AM_NAME_CELL_DROPDOWN = 'AM_NAME_CELL_DROPDOWN';
|
47 |
+
const AM_PERFORMANCE_SUMMARY = 'AM_PERFORMANCE_SUMMARY';
|
48 |
+
const AM_RULE_LANDING_PAGE_BANNER = 'AM_RULE_LANDING_PAGE_BANNER';
|
49 |
+
const AM_TOOLBAR_CREATE_RULE_DROPDOWN = 'AM_TOOLBAR_CREATE_RULE_DROPDOWN';
|
50 |
+
const PE_CAMPAIGN_STRUCTURE_MENU = 'PE_CAMPAIGN_STRUCTURE_MENU';
|
51 |
+
const PE_EDITOR_CARD = 'PE_EDITOR_CARD';
|
52 |
+
const PE_INFO_CARD = 'PE_INFO_CARD';
|
53 |
+
const PE_TOOLBAR_CREATE_RULE_DROPDOWN = 'PE_TOOLBAR_CREATE_RULE_DROPDOWN';
|
54 |
+
const RULES_MANAGEMENT_PAGE_ACTION_DROPDOWN = 'RULES_MANAGEMENT_PAGE_ACTION_DROPDOWN';
|
55 |
+
const RULES_MANAGEMENT_PAGE_RULE_GROUP = 'RULES_MANAGEMENT_PAGE_RULE_GROUP';
|
56 |
+
const RULES_MANAGEMENT_PAGE_RULE_NAME = 'RULES_MANAGEMENT_PAGE_RULE_NAME';
|
57 |
+
const RULES_MANAGEMENT_PAGE_TOP_NAV = 'RULES_MANAGEMENT_PAGE_TOP_NAV';
|
58 |
+
const RULES_VIEW_ACTIVE_RULES_DIALOG = 'RULES_VIEW_ACTIVE_RULES_DIALOG';
|
59 |
+
const RULE_CREATION_SUCCESS_DIALOG = 'RULE_CREATION_SUCCESS_DIALOG';
|
60 |
+
const RULE_SYD_REDIRECT = 'RULE_SYD_REDIRECT';
|
61 |
+
const RULE_TEMPLATES_DIALOG = 'RULE_TEMPLATES_DIALOG';
|
62 |
+
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdSetOptimizationGoalValues.php
CHANGED
@@ -37,10 +37,9 @@ use PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum;
|
|
37 |
class AdSetOptimizationGoalValues extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
38 |
{
|
39 |
const AD_RECALL_LIFT = 'AD_RECALL_LIFT';
|
40 |
-
const APP_DOWNLOADS = 'APP_DOWNLOADS';
|
41 |
const APP_INSTALLS = 'APP_INSTALLS';
|
42 |
-
const
|
43 |
-
const
|
44 |
const DERIVED_EVENTS = 'DERIVED_EVENTS';
|
45 |
const ENGAGED_USERS = 'ENGAGED_USERS';
|
46 |
const EVENT_RESPONSES = 'EVENT_RESPONSES';
|
@@ -49,18 +48,13 @@ class AdSetOptimizationGoalValues extends \PYS_PRO_GLOBAL\FacebookAds\Enum\Abstr
|
|
49 |
const LEAD_GENERATION = 'LEAD_GENERATION';
|
50 |
const LINK_CLICKS = 'LINK_CLICKS';
|
51 |
const NONE = 'NONE';
|
52 |
-
const OFFER_CLAIMS = 'OFFER_CLAIMS';
|
53 |
const OFFSITE_CONVERSIONS = 'OFFSITE_CONVERSIONS';
|
54 |
-
const PAGE_ENGAGEMENT = 'PAGE_ENGAGEMENT';
|
55 |
const PAGE_LIKES = 'PAGE_LIKES';
|
56 |
const POST_ENGAGEMENT = 'POST_ENGAGEMENT';
|
57 |
const QUALITY_CALL = 'QUALITY_CALL';
|
58 |
const QUALITY_LEAD = 'QUALITY_LEAD';
|
59 |
const REACH = 'REACH';
|
60 |
-
const REPLIES = 'REPLIES';
|
61 |
-
const SOCIAL_IMPRESSIONS = 'SOCIAL_IMPRESSIONS';
|
62 |
const THRUPLAY = 'THRUPLAY';
|
63 |
-
const TWO_SECOND_CONTINUOUS_VIDEO_VIEWS = 'TWO_SECOND_CONTINUOUS_VIDEO_VIEWS';
|
64 |
const VALUE = 'VALUE';
|
65 |
const VISIT_INSTAGRAM_PROFILE = 'VISIT_INSTAGRAM_PROFILE';
|
66 |
}
|
37 |
class AdSetOptimizationGoalValues extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
38 |
{
|
39 |
const AD_RECALL_LIFT = 'AD_RECALL_LIFT';
|
|
|
40 |
const APP_INSTALLS = 'APP_INSTALLS';
|
41 |
+
const APP_INSTALLS_AND_OFFSITE_CONVERSIONS = 'APP_INSTALLS_AND_OFFSITE_CONVERSIONS';
|
42 |
+
const CONVERSATIONS = 'CONVERSATIONS';
|
43 |
const DERIVED_EVENTS = 'DERIVED_EVENTS';
|
44 |
const ENGAGED_USERS = 'ENGAGED_USERS';
|
45 |
const EVENT_RESPONSES = 'EVENT_RESPONSES';
|
48 |
const LEAD_GENERATION = 'LEAD_GENERATION';
|
49 |
const LINK_CLICKS = 'LINK_CLICKS';
|
50 |
const NONE = 'NONE';
|
|
|
51 |
const OFFSITE_CONVERSIONS = 'OFFSITE_CONVERSIONS';
|
|
|
52 |
const PAGE_LIKES = 'PAGE_LIKES';
|
53 |
const POST_ENGAGEMENT = 'POST_ENGAGEMENT';
|
54 |
const QUALITY_CALL = 'QUALITY_CALL';
|
55 |
const QUALITY_LEAD = 'QUALITY_LEAD';
|
56 |
const REACH = 'REACH';
|
|
|
|
|
57 |
const THRUPLAY = 'THRUPLAY';
|
|
|
58 |
const VALUE = 'VALUE';
|
59 |
const VISIT_INSTAGRAM_PROFILE = 'VISIT_INSTAGRAM_PROFILE';
|
60 |
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdSetTuneForCategoryValues.php
CHANGED
@@ -41,4 +41,5 @@ class AdSetTuneForCategoryValues extends \PYS_PRO_GLOBAL\FacebookAds\Enum\Abstra
|
|
41 |
const HOUSING = 'HOUSING';
|
42 |
const ISSUES_ELECTIONS_POLITICS = 'ISSUES_ELECTIONS_POLITICS';
|
43 |
const NONE = 'NONE';
|
|
|
44 |
}
|
41 |
const HOUSING = 'HOUSING';
|
42 |
const ISSUES_ELECTIONS_POLITICS = 'ISSUES_ELECTIONS_POLITICS';
|
43 |
const NONE = 'NONE';
|
44 |
+
const ONLINE_GAMBLING_AND_GAMING = 'ONLINE_GAMBLING_AND_GAMING';
|
45 |
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdStudyObjectiveTypeValues.php
CHANGED
@@ -36,9 +36,9 @@ use PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum;
|
|
36 |
*/
|
37 |
class AdStudyObjectiveTypeValues extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
38 |
{
|
39 |
-
const AEP_CONVERSION = 'AEP_CONVERSION';
|
40 |
const BRAND = 'BRAND';
|
41 |
const BRANDLIFT = 'BRANDLIFT';
|
|
|
42 |
const FTL = 'FTL';
|
43 |
const MAE = 'MAE';
|
44 |
const MAI = 'MAI';
|
36 |
*/
|
37 |
class AdStudyObjectiveTypeValues extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
38 |
{
|
|
|
39 |
const BRAND = 'BRAND';
|
40 |
const BRANDLIFT = 'BRANDLIFT';
|
41 |
+
const CONVERSIONS = 'CONVERSIONS';
|
42 |
const FTL = 'FTL';
|
43 |
const MAE = 'MAE';
|
44 |
const MAI = 'MAI';
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdStudyTypeValues.php
CHANGED
@@ -39,6 +39,5 @@ class AdStudyTypeValues extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
|
39 |
const CONTINUOUS_LIFT_CONFIG = 'CONTINUOUS_LIFT_CONFIG';
|
40 |
const GEO_LIFT = 'GEO_LIFT';
|
41 |
const LIFT = 'LIFT';
|
42 |
-
const PRIVATE_LIFT = 'PRIVATE_LIFT';
|
43 |
const SPLIT_TEST = 'SPLIT_TEST';
|
44 |
}
|
39 |
const CONTINUOUS_LIFT_CONFIG = 'CONTINUOUS_LIFT_CONFIG';
|
40 |
const GEO_LIFT = 'GEO_LIFT';
|
41 |
const LIFT = 'LIFT';
|
|
|
42 |
const SPLIT_TEST = 'SPLIT_TEST';
|
43 |
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdVideoContainerTypeValues.php
CHANGED
@@ -44,7 +44,9 @@ class AdVideoContainerTypeValues extends \PYS_PRO_GLOBAL\FacebookAds\Enum\Abstra
|
|
44 |
const ALBUM_MULTIMEDIA_POST = 'ALBUM_MULTIMEDIA_POST';
|
45 |
const ALOHA_CALL_VIDEO = 'ALOHA_CALL_VIDEO';
|
46 |
const ALOHA_SUPERFRAME = 'ALOHA_SUPERFRAME';
|
|
|
47 |
const APP_REVIEW_SCREENCAST = 'APP_REVIEW_SCREENCAST';
|
|
|
48 |
const ATLAS_VIDEO = 'ATLAS_VIDEO';
|
49 |
const AUDIO_BROADCAST = 'AUDIO_BROADCAST';
|
50 |
const BROADCAST = 'BROADCAST';
|
@@ -98,6 +100,7 @@ class AdVideoContainerTypeValues extends \PYS_PRO_GLOBAL\FacebookAds\Enum\Abstra
|
|
98 |
const INSTANT_ARTICLE = 'INSTANT_ARTICLE';
|
99 |
const INSTANT_GAME_CLIP = 'INSTANT_GAME_CLIP';
|
100 |
const ISSUE_MODULE = 'ISSUE_MODULE';
|
|
|
101 |
const JOBS_VISUAL_INTRO_ENTRY = 'JOBS_VISUAL_INTRO_ENTRY';
|
102 |
const JOB_APPLICATION_VIDEO = 'JOB_APPLICATION_VIDEO';
|
103 |
const JOB_OPENING_VIDEO = 'JOB_OPENING_VIDEO';
|
@@ -111,23 +114,31 @@ class AdVideoContainerTypeValues extends \PYS_PRO_GLOBAL\FacebookAds\Enum\Abstra
|
|
111 |
const MARKETPLACE_LISTING_VIDEO = 'MARKETPLACE_LISTING_VIDEO';
|
112 |
const MARKETPLACE_PRE_RECORDED_VIDEO = 'MARKETPLACE_PRE_RECORDED_VIDEO';
|
113 |
const MESSENGER_WATCH_TOGETHER = 'MESSENGER_WATCH_TOGETHER';
|
|
|
|
|
|
|
|
|
114 |
const NEO_ASYNC_GAME_VIDEO = 'NEO_ASYNC_GAME_VIDEO';
|
115 |
const NO_STORY = 'NO_STORY';
|
116 |
const NO_STORY_WITH_ENTPOST = 'NO_STORY_WITH_ENTPOST';
|
|
|
117 |
const OCULUS_CREATOR_PORTAL = 'OCULUS_CREATOR_PORTAL';
|
118 |
const OCULUS_VENUES_BROADCAST = 'OCULUS_VENUES_BROADCAST';
|
119 |
const OFFERS_VIDEO = 'OFFERS_VIDEO';
|
120 |
const PAGES_COVER_VIDEO = 'PAGES_COVER_VIDEO';
|
121 |
const PAGE_REVIEW_SCREENCAST = 'PAGE_REVIEW_SCREENCAST';
|
122 |
const PAGE_SLIDESHOW_VIDEO = 'PAGE_SLIDESHOW_VIDEO';
|
|
|
123 |
const PARTNER_DIRECTORY_BRAND_MEDIA = 'PARTNER_DIRECTORY_BRAND_MEDIA';
|
124 |
const PIXELCLOUD = 'PIXELCLOUD';
|
125 |
const PODCAST_HIGHLIGHT = 'PODCAST_HIGHLIGHT';
|
126 |
const PODCAST_RSS = 'PODCAST_RSS';
|
|
|
127 |
const PODCAST_RSS_NO_NEWSFEED_STORY = 'PODCAST_RSS_NO_NEWSFEED_STORY';
|
128 |
const PODCAST_VOICES = 'PODCAST_VOICES';
|
129 |
const PODCAST_VOICES_NO_NEWSFEED_STORY = 'PODCAST_VOICES_NO_NEWSFEED_STORY';
|
130 |
const PREMIERE_SOURCE = 'PREMIERE_SOURCE';
|
|
|
131 |
const PREMIUM_MUSIC_VIDEO_NO_NEWSFEED_STORY = 'PREMIUM_MUSIC_VIDEO_NO_NEWSFEED_STORY';
|
132 |
const PREMIUM_MUSIC_VIDEO_WITH_NEWSFEED_STORY = 'PREMIUM_MUSIC_VIDEO_WITH_NEWSFEED_STORY';
|
133 |
const PRIVATE_GALLERY_VIDEO = 'PRIVATE_GALLERY_VIDEO';
|
44 |
const ALBUM_MULTIMEDIA_POST = 'ALBUM_MULTIMEDIA_POST';
|
45 |
const ALOHA_CALL_VIDEO = 'ALOHA_CALL_VIDEO';
|
46 |
const ALOHA_SUPERFRAME = 'ALOHA_SUPERFRAME';
|
47 |
+
const APP_REREVIEW_SCREENCAST = 'APP_REREVIEW_SCREENCAST';
|
48 |
const APP_REVIEW_SCREENCAST = 'APP_REVIEW_SCREENCAST';
|
49 |
+
const ASSET_MANAGER = 'ASSET_MANAGER';
|
50 |
const ATLAS_VIDEO = 'ATLAS_VIDEO';
|
51 |
const AUDIO_BROADCAST = 'AUDIO_BROADCAST';
|
52 |
const BROADCAST = 'BROADCAST';
|
100 |
const INSTANT_ARTICLE = 'INSTANT_ARTICLE';
|
101 |
const INSTANT_GAME_CLIP = 'INSTANT_GAME_CLIP';
|
102 |
const ISSUE_MODULE = 'ISSUE_MODULE';
|
103 |
+
const JOBS_CAREERS = 'JOBS_CAREERS';
|
104 |
const JOBS_VISUAL_INTRO_ENTRY = 'JOBS_VISUAL_INTRO_ENTRY';
|
105 |
const JOB_APPLICATION_VIDEO = 'JOB_APPLICATION_VIDEO';
|
106 |
const JOB_OPENING_VIDEO = 'JOB_OPENING_VIDEO';
|
114 |
const MARKETPLACE_LISTING_VIDEO = 'MARKETPLACE_LISTING_VIDEO';
|
115 |
const MARKETPLACE_PRE_RECORDED_VIDEO = 'MARKETPLACE_PRE_RECORDED_VIDEO';
|
116 |
const MESSENGER_WATCH_TOGETHER = 'MESSENGER_WATCH_TOGETHER';
|
117 |
+
const MOMENTS_VIDEO = 'MOMENTS_VIDEO';
|
118 |
+
const MUSIC_CLIP = 'MUSIC_CLIP';
|
119 |
+
const MUSIC_CLIP_IN_COMMENT = 'MUSIC_CLIP_IN_COMMENT';
|
120 |
+
const MUSIC_CLIP_IN_POLL_OPTION = 'MUSIC_CLIP_IN_POLL_OPTION';
|
121 |
const NEO_ASYNC_GAME_VIDEO = 'NEO_ASYNC_GAME_VIDEO';
|
122 |
const NO_STORY = 'NO_STORY';
|
123 |
const NO_STORY_WITH_ENTPOST = 'NO_STORY_WITH_ENTPOST';
|
124 |
+
const NPE_COLLAB_COPYRIGHT_CHECK = 'NPE_COLLAB_COPYRIGHT_CHECK';
|
125 |
const OCULUS_CREATOR_PORTAL = 'OCULUS_CREATOR_PORTAL';
|
126 |
const OCULUS_VENUES_BROADCAST = 'OCULUS_VENUES_BROADCAST';
|
127 |
const OFFERS_VIDEO = 'OFFERS_VIDEO';
|
128 |
const PAGES_COVER_VIDEO = 'PAGES_COVER_VIDEO';
|
129 |
const PAGE_REVIEW_SCREENCAST = 'PAGE_REVIEW_SCREENCAST';
|
130 |
const PAGE_SLIDESHOW_VIDEO = 'PAGE_SLIDESHOW_VIDEO';
|
131 |
+
const PAID_CONTENT_PREVIEW = 'PAID_CONTENT_PREVIEW';
|
132 |
const PARTNER_DIRECTORY_BRAND_MEDIA = 'PARTNER_DIRECTORY_BRAND_MEDIA';
|
133 |
const PIXELCLOUD = 'PIXELCLOUD';
|
134 |
const PODCAST_HIGHLIGHT = 'PODCAST_HIGHLIGHT';
|
135 |
const PODCAST_RSS = 'PODCAST_RSS';
|
136 |
+
const PODCAST_RSS_EPHEMERAL = 'PODCAST_RSS_EPHEMERAL';
|
137 |
const PODCAST_RSS_NO_NEWSFEED_STORY = 'PODCAST_RSS_NO_NEWSFEED_STORY';
|
138 |
const PODCAST_VOICES = 'PODCAST_VOICES';
|
139 |
const PODCAST_VOICES_NO_NEWSFEED_STORY = 'PODCAST_VOICES_NO_NEWSFEED_STORY';
|
140 |
const PREMIERE_SOURCE = 'PREMIERE_SOURCE';
|
141 |
+
const PREMIUM_MUSIC_VIDEO_CLIP = 'PREMIUM_MUSIC_VIDEO_CLIP';
|
142 |
const PREMIUM_MUSIC_VIDEO_NO_NEWSFEED_STORY = 'PREMIUM_MUSIC_VIDEO_NO_NEWSFEED_STORY';
|
143 |
const PREMIUM_MUSIC_VIDEO_WITH_NEWSFEED_STORY = 'PREMIUM_MUSIC_VIDEO_WITH_NEWSFEED_STORY';
|
144 |
const PRIVATE_GALLERY_VIDEO = 'PRIVATE_GALLERY_VIDEO';
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdsInsightsBreakdownsValues.php
CHANGED
@@ -38,6 +38,7 @@ class AdsInsightsBreakdownsValues extends \PYS_PRO_GLOBAL\FacebookAds\Enum\Abstr
|
|
38 |
{
|
39 |
const AD_FORMAT_ASSET = 'ad_format_asset';
|
40 |
const AGE = 'age';
|
|
|
41 |
const BODY_ASSET = 'body_asset';
|
42 |
const CALL_TO_ACTION_ASSET = 'call_to_action_asset';
|
43 |
const COUNTRY = 'country';
|
@@ -56,6 +57,7 @@ class AdsInsightsBreakdownsValues extends \PYS_PRO_GLOBAL\FacebookAds\Enum\Abstr
|
|
56 |
const PRODUCT_ID = 'product_id';
|
57 |
const PUBLISHER_PLATFORM = 'publisher_platform';
|
58 |
const REGION = 'region';
|
|
|
59 |
const TITLE_ASSET = 'title_asset';
|
60 |
const VIDEO_ASSET = 'video_asset';
|
61 |
}
|
38 |
{
|
39 |
const AD_FORMAT_ASSET = 'ad_format_asset';
|
40 |
const AGE = 'age';
|
41 |
+
const APP_ID = 'app_id';
|
42 |
const BODY_ASSET = 'body_asset';
|
43 |
const CALL_TO_ACTION_ASSET = 'call_to_action_asset';
|
44 |
const COUNTRY = 'country';
|
57 |
const PRODUCT_ID = 'product_id';
|
58 |
const PUBLISHER_PLATFORM = 'publisher_platform';
|
59 |
const REGION = 'region';
|
60 |
+
const SKAN_CONVERSION_ID = 'skan_conversion_id';
|
61 |
const TITLE_ASSET = 'title_asset';
|
62 |
const VIDEO_ASSET = 'video_asset';
|
63 |
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdsPixelTasksValues.php
CHANGED
@@ -36,6 +36,9 @@ use PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum;
|
|
36 |
*/
|
37 |
class AdsPixelTasksValues extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
38 |
{
|
|
|
|
|
39 |
const ANALYZE = 'ANALYZE';
|
40 |
const EDIT = 'EDIT';
|
|
|
41 |
}
|
36 |
*/
|
37 |
class AdsPixelTasksValues extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
38 |
{
|
39 |
+
const AA_ANALYZE = 'AA_ANALYZE';
|
40 |
+
const ADVERTISE = 'ADVERTISE';
|
41 |
const ANALYZE = 'ANALYZE';
|
42 |
const EDIT = 'EDIT';
|
43 |
+
const UPLOAD = 'UPLOAD';
|
44 |
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/ApplicationAnPlatformsValues.php
CHANGED
@@ -38,9 +38,11 @@ class ApplicationAnPlatformsValues extends \PYS_PRO_GLOBAL\FacebookAds\Enum\Abst
|
|
38 |
{
|
39 |
const ANDROID = 'ANDROID';
|
40 |
const DESKTOP = 'DESKTOP';
|
|
|
41 |
const INSTANT_ARTICLES = 'INSTANT_ARTICLES';
|
42 |
const IOS = 'IOS';
|
43 |
const MOBILE_WEB = 'MOBILE_WEB';
|
44 |
const OCULUS = 'OCULUS';
|
45 |
const UNKNOWN = 'UNKNOWN';
|
|
|
46 |
}
|
38 |
{
|
39 |
const ANDROID = 'ANDROID';
|
40 |
const DESKTOP = 'DESKTOP';
|
41 |
+
const GALAXY = 'GALAXY';
|
42 |
const INSTANT_ARTICLES = 'INSTANT_ARTICLES';
|
43 |
const IOS = 'IOS';
|
44 |
const MOBILE_WEB = 'MOBILE_WEB';
|
45 |
const OCULUS = 'OCULUS';
|
46 |
const UNKNOWN = 'UNKNOWN';
|
47 |
+
const XIAOMI = 'XIAOMI';
|
48 |
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/ApplicationSupportedPlatformsValues.php
CHANGED
@@ -49,4 +49,5 @@ class ApplicationSupportedPlatformsValues extends \PYS_PRO_GLOBAL\FacebookAds\En
|
|
49 |
const SUPPLEMENTARY_IMAGES = 'SUPPLEMENTARY_IMAGES';
|
50 |
const WEB = 'WEB';
|
51 |
const WINDOWS = 'WINDOWS';
|
|
|
52 |
}
|
49 |
const SUPPLEMENTARY_IMAGES = 'SUPPLEMENTARY_IMAGES';
|
50 |
const WEB = 'WEB';
|
51 |
const WINDOWS = 'WINDOWS';
|
52 |
+
const XIAOMI = 'XIAOMI';
|
53 |
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/BusinessAssetGroupAdaccountTasksValues.php
CHANGED
@@ -36,6 +36,7 @@ use PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum;
|
|
36 |
*/
|
37 |
class BusinessAssetGroupAdaccountTasksValues extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
38 |
{
|
|
|
39 |
const ADVERTISE = 'ADVERTISE';
|
40 |
const ANALYZE = 'ANALYZE';
|
41 |
const DRAFT = 'DRAFT';
|
36 |
*/
|
37 |
class BusinessAssetGroupAdaccountTasksValues extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
38 |
{
|
39 |
+
const AA_ANALYZE = 'AA_ANALYZE';
|
40 |
const ADVERTISE = 'ADVERTISE';
|
41 |
const ANALYZE = 'ANALYZE';
|
42 |
const DRAFT = 'DRAFT';
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/BusinessAssetGroupOfflineConversionDataSetTasksValues.php
CHANGED
@@ -36,6 +36,7 @@ use PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum;
|
|
36 |
*/
|
37 |
class BusinessAssetGroupOfflineConversionDataSetTasksValues extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
38 |
{
|
|
|
39 |
const ADVERTISE = 'ADVERTISE';
|
40 |
const MANAGE = 'MANAGE';
|
41 |
const UPLOAD = 'UPLOAD';
|
36 |
*/
|
37 |
class BusinessAssetGroupOfflineConversionDataSetTasksValues extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
38 |
{
|
39 |
+
const AA_ANALYZE = 'AA_ANALYZE';
|
40 |
const ADVERTISE = 'ADVERTISE';
|
41 |
const MANAGE = 'MANAGE';
|
42 |
const UPLOAD = 'UPLOAD';
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/BusinessAssetGroupPageTasksValues.php
CHANGED
@@ -56,6 +56,7 @@ class BusinessAssetGroupPageTasksValues extends \PYS_PRO_GLOBAL\FacebookAds\Enum
|
|
56 |
const PROFILE_PLUS_MANAGE = 'PROFILE_PLUS_MANAGE';
|
57 |
const PROFILE_PLUS_MESSAGING = 'PROFILE_PLUS_MESSAGING';
|
58 |
const PROFILE_PLUS_MODERATE = 'PROFILE_PLUS_MODERATE';
|
|
|
59 |
const READ_PAGE_MAILBOXES = 'READ_PAGE_MAILBOXES';
|
60 |
const VIEW_MONETIZATION_INSIGHTS = 'VIEW_MONETIZATION_INSIGHTS';
|
61 |
}
|
56 |
const PROFILE_PLUS_MANAGE = 'PROFILE_PLUS_MANAGE';
|
57 |
const PROFILE_PLUS_MESSAGING = 'PROFILE_PLUS_MESSAGING';
|
58 |
const PROFILE_PLUS_MODERATE = 'PROFILE_PLUS_MODERATE';
|
59 |
+
const PROFILE_PLUS_REVENUE = 'PROFILE_PLUS_REVENUE';
|
60 |
const READ_PAGE_MAILBOXES = 'READ_PAGE_MAILBOXES';
|
61 |
const VIEW_MONETIZATION_INSIGHTS = 'VIEW_MONETIZATION_INSIGHTS';
|
62 |
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/BusinessAssetGroupPixelTasksValues.php
CHANGED
@@ -36,6 +36,9 @@ use PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum;
|
|
36 |
*/
|
37 |
class BusinessAssetGroupPixelTasksValues extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
38 |
{
|
|
|
|
|
39 |
const ANALYZE = 'ANALYZE';
|
40 |
const EDIT = 'EDIT';
|
|
|
41 |
}
|
36 |
*/
|
37 |
class BusinessAssetGroupPixelTasksValues extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
38 |
{
|
39 |
+
const AA_ANALYZE = 'AA_ANALYZE';
|
40 |
+
const ADVERTISE = 'ADVERTISE';
|
41 |
const ANALYZE = 'ANALYZE';
|
42 |
const EDIT = 'EDIT';
|
43 |
+
const UPLOAD = 'UPLOAD';
|
44 |
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/BusinessPagePermittedTasksValues.php
CHANGED
@@ -56,6 +56,7 @@ class BusinessPagePermittedTasksValues extends \PYS_PRO_GLOBAL\FacebookAds\Enum\
|
|
56 |
const PROFILE_PLUS_MANAGE = 'PROFILE_PLUS_MANAGE';
|
57 |
const PROFILE_PLUS_MESSAGING = 'PROFILE_PLUS_MESSAGING';
|
58 |
const PROFILE_PLUS_MODERATE = 'PROFILE_PLUS_MODERATE';
|
|
|
59 |
const READ_PAGE_MAILBOXES = 'READ_PAGE_MAILBOXES';
|
60 |
const VIEW_MONETIZATION_INSIGHTS = 'VIEW_MONETIZATION_INSIGHTS';
|
61 |
}
|
56 |
const PROFILE_PLUS_MANAGE = 'PROFILE_PLUS_MANAGE';
|
57 |
const PROFILE_PLUS_MESSAGING = 'PROFILE_PLUS_MESSAGING';
|
58 |
const PROFILE_PLUS_MODERATE = 'PROFILE_PLUS_MODERATE';
|
59 |
+
const PROFILE_PLUS_REVENUE = 'PROFILE_PLUS_REVENUE';
|
60 |
const READ_PAGE_MAILBOXES = 'READ_PAGE_MAILBOXES';
|
61 |
const VIEW_MONETIZATION_INSIGHTS = 'VIEW_MONETIZATION_INSIGHTS';
|
62 |
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/BusinessPermittedTasksValues.php
CHANGED
@@ -56,6 +56,7 @@ class BusinessPermittedTasksValues extends \PYS_PRO_GLOBAL\FacebookAds\Enum\Abst
|
|
56 |
const PROFILE_PLUS_MANAGE = 'PROFILE_PLUS_MANAGE';
|
57 |
const PROFILE_PLUS_MESSAGING = 'PROFILE_PLUS_MESSAGING';
|
58 |
const PROFILE_PLUS_MODERATE = 'PROFILE_PLUS_MODERATE';
|
|
|
59 |
const READ_PAGE_MAILBOXES = 'READ_PAGE_MAILBOXES';
|
60 |
const VIEW_MONETIZATION_INSIGHTS = 'VIEW_MONETIZATION_INSIGHTS';
|
61 |
}
|
56 |
const PROFILE_PLUS_MANAGE = 'PROFILE_PLUS_MANAGE';
|
57 |
const PROFILE_PLUS_MESSAGING = 'PROFILE_PLUS_MESSAGING';
|
58 |
const PROFILE_PLUS_MODERATE = 'PROFILE_PLUS_MODERATE';
|
59 |
+
const PROFILE_PLUS_REVENUE = 'PROFILE_PLUS_REVENUE';
|
60 |
const READ_PAGE_MAILBOXES = 'READ_PAGE_MAILBOXES';
|
61 |
const VIEW_MONETIZATION_INSIGHTS = 'VIEW_MONETIZATION_INSIGHTS';
|
62 |
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/CampaignSpecialAdCategoriesValues.php
CHANGED
@@ -41,4 +41,5 @@ class CampaignSpecialAdCategoriesValues extends \PYS_PRO_GLOBAL\FacebookAds\Enum
|
|
41 |
const HOUSING = 'HOUSING';
|
42 |
const ISSUES_ELECTIONS_POLITICS = 'ISSUES_ELECTIONS_POLITICS';
|
43 |
const NONE = 'NONE';
|
|
|
44 |
}
|
41 |
const HOUSING = 'HOUSING';
|
42 |
const ISSUES_ELECTIONS_POLITICS = 'ISSUES_ELECTIONS_POLITICS';
|
43 |
const NONE = 'NONE';
|
44 |
+
const ONLINE_GAMBLING_AND_GAMING = 'ONLINE_GAMBLING_AND_GAMING';
|
45 |
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/CampaignSpecialAdCategoryValues.php
CHANGED
@@ -41,4 +41,5 @@ class CampaignSpecialAdCategoryValues extends \PYS_PRO_GLOBAL\FacebookAds\Enum\A
|
|
41 |
const HOUSING = 'HOUSING';
|
42 |
const ISSUES_ELECTIONS_POLITICS = 'ISSUES_ELECTIONS_POLITICS';
|
43 |
const NONE = 'NONE';
|
|
|
44 |
}
|
41 |
const HOUSING = 'HOUSING';
|
42 |
const ISSUES_ELECTIONS_POLITICS = 'ISSUES_ELECTIONS_POLITICS';
|
43 |
const NONE = 'NONE';
|
44 |
+
const ONLINE_GAMBLING_AND_GAMING = 'ONLINE_GAMBLING_AND_GAMING';
|
45 |
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/ContentDeliveryReportPositionValues.php
CHANGED
@@ -38,7 +38,10 @@ class ContentDeliveryReportPositionValues extends \PYS_PRO_GLOBAL\FacebookAds\En
|
|
38 |
{
|
39 |
const ALL_PLACEMENTS = 'ALL_PLACEMENTS';
|
40 |
const AN_CLASSIC = 'AN_CLASSIC';
|
|
|
41 |
const FACEBOOK_GROUPS_FEED = 'FACEBOOK_GROUPS_FEED';
|
|
|
|
|
42 |
const FACEBOOK_STORIES = 'FACEBOOK_STORIES';
|
43 |
const FEED = 'FEED';
|
44 |
const GROUPS = 'GROUPS';
|
@@ -46,6 +49,7 @@ class ContentDeliveryReportPositionValues extends \PYS_PRO_GLOBAL\FacebookAds\En
|
|
46 |
const INSTAGRAM_EXPLORE = 'INSTAGRAM_EXPLORE';
|
47 |
const INSTAGRAM_IGTV = 'INSTAGRAM_IGTV';
|
48 |
const INSTAGRAM_REELS = 'INSTAGRAM_REELS';
|
|
|
49 |
const INSTAGRAM_STORIES = 'INSTAGRAM_STORIES';
|
50 |
const INSTANT_ARTICLE = 'INSTANT_ARTICLE';
|
51 |
const INSTREAM_VIDEO = 'INSTREAM_VIDEO';
|
@@ -53,7 +57,12 @@ class ContentDeliveryReportPositionValues extends \PYS_PRO_GLOBAL\FacebookAds\En
|
|
53 |
const MARKETPLACE = 'MARKETPLACE';
|
54 |
const MESSENGER_INBOX = 'MESSENGER_INBOX';
|
55 |
const MESSENGER_STORIES = 'MESSENGER_STORIES';
|
|
|
|
|
56 |
const OCULUS_TWILIGHT_FEED = 'OCULUS_TWILIGHT_FEED';
|
|
|
|
|
|
|
57 |
const OTHERS = 'OTHERS';
|
58 |
const REWARDED_VIDEO = 'REWARDED_VIDEO';
|
59 |
const RIGHT_HAND_COLUMN = 'RIGHT_HAND_COLUMN';
|
38 |
{
|
39 |
const ALL_PLACEMENTS = 'ALL_PLACEMENTS';
|
40 |
const AN_CLASSIC = 'AN_CLASSIC';
|
41 |
+
const BIZ_DISCO_FEED = 'BIZ_DISCO_FEED';
|
42 |
const FACEBOOK_GROUPS_FEED = 'FACEBOOK_GROUPS_FEED';
|
43 |
+
const FACEBOOK_REELS = 'FACEBOOK_REELS';
|
44 |
+
const FACEBOOK_REELS_OVERLAY = 'FACEBOOK_REELS_OVERLAY';
|
45 |
const FACEBOOK_STORIES = 'FACEBOOK_STORIES';
|
46 |
const FEED = 'FEED';
|
47 |
const GROUPS = 'GROUPS';
|
49 |
const INSTAGRAM_EXPLORE = 'INSTAGRAM_EXPLORE';
|
50 |
const INSTAGRAM_IGTV = 'INSTAGRAM_IGTV';
|
51 |
const INSTAGRAM_REELS = 'INSTAGRAM_REELS';
|
52 |
+
const INSTAGRAM_SHOP = 'INSTAGRAM_SHOP';
|
53 |
const INSTAGRAM_STORIES = 'INSTAGRAM_STORIES';
|
54 |
const INSTANT_ARTICLE = 'INSTANT_ARTICLE';
|
55 |
const INSTREAM_VIDEO = 'INSTREAM_VIDEO';
|
57 |
const MARKETPLACE = 'MARKETPLACE';
|
58 |
const MESSENGER_INBOX = 'MESSENGER_INBOX';
|
59 |
const MESSENGER_STORIES = 'MESSENGER_STORIES';
|
60 |
+
const OCULUS_REWARDED_VIDEO = 'OCULUS_REWARDED_VIDEO';
|
61 |
+
const OCULUS_TWILIGHT_DEVELOPER_UPDATE = 'OCULUS_TWILIGHT_DEVELOPER_UPDATE';
|
62 |
const OCULUS_TWILIGHT_FEED = 'OCULUS_TWILIGHT_FEED';
|
63 |
+
const OCULUS_TWILIGHT_FEED_SPOTLIGHT = 'OCULUS_TWILIGHT_FEED_SPOTLIGHT';
|
64 |
+
const OCULUS_TWILIGHT_SEARCH = 'OCULUS_TWILIGHT_SEARCH';
|
65 |
+
const OCULUS_VR_APPS = 'OCULUS_VR_APPS';
|
66 |
const OTHERS = 'OTHERS';
|
67 |
const REWARDED_VIDEO = 'REWARDED_VIDEO';
|
68 |
const RIGHT_HAND_COLUMN = 'RIGHT_HAND_COLUMN';
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/CustomAudienceContentTypeValues.php
CHANGED
@@ -41,6 +41,7 @@ class CustomAudienceContentTypeValues extends \PYS_PRO_GLOBAL\FacebookAds\Enum\A
|
|
41 |
const FLIGHT = 'FLIGHT';
|
42 |
const HOME_LISTING = 'HOME_LISTING';
|
43 |
const HOTEL = 'HOTEL';
|
|
|
44 |
const LOCAL_SERVICE_BUSINESS = 'LOCAL_SERVICE_BUSINESS';
|
45 |
const LOCATION_BASED_ITEM = 'LOCATION_BASED_ITEM';
|
46 |
const MEDIA_TITLE = 'MEDIA_TITLE';
|
41 |
const FLIGHT = 'FLIGHT';
|
42 |
const HOME_LISTING = 'HOME_LISTING';
|
43 |
const HOTEL = 'HOTEL';
|
44 |
+
const JOB = 'JOB';
|
45 |
const LOCAL_SERVICE_BUSINESS = 'LOCAL_SERVICE_BUSINESS';
|
46 |
const LOCATION_BASED_ITEM = 'LOCATION_BASED_ITEM';
|
47 |
const MEDIA_TITLE = 'MEDIA_TITLE';
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/EventTypeValues.php
CHANGED
@@ -41,4 +41,5 @@ class EventTypeValues extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
|
41 |
const GROUP = 'group';
|
42 |
const VALUE_PRIVATE = 'private';
|
43 |
const VALUE_PUBLIC = 'public';
|
|
|
44 |
}
|
41 |
const GROUP = 'group';
|
42 |
const VALUE_PRIVATE = 'private';
|
43 |
const VALUE_PUBLIC = 'public';
|
44 |
+
const WORK_COMPANY = 'work_company';
|
45 |
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/GroupGroupTypeValues.php
CHANGED
@@ -46,6 +46,7 @@ class GroupGroupTypeValues extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
|
46 |
const EPHEMERAL = 'EPHEMERAL';
|
47 |
const EVENT_PLANNING = 'EVENT_PLANNING';
|
48 |
const FAMILY = 'FAMILY';
|
|
|
49 |
const FITNESS = 'FITNESS';
|
50 |
const FOR_SALE = 'FOR_SALE';
|
51 |
const FOR_WORK = 'FOR_WORK';
|
46 |
const EPHEMERAL = 'EPHEMERAL';
|
47 |
const EVENT_PLANNING = 'EVENT_PLANNING';
|
48 |
const FAMILY = 'FAMILY';
|
49 |
+
const FANTASY_LEAGUE = 'FANTASY_LEAGUE';
|
50 |
const FITNESS = 'FITNESS';
|
51 |
const FOR_SALE = 'FOR_SALE';
|
52 |
const FOR_WORK = 'FOR_WORK';
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/GroupPurposeValues.php
CHANGED
@@ -46,6 +46,7 @@ class GroupPurposeValues extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
|
46 |
const EPHEMERAL = 'EPHEMERAL';
|
47 |
const EVENT_PLANNING = 'EVENT_PLANNING';
|
48 |
const FAMILY = 'FAMILY';
|
|
|
49 |
const FITNESS = 'FITNESS';
|
50 |
const FOR_SALE = 'FOR_SALE';
|
51 |
const FOR_WORK = 'FOR_WORK';
|
46 |
const EPHEMERAL = 'EPHEMERAL';
|
47 |
const EVENT_PLANNING = 'EVENT_PLANNING';
|
48 |
const FAMILY = 'FAMILY';
|
49 |
+
const FANTASY_LEAGUE = 'FANTASY_LEAGUE';
|
50 |
const FITNESS = 'FITNESS';
|
51 |
const FOR_SALE = 'FOR_SALE';
|
52 |
const FOR_WORK = 'FOR_WORK';
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/JobsJobImageFetchStatusValues.php
ADDED
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Copyright (c) 2015-present, Facebook, Inc. All rights reserved.
|
5 |
+
*
|
6 |
+
* You are hereby granted a non-exclusive, worldwide, royalty-free license to
|
7 |
+
* use, copy, modify, and distribute this software in source code or binary
|
8 |
+
* form for use in connection with the web services and APIs provided by
|
9 |
+
* Facebook.
|
10 |
+
*
|
11 |
+
* As with any software that integrates with the Facebook platform, your use
|
12 |
+
* of this software is subject to the Facebook Developer Principles and
|
13 |
+
* Policies [http://developers.facebook.com/policy/]. This copyright notice
|
14 |
+
* shall be included in all copies or substantial portions of the software.
|
15 |
+
*
|
16 |
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
17 |
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
18 |
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
19 |
+
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
20 |
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
21 |
+
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
22 |
+
* DEALINGS IN THE SOFTWARE.
|
23 |
+
*
|
24 |
+
*/
|
25 |
+
namespace PYS_PRO_GLOBAL\FacebookAds\Object\Values;
|
26 |
+
|
27 |
+
use PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum;
|
28 |
+
/**
|
29 |
+
* This class is auto-generated.
|
30 |
+
*
|
31 |
+
* For any issues or feature requests related to this class, please let us know
|
32 |
+
* on github and we'll fix in our codegen framework. We'll not be able to accept
|
33 |
+
* pull request for this class.
|
34 |
+
*
|
35 |
+
* @method static JobsJobImageFetchStatusValues getInstance()
|
36 |
+
*/
|
37 |
+
class JobsJobImageFetchStatusValues extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
38 |
+
{
|
39 |
+
const DIRECT_UPLOAD = 'DIRECT_UPLOAD';
|
40 |
+
const FETCHED = 'FETCHED';
|
41 |
+
const FETCH_FAILED = 'FETCH_FAILED';
|
42 |
+
const NO_STATUS = 'NO_STATUS';
|
43 |
+
const OUTDATED = 'OUTDATED';
|
44 |
+
const PARTIAL_FETCH = 'PARTIAL_FETCH';
|
45 |
+
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/LiveVideoLiveCommentModerationSettingValues.php
CHANGED
@@ -38,9 +38,12 @@ class LiveVideoLiveCommentModerationSettingValues extends \PYS_PRO_GLOBAL\Facebo
|
|
38 |
{
|
39 |
const VALUE_DEFAULT = 'DEFAULT';
|
40 |
const DISCUSSION = 'DISCUSSION';
|
|
|
41 |
const FOLLOWER = 'FOLLOWER';
|
|
|
42 |
const PROTECTED_MODE = 'PROTECTED_MODE';
|
43 |
const RESTRICTED = 'RESTRICTED';
|
44 |
const SLOW = 'SLOW';
|
45 |
const SUPPORTER = 'SUPPORTER';
|
|
|
46 |
}
|
38 |
{
|
39 |
const VALUE_DEFAULT = 'DEFAULT';
|
40 |
const DISCUSSION = 'DISCUSSION';
|
41 |
+
const FOLLOWED = 'FOLLOWED';
|
42 |
const FOLLOWER = 'FOLLOWER';
|
43 |
+
const NO_HYPERLINK = 'NO_HYPERLINK';
|
44 |
const PROTECTED_MODE = 'PROTECTED_MODE';
|
45 |
const RESTRICTED = 'RESTRICTED';
|
46 |
const SLOW = 'SLOW';
|
47 |
const SUPPORTER = 'SUPPORTER';
|
48 |
+
const TAGGED = 'TAGGED';
|
49 |
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/{MeasurementUploadEventEventStatusValues.php → LocalServiceBusinessImageFetchStatusValues.php}
RENAMED
@@ -32,14 +32,14 @@ use PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum;
|
|
32 |
* on github and we'll fix in our codegen framework. We'll not be able to accept
|
33 |
* pull request for this class.
|
34 |
*
|
35 |
-
* @method static
|
36 |
*/
|
37 |
-
class
|
38 |
{
|
39 |
-
const
|
40 |
-
const
|
41 |
-
const
|
42 |
-
const
|
43 |
-
const
|
44 |
-
const
|
45 |
}
|
32 |
* on github and we'll fix in our codegen framework. We'll not be able to accept
|
33 |
* pull request for this class.
|
34 |
*
|
35 |
+
* @method static LocalServiceBusinessImageFetchStatusValues getInstance()
|
36 |
*/
|
37 |
+
class LocalServiceBusinessImageFetchStatusValues extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
38 |
{
|
39 |
+
const DIRECT_UPLOAD = 'DIRECT_UPLOAD';
|
40 |
+
const FETCHED = 'FETCHED';
|
41 |
+
const FETCH_FAILED = 'FETCH_FAILED';
|
42 |
+
const NO_STATUS = 'NO_STATUS';
|
43 |
+
const OUTDATED = 'OUTDATED';
|
44 |
+
const PARTIAL_FETCH = 'PARTIAL_FETCH';
|
45 |
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/MeasurementUploadEventTimezoneValues.php
DELETED
@@ -1,185 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
/**
|
4 |
-
* Copyright (c) 2015-present, Facebook, Inc. All rights reserved.
|
5 |
-
*
|
6 |
-
* You are hereby granted a non-exclusive, worldwide, royalty-free license to
|
7 |
-
* use, copy, modify, and distribute this software in source code or binary
|
8 |
-
* form for use in connection with the web services and APIs provided by
|
9 |
-
* Facebook.
|
10 |
-
*
|
11 |
-
* As with any software that integrates with the Facebook platform, your use
|
12 |
-
* of this software is subject to the Facebook Developer Principles and
|
13 |
-
* Policies [http://developers.facebook.com/policy/]. This copyright notice
|
14 |
-
* shall be included in all copies or substantial portions of the software.
|
15 |
-
*
|
16 |
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
17 |
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
18 |
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
19 |
-
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
20 |
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
21 |
-
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
22 |
-
* DEALINGS IN THE SOFTWARE.
|
23 |
-
*
|
24 |
-
*/
|
25 |
-
namespace PYS_PRO_GLOBAL\FacebookAds\Object\Values;
|
26 |
-
|
27 |
-
use PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum;
|
28 |
-
/**
|
29 |
-
* This class is auto-generated.
|
30 |
-
*
|
31 |
-
* For any issues or feature requests related to this class, please let us know
|
32 |
-
* on github and we'll fix in our codegen framework. We'll not be able to accept
|
33 |
-
* pull request for this class.
|
34 |
-
*
|
35 |
-
* @method static MeasurementUploadEventTimezoneValues getInstance()
|
36 |
-
*/
|
37 |
-
class MeasurementUploadEventTimezoneValues extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
38 |
-
{
|
39 |
-
const TZ_AFRICA_ACCRA = 'TZ_AFRICA_ACCRA';
|
40 |
-
const TZ_AFRICA_CAIRO = 'TZ_AFRICA_CAIRO';
|
41 |
-
const TZ_AFRICA_CASABLANCA = 'TZ_AFRICA_CASABLANCA';
|
42 |
-
const TZ_AFRICA_JOHANNESBURG = 'TZ_AFRICA_JOHANNESBURG';
|
43 |
-
const TZ_AFRICA_LAGOS = 'TZ_AFRICA_LAGOS';
|
44 |
-
const TZ_AFRICA_NAIROBI = 'TZ_AFRICA_NAIROBI';
|
45 |
-
const TZ_AFRICA_TUNIS = 'TZ_AFRICA_TUNIS';
|
46 |
-
const TZ_AMERICA_ANCHORAGE = 'TZ_AMERICA_ANCHORAGE';
|
47 |
-
const TZ_AMERICA_ARGENTINA_BUENOS_AIRES = 'TZ_AMERICA_ARGENTINA_BUENOS_AIRES';
|
48 |
-
const TZ_AMERICA_ARGENTINA_SALTA = 'TZ_AMERICA_ARGENTINA_SALTA';
|
49 |
-
const TZ_AMERICA_ARGENTINA_SAN_LUIS = 'TZ_AMERICA_ARGENTINA_SAN_LUIS';
|
50 |
-
const TZ_AMERICA_ASUNCION = 'TZ_AMERICA_ASUNCION';
|
51 |
-
const TZ_AMERICA_ATIKOKAN = 'TZ_AMERICA_ATIKOKAN';
|
52 |
-
const TZ_AMERICA_BELEM = 'TZ_AMERICA_BELEM';
|
53 |
-
const TZ_AMERICA_BLANC_SABLON = 'TZ_AMERICA_BLANC_SABLON';
|
54 |
-
const TZ_AMERICA_BOGOTA = 'TZ_AMERICA_BOGOTA';
|
55 |
-
const TZ_AMERICA_CAMPO_GRANDE = 'TZ_AMERICA_CAMPO_GRANDE';
|
56 |
-
const TZ_AMERICA_CARACAS = 'TZ_AMERICA_CARACAS';
|
57 |
-
const TZ_AMERICA_CHICAGO = 'TZ_AMERICA_CHICAGO';
|
58 |
-
const TZ_AMERICA_COSTA_RICA = 'TZ_AMERICA_COSTA_RICA';
|
59 |
-
const TZ_AMERICA_DAWSON = 'TZ_AMERICA_DAWSON';
|
60 |
-
const TZ_AMERICA_DAWSON_CREEK = 'TZ_AMERICA_DAWSON_CREEK';
|
61 |
-
const TZ_AMERICA_DENVER = 'TZ_AMERICA_DENVER';
|
62 |
-
const TZ_AMERICA_DETROIT = 'TZ_AMERICA_DETROIT';
|
63 |
-
const TZ_AMERICA_EDMONTON = 'TZ_AMERICA_EDMONTON';
|
64 |
-
const TZ_AMERICA_EL_SALVADOR = 'TZ_AMERICA_EL_SALVADOR';
|
65 |
-
const TZ_AMERICA_GUATEMALA = 'TZ_AMERICA_GUATEMALA';
|
66 |
-
const TZ_AMERICA_GUAYAQUIL = 'TZ_AMERICA_GUAYAQUIL';
|
67 |
-
const TZ_AMERICA_HALIFAX = 'TZ_AMERICA_HALIFAX';
|
68 |
-
const TZ_AMERICA_HERMOSILLO = 'TZ_AMERICA_HERMOSILLO';
|
69 |
-
const TZ_AMERICA_IQALUIT = 'TZ_AMERICA_IQALUIT';
|
70 |
-
const TZ_AMERICA_JAMAICA = 'TZ_AMERICA_JAMAICA';
|
71 |
-
const TZ_AMERICA_LA_PAZ = 'TZ_AMERICA_LA_PAZ';
|
72 |
-
const TZ_AMERICA_LIMA = 'TZ_AMERICA_LIMA';
|
73 |
-
const TZ_AMERICA_LOS_ANGELES = 'TZ_AMERICA_LOS_ANGELES';
|
74 |
-
const TZ_AMERICA_MANAGUA = 'TZ_AMERICA_MANAGUA';
|
75 |
-
const TZ_AMERICA_MAZATLAN = 'TZ_AMERICA_MAZATLAN';
|
76 |
-
const TZ_AMERICA_MEXICO_CITY = 'TZ_AMERICA_MEXICO_CITY';
|
77 |
-
const TZ_AMERICA_MONTEVIDEO = 'TZ_AMERICA_MONTEVIDEO';
|
78 |
-
const TZ_AMERICA_NASSAU = 'TZ_AMERICA_NASSAU';
|
79 |
-
const TZ_AMERICA_NEW_YORK = 'TZ_AMERICA_NEW_YORK';
|
80 |
-
const TZ_AMERICA_NORONHA = 'TZ_AMERICA_NORONHA';
|
81 |
-
const TZ_AMERICA_PANAMA = 'TZ_AMERICA_PANAMA';
|
82 |
-
const TZ_AMERICA_PHOENIX = 'TZ_AMERICA_PHOENIX';
|
83 |
-
const TZ_AMERICA_PORT_OF_SPAIN = 'TZ_AMERICA_PORT_OF_SPAIN';
|
84 |
-
const TZ_AMERICA_PUERTO_RICO = 'TZ_AMERICA_PUERTO_RICO';
|
85 |
-
const TZ_AMERICA_RAINY_RIVER = 'TZ_AMERICA_RAINY_RIVER';
|
86 |
-
const TZ_AMERICA_REGINA = 'TZ_AMERICA_REGINA';
|
87 |
-
const TZ_AMERICA_SANTIAGO = 'TZ_AMERICA_SANTIAGO';
|
88 |
-
const TZ_AMERICA_SANTO_DOMINGO = 'TZ_AMERICA_SANTO_DOMINGO';
|
89 |
-
const TZ_AMERICA_SAO_PAULO = 'TZ_AMERICA_SAO_PAULO';
|
90 |
-
const TZ_AMERICA_ST_JOHNS = 'TZ_AMERICA_ST_JOHNS';
|
91 |
-
const TZ_AMERICA_TEGUCIGALPA = 'TZ_AMERICA_TEGUCIGALPA';
|
92 |
-
const TZ_AMERICA_TIJUANA = 'TZ_AMERICA_TIJUANA';
|
93 |
-
const TZ_AMERICA_TORONTO = 'TZ_AMERICA_TORONTO';
|
94 |
-
const TZ_AMERICA_VANCOUVER = 'TZ_AMERICA_VANCOUVER';
|
95 |
-
const TZ_AMERICA_WINNIPEG = 'TZ_AMERICA_WINNIPEG';
|
96 |
-
const TZ_ASIA_AMMAN = 'TZ_ASIA_AMMAN';
|
97 |
-
const TZ_ASIA_BAGHDAD = 'TZ_ASIA_BAGHDAD';
|
98 |
-
const TZ_ASIA_BAHRAIN = 'TZ_ASIA_BAHRAIN';
|
99 |
-
const TZ_ASIA_BANGKOK = 'TZ_ASIA_BANGKOK';
|
100 |
-
const TZ_ASIA_BEIRUT = 'TZ_ASIA_BEIRUT';
|
101 |
-
const TZ_ASIA_COLOMBO = 'TZ_ASIA_COLOMBO';
|
102 |
-
const TZ_ASIA_DHAKA = 'TZ_ASIA_DHAKA';
|
103 |
-
const TZ_ASIA_DUBAI = 'TZ_ASIA_DUBAI';
|
104 |
-
const TZ_ASIA_GAZA = 'TZ_ASIA_GAZA';
|
105 |
-
const TZ_ASIA_HONG_KONG = 'TZ_ASIA_HONG_KONG';
|
106 |
-
const TZ_ASIA_HO_CHI_MINH = 'TZ_ASIA_HO_CHI_MINH';
|
107 |
-
const TZ_ASIA_IRKUTSK = 'TZ_ASIA_IRKUTSK';
|
108 |
-
const TZ_ASIA_JAKARTA = 'TZ_ASIA_JAKARTA';
|
109 |
-
const TZ_ASIA_JAYAPURA = 'TZ_ASIA_JAYAPURA';
|
110 |
-
const TZ_ASIA_JERUSALEM = 'TZ_ASIA_JERUSALEM';
|
111 |
-
const TZ_ASIA_KAMCHATKA = 'TZ_ASIA_KAMCHATKA';
|
112 |
-
const TZ_ASIA_KARACHI = 'TZ_ASIA_KARACHI';
|
113 |
-
const TZ_ASIA_KATHMANDU = 'TZ_ASIA_KATHMANDU';
|
114 |
-
const TZ_ASIA_KOLKATA = 'TZ_ASIA_KOLKATA';
|
115 |
-
const TZ_ASIA_KRASNOYARSK = 'TZ_ASIA_KRASNOYARSK';
|
116 |
-
const TZ_ASIA_KUALA_LUMPUR = 'TZ_ASIA_KUALA_LUMPUR';
|
117 |
-
const TZ_ASIA_KUWAIT = 'TZ_ASIA_KUWAIT';
|
118 |
-
const TZ_ASIA_MAGADAN = 'TZ_ASIA_MAGADAN';
|
119 |
-
const TZ_ASIA_MAKASSAR = 'TZ_ASIA_MAKASSAR';
|
120 |
-
const TZ_ASIA_MANILA = 'TZ_ASIA_MANILA';
|
121 |
-
const TZ_ASIA_MUSCAT = 'TZ_ASIA_MUSCAT';
|
122 |
-
const TZ_ASIA_NICOSIA = 'TZ_ASIA_NICOSIA';
|
123 |
-
const TZ_ASIA_OMSK = 'TZ_ASIA_OMSK';
|
124 |
-
const TZ_ASIA_QATAR = 'TZ_ASIA_QATAR';
|
125 |
-
const TZ_ASIA_RIYADH = 'TZ_ASIA_RIYADH';
|
126 |
-
const TZ_ASIA_SEOUL = 'TZ_ASIA_SEOUL';
|
127 |
-
const TZ_ASIA_SHANGHAI = 'TZ_ASIA_SHANGHAI';
|
128 |
-
const TZ_ASIA_SINGAPORE = 'TZ_ASIA_SINGAPORE';
|
129 |
-
const TZ_ASIA_TAIPEI = 'TZ_ASIA_TAIPEI';
|
130 |
-
const TZ_ASIA_TOKYO = 'TZ_ASIA_TOKYO';
|
131 |
-
const TZ_ASIA_VLADIVOSTOK = 'TZ_ASIA_VLADIVOSTOK';
|
132 |
-
const TZ_ASIA_YAKUTSK = 'TZ_ASIA_YAKUTSK';
|
133 |
-
const TZ_ASIA_YEKATERINBURG = 'TZ_ASIA_YEKATERINBURG';
|
134 |
-
const TZ_ATLANTIC_AZORES = 'TZ_ATLANTIC_AZORES';
|
135 |
-
const TZ_ATLANTIC_CANARY = 'TZ_ATLANTIC_CANARY';
|
136 |
-
const TZ_ATLANTIC_REYKJAVIK = 'TZ_ATLANTIC_REYKJAVIK';
|
137 |
-
const TZ_AUSTRALIA_BROKEN_HILL = 'TZ_AUSTRALIA_BROKEN_HILL';
|
138 |
-
const TZ_AUSTRALIA_MELBOURNE = 'TZ_AUSTRALIA_MELBOURNE';
|
139 |
-
const TZ_AUSTRALIA_PERTH = 'TZ_AUSTRALIA_PERTH';
|
140 |
-
const TZ_AUSTRALIA_SYDNEY = 'TZ_AUSTRALIA_SYDNEY';
|
141 |
-
const TZ_EUROPE_AMSTERDAM = 'TZ_EUROPE_AMSTERDAM';
|
142 |
-
const TZ_EUROPE_ATHENS = 'TZ_EUROPE_ATHENS';
|
143 |
-
const TZ_EUROPE_BELGRADE = 'TZ_EUROPE_BELGRADE';
|
144 |
-
const TZ_EUROPE_BERLIN = 'TZ_EUROPE_BERLIN';
|
145 |
-
const TZ_EUROPE_BRATISLAVA = 'TZ_EUROPE_BRATISLAVA';
|
146 |
-
const TZ_EUROPE_BRUSSELS = 'TZ_EUROPE_BRUSSELS';
|
147 |
-
const TZ_EUROPE_BUCHAREST = 'TZ_EUROPE_BUCHAREST';
|
148 |
-
const TZ_EUROPE_BUDAPEST = 'TZ_EUROPE_BUDAPEST';
|
149 |
-
const TZ_EUROPE_COPENHAGEN = 'TZ_EUROPE_COPENHAGEN';
|
150 |
-
const TZ_EUROPE_DUBLIN = 'TZ_EUROPE_DUBLIN';
|
151 |
-
const TZ_EUROPE_HELSINKI = 'TZ_EUROPE_HELSINKI';
|
152 |
-
const TZ_EUROPE_ISTANBUL = 'TZ_EUROPE_ISTANBUL';
|
153 |
-
const TZ_EUROPE_KALININGRAD = 'TZ_EUROPE_KALININGRAD';
|
154 |
-
const TZ_EUROPE_KIEV = 'TZ_EUROPE_KIEV';
|
155 |
-
const TZ_EUROPE_LISBON = 'TZ_EUROPE_LISBON';
|
156 |
-
const TZ_EUROPE_LJUBLJANA = 'TZ_EUROPE_LJUBLJANA';
|
157 |
-
const TZ_EUROPE_LONDON = 'TZ_EUROPE_LONDON';
|
158 |
-
const TZ_EUROPE_LUXEMBOURG = 'TZ_EUROPE_LUXEMBOURG';
|
159 |
-
const TZ_EUROPE_MADRID = 'TZ_EUROPE_MADRID';
|
160 |
-
const TZ_EUROPE_MALTA = 'TZ_EUROPE_MALTA';
|
161 |
-
const TZ_EUROPE_MOSCOW = 'TZ_EUROPE_MOSCOW';
|
162 |
-
const TZ_EUROPE_OSLO = 'TZ_EUROPE_OSLO';
|
163 |
-
const TZ_EUROPE_PARIS = 'TZ_EUROPE_PARIS';
|
164 |
-
const TZ_EUROPE_PRAGUE = 'TZ_EUROPE_PRAGUE';
|
165 |
-
const TZ_EUROPE_RIGA = 'TZ_EUROPE_RIGA';
|
166 |
-
const TZ_EUROPE_ROME = 'TZ_EUROPE_ROME';
|
167 |
-
const TZ_EUROPE_SAMARA = 'TZ_EUROPE_SAMARA';
|
168 |
-
const TZ_EUROPE_SARAJEVO = 'TZ_EUROPE_SARAJEVO';
|
169 |
-
const TZ_EUROPE_SKOPJE = 'TZ_EUROPE_SKOPJE';
|
170 |
-
const TZ_EUROPE_SOFIA = 'TZ_EUROPE_SOFIA';
|
171 |
-
const TZ_EUROPE_STOCKHOLM = 'TZ_EUROPE_STOCKHOLM';
|
172 |
-
const TZ_EUROPE_TALLINN = 'TZ_EUROPE_TALLINN';
|
173 |
-
const TZ_EUROPE_VIENNA = 'TZ_EUROPE_VIENNA';
|
174 |
-
const TZ_EUROPE_VILNIUS = 'TZ_EUROPE_VILNIUS';
|
175 |
-
const TZ_EUROPE_WARSAW = 'TZ_EUROPE_WARSAW';
|
176 |
-
const TZ_EUROPE_ZAGREB = 'TZ_EUROPE_ZAGREB';
|
177 |
-
const TZ_EUROPE_ZURICH = 'TZ_EUROPE_ZURICH';
|
178 |
-
const TZ_INDIAN_MALDIVES = 'TZ_INDIAN_MALDIVES';
|
179 |
-
const TZ_INDIAN_MAURITIUS = 'TZ_INDIAN_MAURITIUS';
|
180 |
-
const TZ_NUM_TIMEZONES = 'TZ_NUM_TIMEZONES';
|
181 |
-
const TZ_PACIFIC_AUCKLAND = 'TZ_PACIFIC_AUCKLAND';
|
182 |
-
const TZ_PACIFIC_EASTER = 'TZ_PACIFIC_EASTER';
|
183 |
-
const TZ_PACIFIC_GALAPAGOS = 'TZ_PACIFIC_GALAPAGOS';
|
184 |
-
const TZ_PACIFIC_HONOLULU = 'TZ_PACIFIC_HONOLULU';
|
185 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/{AdPlacePageSetCategoryValues.php → PageAlignmentValues.php}
RENAMED
@@ -32,10 +32,10 @@ use PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum;
|
|
32 |
* on github and we'll fix in our codegen framework. We'll not be able to accept
|
33 |
* pull request for this class.
|
34 |
*
|
35 |
-
* @method static
|
36 |
*/
|
37 |
-
class
|
38 |
{
|
39 |
-
const
|
40 |
-
const
|
41 |
}
|
32 |
* on github and we'll fix in our codegen framework. We'll not be able to accept
|
33 |
* pull request for this class.
|
34 |
*
|
35 |
+
* @method static PageAlignmentValues getInstance()
|
36 |
*/
|
37 |
+
class PageAlignmentValues extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
38 |
{
|
39 |
+
const LEFT = 'LEFT';
|
40 |
+
const RIGHT = 'RIGHT';
|
41 |
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/{MeasurementUploadEventLookbackWindowValues.php → PageEntryPointIconValues.php}
RENAMED
@@ -32,12 +32,12 @@ use PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum;
|
|
32 |
* on github and we'll fix in our codegen framework. We'll not be able to accept
|
33 |
* pull request for this class.
|
34 |
*
|
35 |
-
* @method static
|
36 |
*/
|
37 |
-
class
|
38 |
{
|
39 |
-
const
|
40 |
-
const
|
41 |
-
const
|
42 |
-
const
|
43 |
}
|
32 |
* on github and we'll fix in our codegen framework. We'll not be able to accept
|
33 |
* pull request for this class.
|
34 |
*
|
35 |
+
* @method static PageEntryPointIconValues getInstance()
|
36 |
*/
|
37 |
+
class PageEntryPointIconValues extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
38 |
{
|
39 |
+
const CHAT_ANGULAR_ICON = 'CHAT_ANGULAR_ICON';
|
40 |
+
const CHAT_ROUND_ICON = 'CHAT_ROUND_ICON';
|
41 |
+
const MESSENGER_ICON = 'MESSENGER_ICON';
|
42 |
+
const NONE = 'NONE';
|
43 |
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/{MeasurementUploadEventAggregationLevelValues.php → PageEntryPointLabelValues.php}
RENAMED
@@ -32,11 +32,12 @@ use PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum;
|
|
32 |
* on github and we'll fix in our codegen framework. We'll not be able to accept
|
33 |
* pull request for this class.
|
34 |
*
|
35 |
-
* @method static
|
36 |
*/
|
37 |
-
class
|
38 |
{
|
39 |
-
const
|
|
|
|
|
40 |
const NONE = 'NONE';
|
41 |
-
const WEEKLY = 'WEEKLY';
|
42 |
}
|
32 |
* on github and we'll fix in our codegen framework. We'll not be able to accept
|
33 |
* pull request for this class.
|
34 |
*
|
35 |
+
* @method static PageEntryPointLabelValues getInstance()
|
36 |
*/
|
37 |
+
class PageEntryPointLabelValues extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
38 |
{
|
39 |
+
const ASK_US = 'ASK_US';
|
40 |
+
const CHAT = 'CHAT';
|
41 |
+
const HELP = 'HELP';
|
42 |
const NONE = 'NONE';
|
|
|
43 |
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/{AdAsyncRequestSetNotificationStatusValues.php → PageGreetingDialogDisplayValues.php}
RENAMED
@@ -32,11 +32,11 @@ use PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum;
|
|
32 |
* on github and we'll fix in our codegen framework. We'll not be able to accept
|
33 |
* pull request for this class.
|
34 |
*
|
35 |
-
* @method static
|
36 |
*/
|
37 |
-
class
|
38 |
{
|
39 |
-
const
|
40 |
-
const
|
41 |
-
const
|
42 |
}
|
32 |
* on github and we'll fix in our codegen framework. We'll not be able to accept
|
33 |
* pull request for this class.
|
34 |
*
|
35 |
+
* @method static PageGreetingDialogDisplayValues getInstance()
|
36 |
*/
|
37 |
+
class PageGreetingDialogDisplayValues extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
38 |
{
|
39 |
+
const HIDE = 'HIDE';
|
40 |
+
const SHOW = 'SHOW';
|
41 |
+
const WELCOME_MESSAGE = 'WELCOME_MESSAGE';
|
42 |
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/{MeasurementUploadEventMatchUniverseValues.php → PageGuestChatModeValues.php}
RENAMED
@@ -32,11 +32,10 @@ use PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum;
|
|
32 |
* on github and we'll fix in our codegen framework. We'll not be able to accept
|
33 |
* pull request for this class.
|
34 |
*
|
35 |
-
* @method static
|
36 |
*/
|
37 |
-
class
|
38 |
{
|
39 |
-
const
|
40 |
-
const
|
41 |
-
const PIXEL = 'PIXEL';
|
42 |
}
|
32 |
* on github and we'll fix in our codegen framework. We'll not be able to accept
|
33 |
* pull request for this class.
|
34 |
*
|
35 |
+
* @method static PageGuestChatModeValues getInstance()
|
36 |
*/
|
37 |
+
class PageGuestChatModeValues extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
38 |
{
|
39 |
+
const DISABLED = 'DISABLED';
|
40 |
+
const ENABLED = 'ENABLED';
|
|
|
41 |
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/PageMobileChatDisplayValues.php
ADDED
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Copyright (c) 2015-present, Facebook, Inc. All rights reserved.
|
5 |
+
*
|
6 |
+
* You are hereby granted a non-exclusive, worldwide, royalty-free license to
|
7 |
+
* use, copy, modify, and distribute this software in source code or binary
|
8 |
+
* form for use in connection with the web services and APIs provided by
|
9 |
+
* Facebook.
|
10 |
+
*
|
11 |
+
* As with any software that integrates with the Facebook platform, your use
|
12 |
+
* of this software is subject to the Facebook Developer Principles and
|
13 |
+
* Policies [http://developers.facebook.com/policy/]. This copyright notice
|
14 |
+
* shall be included in all copies or substantial portions of the software.
|
15 |
+
*
|
16 |
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
17 |
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
18 |
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
19 |
+
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
20 |
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
21 |
+
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
22 |
+
* DEALINGS IN THE SOFTWARE.
|
23 |
+
*
|
24 |
+
*/
|
25 |
+
namespace PYS_PRO_GLOBAL\FacebookAds\Object\Values;
|
26 |
+
|
27 |
+
use PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum;
|
28 |
+
/**
|
29 |
+
* This class is auto-generated.
|
30 |
+
*
|
31 |
+
* For any issues or feature requests related to this class, please let us know
|
32 |
+
* on github and we'll fix in our codegen framework. We'll not be able to accept
|
33 |
+
* pull request for this class.
|
34 |
+
*
|
35 |
+
* @method static PageMobileChatDisplayValues getInstance()
|
36 |
+
*/
|
37 |
+
class PageMobileChatDisplayValues extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
38 |
+
{
|
39 |
+
const APP_SWITCH = 'APP_SWITCH';
|
40 |
+
const CHAT_TAB = 'CHAT_TAB';
|
41 |
+
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/PagePermittedTasksValues.php
CHANGED
@@ -56,6 +56,7 @@ class PagePermittedTasksValues extends \PYS_PRO_GLOBAL\FacebookAds\Enum\Abstract
|
|
56 |
const PROFILE_PLUS_MANAGE = 'PROFILE_PLUS_MANAGE';
|
57 |
const PROFILE_PLUS_MESSAGING = 'PROFILE_PLUS_MESSAGING';
|
58 |
const PROFILE_PLUS_MODERATE = 'PROFILE_PLUS_MODERATE';
|
|
|
59 |
const READ_PAGE_MAILBOXES = 'READ_PAGE_MAILBOXES';
|
60 |
const VIEW_MONETIZATION_INSIGHTS = 'VIEW_MONETIZATION_INSIGHTS';
|
61 |
}
|
56 |
const PROFILE_PLUS_MANAGE = 'PROFILE_PLUS_MANAGE';
|
57 |
const PROFILE_PLUS_MESSAGING = 'PROFILE_PLUS_MESSAGING';
|
58 |
const PROFILE_PLUS_MODERATE = 'PROFILE_PLUS_MODERATE';
|
59 |
+
const PROFILE_PLUS_REVENUE = 'PROFILE_PLUS_REVENUE';
|
60 |
const READ_PAGE_MAILBOXES = 'READ_PAGE_MAILBOXES';
|
61 |
const VIEW_MONETIZATION_INSIGHTS = 'VIEW_MONETIZATION_INSIGHTS';
|
62 |
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/PageSubscribedFieldsValues.php
CHANGED
@@ -78,6 +78,7 @@ class PageSubscribedFieldsValues extends \PYS_PRO_GLOBAL\FacebookAds\Enum\Abstra
|
|
78 |
const MESSAGING_ACCOUNT_LINKING = 'messaging_account_linking';
|
79 |
const MESSAGING_APPOINTMENTS = 'messaging_appointments';
|
80 |
const MESSAGING_CHECKOUT_UPDATES = 'messaging_checkout_updates';
|
|
|
81 |
const MESSAGING_DIRECT_SENDS = 'messaging_direct_sends';
|
82 |
const MESSAGING_FBLOGIN_ACCOUNT_LINKING = 'messaging_fblogin_account_linking';
|
83 |
const MESSAGING_FEEDBACK = 'messaging_feedback';
|
78 |
const MESSAGING_ACCOUNT_LINKING = 'messaging_account_linking';
|
79 |
const MESSAGING_APPOINTMENTS = 'messaging_appointments';
|
80 |
const MESSAGING_CHECKOUT_UPDATES = 'messaging_checkout_updates';
|
81 |
+
const MESSAGING_CUSTOMER_INFORMATION = 'messaging_customer_information';
|
82 |
const MESSAGING_DIRECT_SENDS = 'messaging_direct_sends';
|
83 |
const MESSAGING_FBLOGIN_ACCOUNT_LINKING = 'messaging_fblogin_account_linking';
|
84 |
const MESSAGING_FEEDBACK = 'messaging_feedback';
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/PageTasksValues.php
CHANGED
@@ -56,6 +56,7 @@ class PageTasksValues extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
|
56 |
const PROFILE_PLUS_MANAGE = 'PROFILE_PLUS_MANAGE';
|
57 |
const PROFILE_PLUS_MESSAGING = 'PROFILE_PLUS_MESSAGING';
|
58 |
const PROFILE_PLUS_MODERATE = 'PROFILE_PLUS_MODERATE';
|
|
|
59 |
const READ_PAGE_MAILBOXES = 'READ_PAGE_MAILBOXES';
|
60 |
const VIEW_MONETIZATION_INSIGHTS = 'VIEW_MONETIZATION_INSIGHTS';
|
61 |
}
|
56 |
const PROFILE_PLUS_MANAGE = 'PROFILE_PLUS_MANAGE';
|
57 |
const PROFILE_PLUS_MESSAGING = 'PROFILE_PLUS_MESSAGING';
|
58 |
const PROFILE_PLUS_MODERATE = 'PROFILE_PLUS_MODERATE';
|
59 |
+
const PROFILE_PLUS_REVENUE = 'PROFILE_PLUS_REVENUE';
|
60 |
const READ_PAGE_MAILBOXES = 'READ_PAGE_MAILBOXES';
|
61 |
const VIEW_MONETIZATION_INSIGHTS = 'VIEW_MONETIZATION_INSIGHTS';
|
62 |
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/ProductFeedIngestionSourceTypeValues.php
ADDED
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Copyright (c) 2015-present, Facebook, Inc. All rights reserved.
|
5 |
+
*
|
6 |
+
* You are hereby granted a non-exclusive, worldwide, royalty-free license to
|
7 |
+
* use, copy, modify, and distribute this software in source code or binary
|
8 |
+
* form for use in connection with the web services and APIs provided by
|
9 |
+
* Facebook.
|
10 |
+
*
|
11 |
+
* As with any software that integrates with the Facebook platform, your use
|
12 |
+
* of this software is subject to the Facebook Developer Principles and
|
13 |
+
* Policies [http://developers.facebook.com/policy/]. This copyright notice
|
14 |
+
* shall be included in all copies or substantial portions of the software.
|
15 |
+
*
|
16 |
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
17 |
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
18 |
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
19 |
+
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
20 |
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
21 |
+
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
22 |
+
* DEALINGS IN THE SOFTWARE.
|
23 |
+
*
|
24 |
+
*/
|
25 |
+
namespace PYS_PRO_GLOBAL\FacebookAds\Object\Values;
|
26 |
+
|
27 |
+
use PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum;
|
28 |
+
/**
|
29 |
+
* This class is auto-generated.
|
30 |
+
*
|
31 |
+
* For any issues or feature requests related to this class, please let us know
|
32 |
+
* on github and we'll fix in our codegen framework. We'll not be able to accept
|
33 |
+
* pull request for this class.
|
34 |
+
*
|
35 |
+
* @method static ProductFeedIngestionSourceTypeValues getInstance()
|
36 |
+
*/
|
37 |
+
class ProductFeedIngestionSourceTypeValues extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
38 |
+
{
|
39 |
+
const PRIMARY_FEED = 'PRIMARY_FEED';
|
40 |
+
const SUPPLEMENTARY_FEED = 'SUPPLEMENTARY_FEED';
|
41 |
+
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/ProductItemOriginCountryValues.php
ADDED
@@ -0,0 +1,290 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Copyright (c) 2015-present, Facebook, Inc. All rights reserved.
|
5 |
+
*
|
6 |
+
* You are hereby granted a non-exclusive, worldwide, royalty-free license to
|
7 |
+
* use, copy, modify, and distribute this software in source code or binary
|
8 |
+
* form for use in connection with the web services and APIs provided by
|
9 |
+
* Facebook.
|
10 |
+
*
|
11 |
+
* As with any software that integrates with the Facebook platform, your use
|
12 |
+
* of this software is subject to the Facebook Developer Principles and
|
13 |
+
* Policies [http://developers.facebook.com/policy/]. This copyright notice
|
14 |
+
* shall be included in all copies or substantial portions of the software.
|
15 |
+
*
|
16 |
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
17 |
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
18 |
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
19 |
+
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
20 |
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
21 |
+
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
22 |
+
* DEALINGS IN THE SOFTWARE.
|
23 |
+
*
|
24 |
+
*/
|
25 |
+
namespace PYS_PRO_GLOBAL\FacebookAds\Object\Values;
|
26 |
+
|
27 |
+
use PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum;
|
28 |
+
/**
|
29 |
+
* This class is auto-generated.
|
30 |
+
*
|
31 |
+
* For any issues or feature requests related to this class, please let us know
|
32 |
+
* on github and we'll fix in our codegen framework. We'll not be able to accept
|
33 |
+
* pull request for this class.
|
34 |
+
*
|
35 |
+
* @method static ProductItemOriginCountryValues getInstance()
|
36 |
+
*/
|
37 |
+
class ProductItemOriginCountryValues extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
38 |
+
{
|
39 |
+
const AD = 'AD';
|
40 |
+
const AE = 'AE';
|
41 |
+
const AF = 'AF';
|
42 |
+
const AG = 'AG';
|
43 |
+
const AI = 'AI';
|
44 |
+
const AL = 'AL';
|
45 |
+
const AM = 'AM';
|
46 |
+
const AN = 'AN';
|
47 |
+
const AO = 'AO';
|
48 |
+
const AQ = 'AQ';
|
49 |
+
const AR = 'AR';
|
50 |
+
const VALUE_AS = 'AS';
|
51 |
+
const AT = 'AT';
|
52 |
+
const AU = 'AU';
|
53 |
+
const AW = 'AW';
|
54 |
+
const AX = 'AX';
|
55 |
+
const AZ = 'AZ';
|
56 |
+
const BA = 'BA';
|
57 |
+
const BB = 'BB';
|
58 |
+
const BD = 'BD';
|
59 |
+
const BE = 'BE';
|
60 |
+
const BF = 'BF';
|
61 |
+
const BG = 'BG';
|
62 |
+
const BH = 'BH';
|
63 |
+
const BI = 'BI';
|
64 |
+
const BJ = 'BJ';
|
65 |
+
const BL = 'BL';
|
66 |
+
const BM = 'BM';
|
67 |
+
const BN = 'BN';
|
68 |
+
const BO = 'BO';
|
69 |
+
const BQ = 'BQ';
|
70 |
+
const BR = 'BR';
|
71 |
+
const BS = 'BS';
|
72 |
+
const BT = 'BT';
|
73 |
+
const BV = 'BV';
|
74 |
+
const BW = 'BW';
|
75 |
+
const BY = 'BY';
|
76 |
+
const BZ = 'BZ';
|
77 |
+
const CA = 'CA';
|
78 |
+
const CC = 'CC';
|
79 |
+
const CD = 'CD';
|
80 |
+
const CF = 'CF';
|
81 |
+
const CG = 'CG';
|
82 |
+
const CH = 'CH';
|
83 |
+
const CI = 'CI';
|
84 |
+
const CK = 'CK';
|
85 |
+
const CL = 'CL';
|
86 |
+
const CM = 'CM';
|
87 |
+
const CN = 'CN';
|
88 |
+
const CO = 'CO';
|
89 |
+
const CR = 'CR';
|
90 |
+
const CU = 'CU';
|
91 |
+
const CV = 'CV';
|
92 |
+
const CW = 'CW';
|
93 |
+
const CX = 'CX';
|
94 |
+
const CY = 'CY';
|
95 |
+
const CZ = 'CZ';
|
96 |
+
const DE = 'DE';
|
97 |
+
const DJ = 'DJ';
|
98 |
+
const DK = 'DK';
|
99 |
+
const DM = 'DM';
|
100 |
+
const VALUE_DO = 'DO';
|
101 |
+
const DZ = 'DZ';
|
102 |
+
const EC = 'EC';
|
103 |
+
const EE = 'EE';
|
104 |
+
const EG = 'EG';
|
105 |
+
const EH = 'EH';
|
106 |
+
const ER = 'ER';
|
107 |
+
const ES = 'ES';
|
108 |
+
const ET = 'ET';
|
109 |
+
const FI = 'FI';
|
110 |
+
const FJ = 'FJ';
|
111 |
+
const FK = 'FK';
|
112 |
+
const FM = 'FM';
|
113 |
+
const FO = 'FO';
|
114 |
+
const FR = 'FR';
|
115 |
+
const GA = 'GA';
|
116 |
+
const GB = 'GB';
|
117 |
+
const GD = 'GD';
|
118 |
+
const GE = 'GE';
|
119 |
+
const GF = 'GF';
|
120 |
+
const GG = 'GG';
|
121 |
+
const GH = 'GH';
|
122 |
+
const GI = 'GI';
|
123 |
+
const GL = 'GL';
|
124 |
+
const GM = 'GM';
|
125 |
+
const GN = 'GN';
|
126 |
+
const GP = 'GP';
|
127 |
+
const GQ = 'GQ';
|
128 |
+
const GR = 'GR';
|
129 |
+
const GS = 'GS';
|
130 |
+
const GT = 'GT';
|
131 |
+
const GU = 'GU';
|
132 |
+
const GW = 'GW';
|
133 |
+
const GY = 'GY';
|
134 |
+
const HK = 'HK';
|
135 |
+
const HM = 'HM';
|
136 |
+
const HN = 'HN';
|
137 |
+
const HR = 'HR';
|
138 |
+
const HT = 'HT';
|
139 |
+
const HU = 'HU';
|
140 |
+
const ID = 'ID';
|
141 |
+
const IE = 'IE';
|
142 |
+
const IL = 'IL';
|
143 |
+
const IM = 'IM';
|
144 |
+
const IN = 'IN';
|
145 |
+
const IO = 'IO';
|
146 |
+
const IQ = 'IQ';
|
147 |
+
const IR = 'IR';
|
148 |
+
const IS = 'IS';
|
149 |
+
const IT = 'IT';
|
150 |
+
const JE = 'JE';
|
151 |
+
const JM = 'JM';
|
152 |
+
const JO = 'JO';
|
153 |
+
const JP = 'JP';
|
154 |
+
const KE = 'KE';
|
155 |
+
const KG = 'KG';
|
156 |
+
const KH = 'KH';
|
157 |
+
const KI = 'KI';
|
158 |
+
const KM = 'KM';
|
159 |
+
const KN = 'KN';
|
160 |
+
const KP = 'KP';
|
161 |
+
const KR = 'KR';
|
162 |
+
const KW = 'KW';
|
163 |
+
const KY = 'KY';
|
164 |
+
const KZ = 'KZ';
|
165 |
+
const LA = 'LA';
|
166 |
+
const LB = 'LB';
|
167 |
+
const LC = 'LC';
|
168 |
+
const LI = 'LI';
|
169 |
+
const LK = 'LK';
|
170 |
+
const LR = 'LR';
|
171 |
+
const LS = 'LS';
|
172 |
+
const LT = 'LT';
|
173 |
+
const LU = 'LU';
|
174 |
+
const LV = 'LV';
|
175 |
+
const LY = 'LY';
|
176 |
+
const MA = 'MA';
|
177 |
+
const MC = 'MC';
|
178 |
+
const MD = 'MD';
|
179 |
+
const ME = 'ME';
|
180 |
+
const MF = 'MF';
|
181 |
+
const MG = 'MG';
|
182 |
+
const MH = 'MH';
|
183 |
+
const MK = 'MK';
|
184 |
+
const ML = 'ML';
|
185 |
+
const MM = 'MM';
|
186 |
+
const MN = 'MN';
|
187 |
+
const MO = 'MO';
|
188 |
+
const MP = 'MP';
|
189 |
+
const MQ = 'MQ';
|
190 |
+
const MR = 'MR';
|
191 |
+
const MS = 'MS';
|
192 |
+
const MT = 'MT';
|
193 |
+
const MU = 'MU';
|
194 |
+
const MV = 'MV';
|
195 |
+
const MW = 'MW';
|
196 |
+
const MX = 'MX';
|
197 |
+
const MY = 'MY';
|
198 |
+
const MZ = 'MZ';
|
199 |
+
const NA = 'NA';
|
200 |
+
const NC = 'NC';
|
201 |
+
const NE = 'NE';
|
202 |
+
const NF = 'NF';
|
203 |
+
const NG = 'NG';
|
204 |
+
const NI = 'NI';
|
205 |
+
const NL = 'NL';
|
206 |
+
const NO = 'NO';
|
207 |
+
const NP = 'NP';
|
208 |
+
const NR = 'NR';
|
209 |
+
const NU = 'NU';
|
210 |
+
const NZ = 'NZ';
|
211 |
+
const OM = 'OM';
|
212 |
+
const PA = 'PA';
|
213 |
+
const PE = 'PE';
|
214 |
+
const PF = 'PF';
|
215 |
+
const PG = 'PG';
|
216 |
+
const PH = 'PH';
|
217 |
+
const PK = 'PK';
|
218 |
+
const PL = 'PL';
|
219 |
+
const PM = 'PM';
|
220 |
+
const PN = 'PN';
|
221 |
+
const PR = 'PR';
|
222 |
+
const PS = 'PS';
|
223 |
+
const PT = 'PT';
|
224 |
+
const PW = 'PW';
|
225 |
+
const PY = 'PY';
|
226 |
+
const QA = 'QA';
|
227 |
+
const RE = 'RE';
|
228 |
+
const RO = 'RO';
|
229 |
+
const RS = 'RS';
|
230 |
+
const RU = 'RU';
|
231 |
+
const RW = 'RW';
|
232 |
+
const SA = 'SA';
|
233 |
+
const SB = 'SB';
|
234 |
+
const SC = 'SC';
|
235 |
+
const SD = 'SD';
|
236 |
+
const SE = 'SE';
|
237 |
+
const SG = 'SG';
|
238 |
+
const SH = 'SH';
|
239 |
+
const SI = 'SI';
|
240 |
+
const SJ = 'SJ';
|
241 |
+
const SK = 'SK';
|
242 |
+
const SL = 'SL';
|
243 |
+
const SM = 'SM';
|
244 |
+
const SN = 'SN';
|
245 |
+
const SO = 'SO';
|
246 |
+
const SR = 'SR';
|
247 |
+
const SS = 'SS';
|
248 |
+
const ST = 'ST';
|
249 |
+
const SV = 'SV';
|
250 |
+
const SX = 'SX';
|
251 |
+
const SY = 'SY';
|
252 |
+
const SZ = 'SZ';
|
253 |
+
const TC = 'TC';
|
254 |
+
const TD = 'TD';
|
255 |
+
const TF = 'TF';
|
256 |
+
const TG = 'TG';
|
257 |
+
const TH = 'TH';
|
258 |
+
const TJ = 'TJ';
|
259 |
+
const TK = 'TK';
|
260 |
+
const TL = 'TL';
|
261 |
+
const TM = 'TM';
|
262 |
+
const TN = 'TN';
|
263 |
+
const TO = 'TO';
|
264 |
+
const TR = 'TR';
|
265 |
+
const TT = 'TT';
|
266 |
+
const TV = 'TV';
|
267 |
+
const TW = 'TW';
|
268 |
+
const TZ = 'TZ';
|
269 |
+
const UA = 'UA';
|
270 |
+
const UG = 'UG';
|
271 |
+
const UM = 'UM';
|
272 |
+
const US = 'US';
|
273 |
+
const UY = 'UY';
|
274 |
+
const UZ = 'UZ';
|
275 |
+
const VA = 'VA';
|
276 |
+
const VC = 'VC';
|
277 |
+
const VE = 'VE';
|
278 |
+
const VG = 'VG';
|
279 |
+
const VI = 'VI';
|
280 |
+
const VN = 'VN';
|
281 |
+
const VU = 'VU';
|
282 |
+
const WF = 'WF';
|
283 |
+
const WS = 'WS';
|
284 |
+
const XK = 'XK';
|
285 |
+
const YE = 'YE';
|
286 |
+
const YT = 'YT';
|
287 |
+
const ZA = 'ZA';
|
288 |
+
const ZM = 'ZM';
|
289 |
+
const ZW = 'ZW';
|
290 |
+
}
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/Values/ProfileTypeValues.php
CHANGED
@@ -38,7 +38,9 @@ class ProfileTypeValues extends \PYS_PRO_GLOBAL\FacebookAds\Enum\AbstractEnum
|
|
38 |
{
|
39 |
const ANGRY = 'ANGRY';
|
40 |
const CARE = 'CARE';
|
|
|
41 |
const HAHA = 'HAHA';
|
|
|
42 |
const LIKE = 'LIKE';
|
43 |
const LOVE = 'LOVE';
|
44 |
const NONE = 'NONE';
|
38 |
{
|
39 |
const ANGRY = 'ANGRY';
|
40 |
const CARE = 'CARE';
|
41 |
+
const FIRE = 'FIRE';
|
42 |
const HAHA = 'HAHA';
|
43 |
+
const HUNDRED = 'HUNDRED';
|
44 |
const LIKE = 'LIKE';
|
45 |
const LOVE = 'LOVE';
|
46 |
const NONE = 'NONE';
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/WhatsAppBusinessAccount.php
CHANGED
@@ -125,6 +125,46 @@ class WhatsAppBusinessAccount extends \PYS_PRO_GLOBAL\FacebookAds\Object\Abstrac
|
|
125 |
$request->addFields($fields);
|
126 |
return $pending ? $request : $request->execute();
|
127 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
128 |
public function deleteSubscribedApps(array $fields = array(), array $params = array(), $pending = \false)
|
129 |
{
|
130 |
$this->assureId();
|
125 |
$request->addFields($fields);
|
126 |
return $pending ? $request : $request->execute();
|
127 |
}
|
128 |
+
public function createPhoneNumber(array $fields = array(), array $params = array(), $pending = \false)
|
129 |
+
{
|
130 |
+
$this->assureId();
|
131 |
+
$param_types = array('cc' => 'string', 'migrate_phone_number' => 'bool', 'phone_number' => 'string');
|
132 |
+
$enums = array();
|
133 |
+
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_POST, '/phone_numbers', new \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject(), 'EDGE', array(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
134 |
+
$request->addParams($params);
|
135 |
+
$request->addFields($fields);
|
136 |
+
return $pending ? $request : $request->execute();
|
137 |
+
}
|
138 |
+
public function deleteProductCatalogs(array $fields = array(), array $params = array(), $pending = \false)
|
139 |
+
{
|
140 |
+
$this->assureId();
|
141 |
+
$param_types = array('catalog_id' => 'string');
|
142 |
+
$enums = array();
|
143 |
+
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_DELETE, '/product_catalogs', new \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject(), 'EDGE', array(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
144 |
+
$request->addParams($params);
|
145 |
+
$request->addFields($fields);
|
146 |
+
return $pending ? $request : $request->execute();
|
147 |
+
}
|
148 |
+
public function getProductCatalogs(array $fields = array(), array $params = array(), $pending = \false)
|
149 |
+
{
|
150 |
+
$this->assureId();
|
151 |
+
$param_types = array();
|
152 |
+
$enums = array();
|
153 |
+
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_GET, '/product_catalogs', new \PYS_PRO_GLOBAL\FacebookAds\Object\ProductCatalog(), 'EDGE', \PYS_PRO_GLOBAL\FacebookAds\Object\ProductCatalog::getFieldsEnum()->getValues(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
154 |
+
$request->addParams($params);
|
155 |
+
$request->addFields($fields);
|
156 |
+
return $pending ? $request : $request->execute();
|
157 |
+
}
|
158 |
+
public function createProductCatalog(array $fields = array(), array $params = array(), $pending = \false)
|
159 |
+
{
|
160 |
+
$this->assureId();
|
161 |
+
$param_types = array('catalog_id' => 'string');
|
162 |
+
$enums = array();
|
163 |
+
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_POST, '/product_catalogs', new \PYS_PRO_GLOBAL\FacebookAds\Object\ProductCatalog(), 'EDGE', \PYS_PRO_GLOBAL\FacebookAds\Object\ProductCatalog::getFieldsEnum()->getValues(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
164 |
+
$request->addParams($params);
|
165 |
+
$request->addFields($fields);
|
166 |
+
return $pending ? $request : $request->execute();
|
167 |
+
}
|
168 |
public function deleteSubscribedApps(array $fields = array(), array $params = array(), $pending = \false)
|
169 |
{
|
170 |
$this->assureId();
|
vendor_prefix/facebook/php-business-sdk/src/FacebookAds/Object/WoodhengePurchasedPAYGReceipt.php
ADDED
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Copyright (c) 2015-present, Facebook, Inc. All rights reserved.
|
5 |
+
*
|
6 |
+
* You are hereby granted a non-exclusive, worldwide, royalty-free license to
|
7 |
+
* use, copy, modify, and distribute this software in source code or binary
|
8 |
+
* form for use in connection with the web services and APIs provided by
|
9 |
+
* Facebook.
|
10 |
+
*
|
11 |
+
* As with any software that integrates with the Facebook platform, your use
|
12 |
+
* of this software is subject to the Facebook Developer Principles and
|
13 |
+
* Policies [http://developers.facebook.com/policy/]. This copyright notice
|
14 |
+
* shall be included in all copies or substantial portions of the software.
|
15 |
+
*
|
16 |
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
17 |
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
18 |
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
19 |
+
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
20 |
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
21 |
+
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
22 |
+
* DEALINGS IN THE SOFTWARE.
|
23 |
+
*
|
24 |
+
*/
|
25 |
+
namespace PYS_PRO_GLOBAL\FacebookAds\Object;
|
26 |
+
|
27 |
+
use PYS_PRO_GLOBAL\FacebookAds\ApiRequest;
|
28 |
+
use PYS_PRO_GLOBAL\FacebookAds\Cursor;
|
29 |
+
use PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface;
|
30 |
+
use PYS_PRO_GLOBAL\FacebookAds\TypeChecker;
|
31 |
+
use PYS_PRO_GLOBAL\FacebookAds\Object\Fields\WoodhengePurchasedPAYGReceiptFields;
|
32 |
+
/**
|
33 |
+
* This class is auto-generated.
|
34 |
+
*
|
35 |
+
* For any issues or feature requests related to this class, please let us know
|
36 |
+
* on github and we'll fix in our codegen framework. We'll not be able to accept
|
37 |
+
* pull request for this class.
|
38 |
+
*
|
39 |
+
*/
|
40 |
+
class WoodhengePurchasedPAYGReceipt extends \PYS_PRO_GLOBAL\FacebookAds\Object\AbstractCrudObject
|
41 |
+
{
|
42 |
+
/**
|
43 |
+
* @return WoodhengePurchasedPAYGReceiptFields
|
44 |
+
*/
|
45 |
+
public static function getFieldsEnum()
|
46 |
+
{
|
47 |
+
return \PYS_PRO_GLOBAL\FacebookAds\Object\Fields\WoodhengePurchasedPAYGReceiptFields::getInstance();
|
48 |
+
}
|
49 |
+
protected static function getReferencedEnums()
|
50 |
+
{
|
51 |
+
$ref_enums = array();
|
52 |
+
return $ref_enums;
|
53 |
+
}
|
54 |
+
public function getSelf(array $fields = array(), array $params = array(), $pending = \false)
|
55 |
+
{
|
56 |
+
$this->assureId();
|
57 |
+
$param_types = array();
|
58 |
+
$enums = array();
|
59 |
+
$request = new \PYS_PRO_GLOBAL\FacebookAds\ApiRequest($this->api, $this->data['id'], \PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface::METHOD_GET, '/', new \PYS_PRO_GLOBAL\FacebookAds\Object\WoodhengePurchasedPAYGReceipt(), 'NODE', \PYS_PRO_GLOBAL\FacebookAds\Object\WoodhengePurchasedPAYGReceipt::getFieldsEnum()->getValues(), new \PYS_PRO_GLOBAL\FacebookAds\TypeChecker($param_types, $enums));
|
60 |
+
$request->addParams($params);
|
61 |
+
$request->addFields($fields);
|
62 |
+
return $pending ? $request : $request->execute();
|
63 |
+
}
|
64 |
+
}
|
vendor_prefix/guzzlehttp/guzzle/src/Client.php
CHANGED
@@ -290,6 +290,9 @@ class Client implements \PYS_PRO_GLOBAL\GuzzleHttp\ClientInterface, \PYS_PRO_GLO
|
|
290 |
{
|
291 |
$modify = ['set_headers' => []];
|
292 |
if (isset($options['headers'])) {
|
|
|
|
|
|
|
293 |
$modify['set_headers'] = $options['headers'];
|
294 |
unset($options['headers']);
|
295 |
}
|
290 |
{
|
291 |
$modify = ['set_headers' => []];
|
292 |
if (isset($options['headers'])) {
|
293 |
+
if (\array_keys($options['headers']) === \range(0, \count($options['headers']) - 1)) {
|
294 |
+
throw new \PYS_PRO_GLOBAL\GuzzleHttp\Exception\InvalidArgumentException('The headers array must have header name as keys.');
|
295 |
+
}
|
296 |
$modify['set_headers'] = $options['headers'];
|
297 |
unset($options['headers']);
|
298 |
}
|
vendor_prefix/guzzlehttp/guzzle/src/ClientInterface.php
CHANGED
@@ -15,7 +15,7 @@ interface ClientInterface
|
|
15 |
/**
|
16 |
* The Guzzle major version.
|
17 |
*/
|
18 |
-
const MAJOR_VERSION = 7;
|
19 |
/**
|
20 |
* Send an HTTP request.
|
21 |
*
|
15 |
/**
|
16 |
* The Guzzle major version.
|
17 |
*/
|
18 |
+
public const MAJOR_VERSION = 7;
|
19 |
/**
|
20 |
* Send an HTTP request.
|
21 |
*
|
vendor_prefix/guzzlehttp/guzzle/src/Cookie/SetCookie.php
CHANGED
@@ -72,7 +72,7 @@ class SetCookie
|
|
72 |
}
|
73 |
public function __toString()
|
74 |
{
|
75 |
-
$str = $this->data['Name'] . '=' . $this->data['Value'] . '; ';
|
76 |
foreach ($this->data as $k => $v) {
|
77 |
if ($k !== 'Name' && $k !== 'Value' && $v !== null && $v !== \false) {
|
78 |
if ($k === 'Expires') {
|
@@ -104,7 +104,10 @@ class SetCookie
|
|
104 |
*/
|
105 |
public function setName($name) : void
|
106 |
{
|
107 |
-
|
|
|
|
|
|
|
108 |
}
|
109 |
/**
|
110 |
* Get the cookie value.
|
@@ -122,7 +125,10 @@ class SetCookie
|
|
122 |
*/
|
123 |
public function setValue($value) : void
|
124 |
{
|
125 |
-
|
|
|
|
|
|
|
126 |
}
|
127 |
/**
|
128 |
* Get the domain.
|
@@ -136,11 +142,14 @@ class SetCookie
|
|
136 |
/**
|
137 |
* Set the domain of the cookie.
|
138 |
*
|
139 |
-
* @param string $domain
|
140 |
*/
|
141 |
public function setDomain($domain) : void
|
142 |
{
|
143 |
-
$
|
|
|
|
|
|
|
144 |
}
|
145 |
/**
|
146 |
* Get the path.
|
@@ -158,7 +167,10 @@ class SetCookie
|
|
158 |
*/
|
159 |
public function setPath($path) : void
|
160 |
{
|
161 |
-
|
|
|
|
|
|
|
162 |
}
|
163 |
/**
|
164 |
* Maximum lifetime of the cookie in seconds.
|
@@ -167,16 +179,19 @@ class SetCookie
|
|
167 |
*/
|
168 |
public function getMaxAge()
|
169 |
{
|
170 |
-
return $this->data['Max-Age'];
|
171 |
}
|
172 |
/**
|
173 |
* Set the max-age of the cookie.
|
174 |
*
|
175 |
-
* @param int $maxAge Max age of the cookie in seconds
|
176 |
*/
|
177 |
public function setMaxAge($maxAge) : void
|
178 |
{
|
179 |
-
$
|
|
|
|
|
|
|
180 |
}
|
181 |
/**
|
182 |
* The UNIX timestamp when the cookie Expires.
|
@@ -190,16 +205,19 @@ class SetCookie
|
|
190 |
/**
|
191 |
* Set the unix timestamp for which the cookie will expire.
|
192 |
*
|
193 |
-
* @param int|string $timestamp Unix timestamp or any English textual datetime description.
|
194 |
*/
|
195 |
public function setExpires($timestamp) : void
|
196 |
{
|
197 |
-
|
|
|
|
|
|
|
198 |
}
|
199 |
/**
|
200 |
* Get whether or not this is a secure cookie.
|
201 |
*
|
202 |
-
* @return bool
|
203 |
*/
|
204 |
public function getSecure()
|
205 |
{
|
@@ -212,7 +230,10 @@ class SetCookie
|
|
212 |
*/
|
213 |
public function setSecure($secure) : void
|
214 |
{
|
215 |
-
|
|
|
|
|
|
|
216 |
}
|
217 |
/**
|
218 |
* Get whether or not this is a session cookie.
|
@@ -230,7 +251,10 @@ class SetCookie
|
|
230 |
*/
|
231 |
public function setDiscard($discard) : void
|
232 |
{
|
233 |
-
|
|
|
|
|
|
|
234 |
}
|
235 |
/**
|
236 |
* Get whether or not this is an HTTP only cookie.
|
@@ -248,7 +272,10 @@ class SetCookie
|
|
248 |
*/
|
249 |
public function setHttpOnly($httpOnly) : void
|
250 |
{
|
251 |
-
|
|
|
|
|
|
|
252 |
}
|
253 |
/**
|
254 |
* Check if the cookie matches a path value.
|
72 |
}
|
73 |
public function __toString()
|
74 |
{
|
75 |
+
$str = $this->data['Name'] . '=' . ($this->data['Value'] ?? '') . '; ';
|
76 |
foreach ($this->data as $k => $v) {
|
77 |
if ($k !== 'Name' && $k !== 'Value' && $v !== null && $v !== \false) {
|
78 |
if ($k === 'Expires') {
|
104 |
*/
|
105 |
public function setName($name) : void
|
106 |
{
|
107 |
+
if (!\is_string($name)) {
|
108 |
+
trigger_deprecation('guzzlehttp/guzzle', '7.4', 'Not passing a string to %s::%s() is deprecated and will cause an error in 8.0.', __CLASS__, __FUNCTION__);
|
109 |
+
}
|
110 |
+
$this->data['Name'] = (string) $name;
|
111 |
}
|
112 |
/**
|
113 |
* Get the cookie value.
|
125 |
*/
|
126 |
public function setValue($value) : void
|
127 |
{
|
128 |
+
if (!\is_string($value)) {
|
129 |
+
trigger_deprecation('guzzlehttp/guzzle', '7.4', 'Not passing a string to %s::%s() is deprecated and will cause an error in 8.0.', __CLASS__, __FUNCTION__);
|
130 |
+
}
|
131 |
+
$this->data['Value'] = (string) $value;
|
132 |
}
|
133 |
/**
|
134 |
* Get the domain.
|
142 |
/**
|
143 |
* Set the domain of the cookie.
|
144 |
*
|
145 |
+
* @param string|null $domain
|
146 |
*/
|
147 |
public function setDomain($domain) : void
|
148 |
{
|
149 |
+
if (!\is_string($domain) && null !== $domain) {
|
150 |
+
trigger_deprecation('guzzlehttp/guzzle', '7.4', 'Not passing a string or null to %s::%s() is deprecated and will cause an error in 8.0.', __CLASS__, __FUNCTION__);
|
151 |
+
}
|
152 |
+
$this->data['Domain'] = null === $domain ? null : (string) $domain;
|
153 |
}
|
154 |
/**
|
155 |
* Get the path.
|
167 |
*/
|
168 |
public function setPath($path) : void
|
169 |
{
|
170 |
+
if (!\is_string($path)) {
|
171 |
+
trigger_deprecation('guzzlehttp/guzzle', '7.4', 'Not passing a string to %s::%s() is deprecated and will cause an error in 8.0.', __CLASS__, __FUNCTION__);
|
172 |
+
}
|
173 |
+
$this->data['Path'] = (string) $path;
|
174 |
}
|
175 |
/**
|
176 |
* Maximum lifetime of the cookie in seconds.
|
179 |
*/
|
180 |
public function getMaxAge()
|
181 |
{
|
182 |
+
return null === $this->data['Max-Age'] ? null : (int) $this->data['Max-Age'];
|
183 |
}
|
184 |
/**
|
185 |
* Set the max-age of the cookie.
|
186 |
*
|
187 |
+
* @param int|null $maxAge Max age of the cookie in seconds
|
188 |
*/
|
189 |
public function setMaxAge($maxAge) : void
|
190 |
{
|
191 |
+
if (!\is_int($maxAge) && null !== $maxAge) {
|
192 |
+
trigger_deprecation('guzzlehttp/guzzle', '7.4', 'Not passing an int or null to %s::%s() is deprecated and will cause an error in 8.0.', __CLASS__, __FUNCTION__);
|
193 |
+
}
|
194 |
+
$this->data['Max-Age'] = $maxAge === null ? null : (int) $maxAge;
|
195 |
}
|
196 |
/**
|
197 |
* The UNIX timestamp when the cookie Expires.
|
205 |
/**
|
206 |
* Set the unix timestamp for which the cookie will expire.
|
207 |
*
|
208 |
+
* @param int|string|null $timestamp Unix timestamp or any English textual datetime description.
|
209 |
*/
|
210 |
public function setExpires($timestamp) : void
|
211 |
{
|
212 |
+
if (!\is_int($timestamp) && !\is_string($timestamp) && null !== $timestamp) {
|
213 |
+
trigger_deprecation('guzzlehttp/guzzle', '7.4', 'Not passing an int, string or null to %s::%s() is deprecated and will cause an error in 8.0.', __CLASS__, __FUNCTION__);
|
214 |
+
}
|
215 |
+
$this->data['Expires'] = null === $timestamp ? null : (\is_numeric($timestamp) ? (int) $timestamp : \strtotime((string) $timestamp));
|
216 |
}
|
217 |
/**
|
218 |
* Get whether or not this is a secure cookie.
|
219 |
*
|
220 |
+
* @return bool
|
221 |
*/
|
222 |
public function getSecure()
|
223 |
{
|
230 |
*/
|
231 |
public function setSecure($secure) : void
|
232 |
{
|
233 |
+
if (!\is_bool($secure)) {
|
234 |
+
trigger_deprecation('guzzlehttp/guzzle', '7.4', 'Not passing a bool to %s::%s() is deprecated and will cause an error in 8.0.', __CLASS__, __FUNCTION__);
|
235 |
+
}
|
236 |
+
$this->data['Secure'] = (bool) $secure;
|
237 |
}
|
238 |
/**
|
239 |
* Get whether or not this is a session cookie.
|
251 |
*/
|
252 |
public function setDiscard($discard) : void
|
253 |
{
|
254 |
+
if (!\is_bool($discard)) {
|
255 |
+
trigger_deprecation('guzzlehttp/guzzle', '7.4', 'Not passing a bool to %s::%s() is deprecated and will cause an error in 8.0.', __CLASS__, __FUNCTION__);
|
256 |
+
}
|
257 |
+
$this->data['Discard'] = (bool) $discard;
|
258 |
}
|
259 |
/**
|
260 |
* Get whether or not this is an HTTP only cookie.
|
272 |
*/
|
273 |
public function setHttpOnly($httpOnly) : void
|
274 |
{
|
275 |
+
if (!\is_bool($httpOnly)) {
|
276 |
+
trigger_deprecation('guzzlehttp/guzzle', '7.4', 'Not passing a bool to %s::%s() is deprecated and will cause an error in 8.0.', __CLASS__, __FUNCTION__);
|
277 |
+
}
|
278 |
+
$this->data['HttpOnly'] = (bool) $httpOnly;
|
279 |
}
|
280 |
/**
|
281 |
* Check if the cookie matches a path value.
|
vendor_prefix/guzzlehttp/guzzle/src/Handler/CurlFactory.php
CHANGED
@@ -282,8 +282,11 @@ class CurlFactory implements \PYS_PRO_GLOBAL\GuzzleHttp\Handler\CurlFactoryInter
|
|
282 |
if ($accept) {
|
283 |
$conf[\CURLOPT_ENCODING] = $accept;
|
284 |
} else {
|
|
|
|
|
285 |
$conf[\CURLOPT_ENCODING] = '';
|
286 |
-
//
|
|
|
287 |
$conf[\CURLOPT_HTTPHEADER][] = 'Accept-Encoding:';
|
288 |
}
|
289 |
}
|
282 |
if ($accept) {
|
283 |
$conf[\CURLOPT_ENCODING] = $accept;
|
284 |
} else {
|
285 |
+
// The empty string enables all available decoders and implicitly
|
286 |
+
// sets a matching 'Accept-Encoding' header.
|
287 |
$conf[\CURLOPT_ENCODING] = '';
|
288 |
+
// But as the user did not specify any acceptable encodings we need
|
289 |
+
// to overwrite this implicit header with an empty one.
|
290 |
$conf[\CURLOPT_HTTPHEADER][] = 'Accept-Encoding:';
|
291 |
}
|
292 |
}
|
vendor_prefix/guzzlehttp/guzzle/src/Handler/CurlHandler.php
CHANGED
@@ -22,9 +22,9 @@ class CurlHandler
|
|
22 |
/**
|
23 |
* Accepts an associative array of options:
|
24 |
*
|
25 |
-
* -
|
26 |
*
|
27 |
-
* @param array $options Array of options to use with the handler
|
28 |
*/
|
29 |
public function __construct(array $options = [])
|
30 |
{
|
22 |
/**
|
23 |
* Accepts an associative array of options:
|
24 |
*
|
25 |
+
* - handle_factory: Optional curl factory used to create cURL handles.
|
26 |
*
|
27 |
+
* @param array{handle_factory?: ?CurlFactoryInterface} $options Array of options to use with the handler
|
28 |
*/
|
29 |
public function __construct(array $options = [])
|
30 |
{
|
vendor_prefix/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php
CHANGED
@@ -171,6 +171,9 @@ class CurlMultiHandler
|
|
171 |
*/
|
172 |
private function cancel($id) : bool
|
173 |
{
|
|
|
|
|
|
|
174 |
// Cannot cancel if it has been processed.
|
175 |
if (!isset($this->handles[$id])) {
|
176 |
return \false;
|
171 |
*/
|
172 |
private function cancel($id) : bool
|
173 |
{
|
174 |
+
if (!\is_int($id)) {
|
175 |
+
trigger_deprecation('guzzlehttp/guzzle', '7.4', 'Not passing an integer to %s::%s() is deprecated and will cause an error in 8.0.', __CLASS__, __FUNCTION__);
|
176 |
+
}
|
177 |
// Cannot cancel if it has been processed.
|
178 |
if (!isset($this->handles[$id])) {
|
179 |
return \false;
|
vendor_prefix/guzzlehttp/guzzle/src/Handler/StreamHandler.php
CHANGED
@@ -180,8 +180,11 @@ class StreamHandler
|
|
180 |
$errors[] = ['message' => $msg, 'file' => $file, 'line' => $line];
|
181 |
return \true;
|
182 |
});
|
183 |
-
|
184 |
-
|
|
|
|
|
|
|
185 |
if (!$resource) {
|
186 |
$message = 'Error creating resource: ';
|
187 |
foreach ($errors as $err) {
|
@@ -392,7 +395,9 @@ class StreamHandler
|
|
392 |
{
|
393 |
self::addNotification($params, static function ($code, $a, $b, $c, $transferred, $total) use($value) {
|
394 |
if ($code == \STREAM_NOTIFY_PROGRESS) {
|
395 |
-
|
|
|
|
|
396 |
}
|
397 |
});
|
398 |
}
|
180 |
$errors[] = ['message' => $msg, 'file' => $file, 'line' => $line];
|
181 |
return \true;
|
182 |
});
|
183 |
+
try {
|
184 |
+
$resource = $callback();
|
185 |
+
} finally {
|
186 |
+
\restore_error_handler();
|
187 |
+
}
|
188 |
if (!$resource) {
|
189 |
$message = 'Error creating resource: ';
|
190 |
foreach ($errors as $err) {
|
395 |
{
|
396 |
self::addNotification($params, static function ($code, $a, $b, $c, $transferred, $total) use($value) {
|
397 |
if ($code == \STREAM_NOTIFY_PROGRESS) {
|
398 |
+
// The upload progress cannot be determined. Use 0 for cURL compatibility:
|
399 |
+
// https://curl.se/libcurl/c/CURLOPT_PROGRESSFUNCTION.html
|
400 |
+
$value($total, $transferred, 0, 0);
|
401 |
}
|
402 |
});
|
403 |
}
|
vendor_prefix/guzzlehttp/guzzle/src/HandlerStack.php
CHANGED
@@ -14,7 +14,7 @@ use PYS_PRO_GLOBAL\Psr\Http\Message\ResponseInterface;
|
|
14 |
class HandlerStack
|
15 |
{
|
16 |
/**
|
17 |
-
* @var
|
18 |
*/
|
19 |
private $handler;
|
20 |
/**
|
@@ -22,7 +22,7 @@ class HandlerStack
|
|
22 |
*/
|
23 |
private $stack = [];
|
24 |
/**
|
25 |
-
* @var
|
26 |
*/
|
27 |
private $cached;
|
28 |
/**
|
@@ -36,9 +36,9 @@ class HandlerStack
|
|
36 |
* The returned handler stack can be passed to a client in the "handler"
|
37 |
* option.
|
38 |
*
|
39 |
-
* @param
|
40 |
-
*
|
41 |
-
*
|
42 |
*/
|
43 |
public static function create(?callable $handler = null) : self
|
44 |
{
|
@@ -50,7 +50,7 @@ class HandlerStack
|
|
50 |
return $stack;
|
51 |
}
|
52 |
/**
|
53 |
-
* @param
|
54 |
*/
|
55 |
public function __construct(callable $handler = null)
|
56 |
{
|
@@ -160,6 +160,9 @@ class HandlerStack
|
|
160 |
*/
|
161 |
public function remove($remove) : void
|
162 |
{
|
|
|
|
|
|
|
163 |
$this->cached = null;
|
164 |
$idx = \is_callable($remove) ? 0 : 1;
|
165 |
$this->stack = \array_values(\array_filter($this->stack, static function ($tuple) use($idx, $remove) {
|
@@ -219,7 +222,7 @@ class HandlerStack
|
|
219 |
/**
|
220 |
* Provides a debug string for a given callable.
|
221 |
*
|
222 |
-
* @param callable $fn Function to write as a string.
|
223 |
*/
|
224 |
private function debugCallable($fn) : string
|
225 |
{
|
14 |
class HandlerStack
|
15 |
{
|
16 |
/**
|
17 |
+
* @var (callable(RequestInterface, array): PromiseInterface)|null
|
18 |
*/
|
19 |
private $handler;
|
20 |
/**
|
22 |
*/
|
23 |
private $stack = [];
|
24 |
/**
|
25 |
+
* @var (callable(RequestInterface, array): PromiseInterface)|null
|
26 |
*/
|
27 |
private $cached;
|
28 |
/**
|
36 |
* The returned handler stack can be passed to a client in the "handler"
|
37 |
* option.
|
38 |
*
|
39 |
+
* @param (callable(RequestInterface, array): PromiseInterface)|null $handler HTTP handler function to use with the stack. If no
|
40 |
+
* handler is provided, the best handler for your
|
41 |
+
* system will be utilized.
|
42 |
*/
|
43 |
public static function create(?callable $handler = null) : self
|
44 |
{
|
50 |
return $stack;
|
51 |
}
|
52 |
/**
|
53 |
+
* @param (callable(RequestInterface, array): PromiseInterface)|null $handler Underlying HTTP handler.
|
54 |
*/
|
55 |
public function __construct(callable $handler = null)
|
56 |
{
|
160 |
*/
|
161 |
public function remove($remove) : void
|
162 |
{
|
163 |
+
if (!\is_string($remove) && !\is_callable($remove)) {
|
164 |
+
trigger_deprecation('guzzlehttp/guzzle', '7.4', 'Not passing a callable or string to %s::%s() is deprecated and will cause an error in 8.0.', __CLASS__, __FUNCTION__);
|
165 |
+
}
|
166 |
$this->cached = null;
|
167 |
$idx = \is_callable($remove) ? 0 : 1;
|
168 |
$this->stack = \array_values(\array_filter($this->stack, static function ($tuple) use($idx, $remove) {
|
222 |
/**
|
223 |
* Provides a debug string for a given callable.
|
224 |
*
|
225 |
+
* @param callable|string $fn Function to write as a string.
|
226 |
*/
|
227 |
private function debugCallable($fn) : string
|
228 |
{
|
vendor_prefix/guzzlehttp/guzzle/src/RetryMiddleware.php
CHANGED
@@ -32,7 +32,7 @@ class RetryMiddleware
|
|
32 |
* returns true if the request is to be
|
33 |
* retried.
|
34 |
* @param callable(RequestInterface, array): PromiseInterface $nextHandler Next handler to invoke.
|
35 |
-
* @param
|
36 |
* and returns the number of
|
37 |
* milliseconds to delay.
|
38 |
*/
|
32 |
* returns true if the request is to be
|
33 |
* retried.
|
34 |
* @param callable(RequestInterface, array): PromiseInterface $nextHandler Next handler to invoke.
|
35 |
+
* @param (callable(int): int)|null $delay Function that accepts the number of retries
|
36 |
* and returns the number of
|
37 |
* milliseconds to delay.
|
38 |
*/
|
vendor_prefix/guzzlehttp/guzzle/src/Utils.php
CHANGED
@@ -201,19 +201,17 @@ EOT
|
|
201 |
throw new \PYS_PRO_GLOBAL\GuzzleHttp\Exception\InvalidArgumentException('Empty host provided');
|
202 |
}
|
203 |
// Strip port if present.
|
204 |
-
|
205 |
-
/** @var string[] $hostParts will never be false because of the checks above */
|
206 |
-
$hostParts = \explode(':', $host, 2);
|
207 |
-
$host = $hostParts[0];
|
208 |
-
}
|
209 |
foreach ($noProxyArray as $area) {
|
210 |
// Always match on wildcards.
|
211 |
if ($area === '*') {
|
212 |
return \true;
|
213 |
-
}
|
|
|
214 |
// Don't match on empty values.
|
215 |
continue;
|
216 |
-
}
|
|
|
217 |
// Exact matches.
|
218 |
return \true;
|
219 |
}
|
@@ -292,7 +290,7 @@ EOT
|
|
292 |
$asciiHost = self::idnToAsci($uri->getHost(), $options, $info);
|
293 |
if ($asciiHost === \false) {
|
294 |
$errorBitSet = $info['errors'] ?? 0;
|
295 |
-
$errorConstants = \array_filter(\array_keys(\get_defined_constants()), static function ($name) {
|
296 |
return \substr($name, 0, 11) === 'IDNA_ERROR_';
|
297 |
});
|
298 |
$errors = [];
|
201 |
throw new \PYS_PRO_GLOBAL\GuzzleHttp\Exception\InvalidArgumentException('Empty host provided');
|
202 |
}
|
203 |
// Strip port if present.
|
204 |
+
[$host] = \explode(':', $host, 2);
|
|
|
|
|
|
|
|
|
205 |
foreach ($noProxyArray as $area) {
|
206 |
// Always match on wildcards.
|
207 |
if ($area === '*') {
|
208 |
return \true;
|
209 |
+
}
|
210 |
+
if (empty($area)) {
|
211 |
// Don't match on empty values.
|
212 |
continue;
|
213 |
+
}
|
214 |
+
if ($area === $host) {
|
215 |
// Exact matches.
|
216 |
return \true;
|
217 |
}
|
290 |
$asciiHost = self::idnToAsci($uri->getHost(), $options, $info);
|
291 |
if ($asciiHost === \false) {
|
292 |
$errorBitSet = $info['errors'] ?? 0;
|
293 |
+
$errorConstants = \array_filter(\array_keys(\get_defined_constants()), static function (string $name) : bool {
|
294 |
return \substr($name, 0, 11) === 'IDNA_ERROR_';
|
295 |
});
|
296 |
$errors = [];
|
vendor_prefix/guzzlehttp/promises/src/EachPromise.php
CHANGED
@@ -66,9 +66,7 @@ class EachPromise implements \PYS_PRO_GLOBAL\GuzzleHttp\Promise\PromisorInterfac
|
|
66 |
$this->createPromise();
|
67 |
/** @psalm-assert Promise $this->aggregate */
|
68 |
$this->iterable->rewind();
|
69 |
-
|
70 |
-
$this->refillPending();
|
71 |
-
}
|
72 |
} catch (\Throwable $e) {
|
73 |
/**
|
74 |
* @psalm-suppress NullReference
|
@@ -92,6 +90,9 @@ class EachPromise implements \PYS_PRO_GLOBAL\GuzzleHttp\Promise\PromisorInterfac
|
|
92 |
{
|
93 |
$this->mutex = \false;
|
94 |
$this->aggregate = new \PYS_PRO_GLOBAL\GuzzleHttp\Promise\Promise(function () {
|
|
|
|
|
|
|
95 |
\reset($this->pending);
|
96 |
// Consume a potentially fluctuating list of promises while
|
97 |
// ensuring that indexes are maintained (precluding array_shift).
|
66 |
$this->createPromise();
|
67 |
/** @psalm-assert Promise $this->aggregate */
|
68 |
$this->iterable->rewind();
|
69 |
+
$this->refillPending();
|
|
|
|
|
70 |
} catch (\Throwable $e) {
|
71 |
/**
|
72 |
* @psalm-suppress NullReference
|
90 |
{
|
91 |
$this->mutex = \false;
|
92 |
$this->aggregate = new \PYS_PRO_GLOBAL\GuzzleHttp\Promise\Promise(function () {
|
93 |
+
if ($this->checkIfFinished()) {
|
94 |
+
return;
|
95 |
+
}
|
96 |
\reset($this->pending);
|
97 |
// Consume a potentially fluctuating list of promises while
|
98 |
// ensuring that indexes are maintained (precluding array_shift).
|
vendor_prefix/guzzlehttp/promises/src/Utils.php
CHANGED
@@ -45,7 +45,9 @@ final class Utils
|
|
45 |
$promise = new \PYS_PRO_GLOBAL\GuzzleHttp\Promise\Promise([$queue, 'run']);
|
46 |
$queue->add(function () use($task, $promise) {
|
47 |
try {
|
48 |
-
$promise
|
|
|
|
|
49 |
} catch (\Throwable $e) {
|
50 |
$promise->reject($e);
|
51 |
} catch (\Exception $e) {
|
45 |
$promise = new \PYS_PRO_GLOBAL\GuzzleHttp\Promise\Promise([$queue, 'run']);
|
46 |
$queue->add(function () use($task, $promise) {
|
47 |
try {
|
48 |
+
if (\PYS_PRO_GLOBAL\GuzzleHttp\Promise\Is::pending($promise)) {
|
49 |
+
$promise->resolve($task());
|
50 |
+
}
|
51 |
} catch (\Throwable $e) {
|
52 |
$promise->reject($e);
|
53 |
} catch (\Exception $e) {
|
vendor_prefix/guzzlehttp/psr7/src/AppendStream.php
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
<?php
|
2 |
|
|
|
3 |
namespace PYS_PRO_GLOBAL\GuzzleHttp\Psr7;
|
4 |
|
5 |
use PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface;
|
@@ -7,15 +8,16 @@ use PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface;
|
|
7 |
* Reads from multiple streams, one after the other.
|
8 |
*
|
9 |
* This is a read-only stream decorator.
|
10 |
-
*
|
11 |
-
* @final
|
12 |
*/
|
13 |
-
class AppendStream implements \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface
|
14 |
{
|
15 |
/** @var StreamInterface[] Streams being decorated */
|
16 |
private $streams = [];
|
|
|
17 |
private $seekable = \true;
|
|
|
18 |
private $current = 0;
|
|
|
19 |
private $pos = 0;
|
20 |
/**
|
21 |
* @param StreamInterface[] $streams Streams to decorate. Each stream must
|
@@ -27,12 +29,16 @@ class AppendStream implements \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface
|
|
27 |
$this->addStream($stream);
|
28 |
}
|
29 |
}
|
30 |
-
public function __toString()
|
31 |
{
|
32 |
try {
|
33 |
$this->rewind();
|
34 |
return $this->getContents();
|
35 |
-
} catch (\
|
|
|
|
|
|
|
|
|
36 |
return '';
|
37 |
}
|
38 |
}
|
@@ -43,7 +49,7 @@ class AppendStream implements \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface
|
|
43 |
*
|
44 |
* @throws \InvalidArgumentException if the stream is not readable
|
45 |
*/
|
46 |
-
public function addStream(\PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface $stream)
|
47 |
{
|
48 |
if (!$stream->isReadable()) {
|
49 |
throw new \InvalidArgumentException('Each stream must be readable');
|
@@ -54,16 +60,14 @@ class AppendStream implements \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface
|
|
54 |
}
|
55 |
$this->streams[] = $stream;
|
56 |
}
|
57 |
-
public function getContents()
|
58 |
{
|
59 |
return \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Utils::copyToString($this);
|
60 |
}
|
61 |
/**
|
62 |
* Closes each attached stream.
|
63 |
-
*
|
64 |
-
* {@inheritdoc}
|
65 |
*/
|
66 |
-
public function close()
|
67 |
{
|
68 |
$this->pos = $this->current = 0;
|
69 |
$this->seekable = \true;
|
@@ -76,8 +80,6 @@ class AppendStream implements \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface
|
|
76 |
* Detaches each attached stream.
|
77 |
*
|
78 |
* Returns null as it's not clear which underlying stream resource to return.
|
79 |
-
*
|
80 |
-
* {@inheritdoc}
|
81 |
*/
|
82 |
public function detach()
|
83 |
{
|
@@ -89,7 +91,7 @@ class AppendStream implements \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface
|
|
89 |
$this->streams = [];
|
90 |
return null;
|
91 |
}
|
92 |
-
public function tell()
|
93 |
{
|
94 |
return $this->pos;
|
95 |
}
|
@@ -98,10 +100,8 @@ class AppendStream implements \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface
|
|
98 |
*
|
99 |
* If any of the streams do not return a valid number, then the size of the
|
100 |
* append stream cannot be determined and null is returned.
|
101 |
-
*
|
102 |
-
* {@inheritdoc}
|
103 |
*/
|
104 |
-
public function getSize()
|
105 |
{
|
106 |
$size = 0;
|
107 |
foreach ($this->streams as $stream) {
|
@@ -113,20 +113,18 @@ class AppendStream implements \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface
|
|
113 |
}
|
114 |
return $size;
|
115 |
}
|
116 |
-
public function eof()
|
117 |
{
|
118 |
return !$this->streams || $this->current >= \count($this->streams) - 1 && $this->streams[$this->current]->eof();
|
119 |
}
|
120 |
-
public function rewind()
|
121 |
{
|
122 |
$this->seek(0);
|
123 |
}
|
124 |
/**
|
125 |
* Attempts to seek to the given position. Only supports SEEK_SET.
|
126 |
-
*
|
127 |
-
* {@inheritdoc}
|
128 |
*/
|
129 |
-
public function seek($offset, $whence = \SEEK_SET)
|
130 |
{
|
131 |
if (!$this->seekable) {
|
132 |
throw new \RuntimeException('This AppendStream is not seekable');
|
@@ -152,10 +150,8 @@ class AppendStream implements \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface
|
|
152 |
}
|
153 |
/**
|
154 |
* Reads from all of the appended streams until the length is met or EOF.
|
155 |
-
*
|
156 |
-
* {@inheritdoc}
|
157 |
*/
|
158 |
-
public function read($length)
|
159 |
{
|
160 |
$buffer = '';
|
161 |
$total = \count($this->streams) - 1;
|
@@ -171,8 +167,7 @@ class AppendStream implements \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface
|
|
171 |
$this->current++;
|
172 |
}
|
173 |
$result = $this->streams[$this->current]->read($remaining);
|
174 |
-
|
175 |
-
if ($result == null) {
|
176 |
$progressToNext = \true;
|
177 |
continue;
|
178 |
}
|
@@ -182,22 +177,27 @@ class AppendStream implements \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface
|
|
182 |
$this->pos += \strlen($buffer);
|
183 |
return $buffer;
|
184 |
}
|
185 |
-
public function isReadable()
|
186 |
{
|
187 |
return \true;
|
188 |
}
|
189 |
-
public function isWritable()
|
190 |
{
|
191 |
return \false;
|
192 |
}
|
193 |
-
public function isSeekable()
|
194 |
{
|
195 |
return $this->seekable;
|
196 |
}
|
197 |
-
public function write($string)
|
198 |
{
|
199 |
throw new \RuntimeException('Cannot write to an AppendStream');
|
200 |
}
|
|
|
|
|
|
|
|
|
|
|
201 |
public function getMetadata($key = null)
|
202 |
{
|
203 |
return $key ? null : [];
|
1 |
<?php
|
2 |
|
3 |
+
declare (strict_types=1);
|
4 |
namespace PYS_PRO_GLOBAL\GuzzleHttp\Psr7;
|
5 |
|
6 |
use PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface;
|
8 |
* Reads from multiple streams, one after the other.
|
9 |
*
|
10 |
* This is a read-only stream decorator.
|
|
|
|
|
11 |
*/
|
12 |
+
final class AppendStream implements \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface
|
13 |
{
|
14 |
/** @var StreamInterface[] Streams being decorated */
|
15 |
private $streams = [];
|
16 |
+
/** @var bool */
|
17 |
private $seekable = \true;
|
18 |
+
/** @var int */
|
19 |
private $current = 0;
|
20 |
+
/** @var int */
|
21 |
private $pos = 0;
|
22 |
/**
|
23 |
* @param StreamInterface[] $streams Streams to decorate. Each stream must
|
29 |
$this->addStream($stream);
|
30 |
}
|
31 |
}
|
32 |
+
public function __toString() : string
|
33 |
{
|
34 |
try {
|
35 |
$this->rewind();
|
36 |
return $this->getContents();
|
37 |
+
} catch (\Throwable $e) {
|
38 |
+
if (\PHP_VERSION_ID >= 70400) {
|
39 |
+
throw $e;
|
40 |
+
}
|
41 |
+
\trigger_error(\sprintf('%s::__toString exception: %s', self::class, (string) $e), \E_USER_ERROR);
|
42 |
return '';
|
43 |
}
|
44 |
}
|
49 |
*
|
50 |
* @throws \InvalidArgumentException if the stream is not readable
|
51 |
*/
|
52 |
+
public function addStream(\PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface $stream) : void
|
53 |
{
|
54 |
if (!$stream->isReadable()) {
|
55 |
throw new \InvalidArgumentException('Each stream must be readable');
|
60 |
}
|
61 |
$this->streams[] = $stream;
|
62 |
}
|
63 |
+
public function getContents() : string
|
64 |
{
|
65 |
return \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Utils::copyToString($this);
|
66 |
}
|
67 |
/**
|
68 |
* Closes each attached stream.
|
|
|
|
|
69 |
*/
|
70 |
+
public function close() : void
|
71 |
{
|
72 |
$this->pos = $this->current = 0;
|
73 |
$this->seekable = \true;
|
80 |
* Detaches each attached stream.
|
81 |
*
|
82 |
* Returns null as it's not clear which underlying stream resource to return.
|
|
|
|
|
83 |
*/
|
84 |
public function detach()
|
85 |
{
|
91 |
$this->streams = [];
|
92 |
return null;
|
93 |
}
|
94 |
+
public function tell() : int
|
95 |
{
|
96 |
return $this->pos;
|
97 |
}
|
100 |
*
|
101 |
* If any of the streams do not return a valid number, then the size of the
|
102 |
* append stream cannot be determined and null is returned.
|
|
|
|
|
103 |
*/
|
104 |
+
public function getSize() : ?int
|
105 |
{
|
106 |
$size = 0;
|
107 |
foreach ($this->streams as $stream) {
|
113 |
}
|
114 |
return $size;
|
115 |
}
|
116 |
+
public function eof() : bool
|
117 |
{
|
118 |
return !$this->streams || $this->current >= \count($this->streams) - 1 && $this->streams[$this->current]->eof();
|
119 |
}
|
120 |
+
public function rewind() : void
|
121 |
{
|
122 |
$this->seek(0);
|
123 |
}
|
124 |
/**
|
125 |
* Attempts to seek to the given position. Only supports SEEK_SET.
|
|
|
|
|
126 |
*/
|
127 |
+
public function seek($offset, $whence = \SEEK_SET) : void
|
128 |
{
|
129 |
if (!$this->seekable) {
|
130 |
throw new \RuntimeException('This AppendStream is not seekable');
|
150 |
}
|
151 |
/**
|
152 |
* Reads from all of the appended streams until the length is met or EOF.
|
|
|
|
|
153 |
*/
|
154 |
+
public function read($length) : string
|
155 |
{
|
156 |
$buffer = '';
|
157 |
$total = \count($this->streams) - 1;
|
167 |
$this->current++;
|
168 |
}
|
169 |
$result = $this->streams[$this->current]->read($remaining);
|
170 |
+
if ($result === '') {
|
|
|
171 |
$progressToNext = \true;
|
172 |
continue;
|
173 |
}
|
177 |
$this->pos += \strlen($buffer);
|
178 |
return $buffer;
|
179 |
}
|
180 |
+
public function isReadable() : bool
|
181 |
{
|
182 |
return \true;
|
183 |
}
|
184 |
+
public function isWritable() : bool
|
185 |
{
|
186 |
return \false;
|
187 |
}
|
188 |
+
public function isSeekable() : bool
|
189 |
{
|
190 |
return $this->seekable;
|
191 |
}
|
192 |
+
public function write($string) : int
|
193 |
{
|
194 |
throw new \RuntimeException('Cannot write to an AppendStream');
|
195 |
}
|
196 |
+
/**
|
197 |
+
* {@inheritdoc}
|
198 |
+
*
|
199 |
+
* @return mixed
|
200 |
+
*/
|
201 |
public function getMetadata($key = null)
|
202 |
{
|
203 |
return $key ? null : [];
|
vendor_prefix/guzzlehttp/psr7/src/BufferStream.php
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
<?php
|
2 |
|
|
|
3 |
namespace PYS_PRO_GLOBAL\GuzzleHttp\Psr7;
|
4 |
|
5 |
use PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface;
|
@@ -10,35 +11,35 @@ use PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface;
|
|
10 |
* This stream returns a "hwm" metadata value that tells upstream consumers
|
11 |
* what the configured high water mark of the stream is, or the maximum
|
12 |
* preferred size of the buffer.
|
13 |
-
*
|
14 |
-
* @final
|
15 |
*/
|
16 |
-
class BufferStream implements \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface
|
17 |
{
|
|
|
18 |
private $hwm;
|
|
|
19 |
private $buffer = '';
|
20 |
/**
|
21 |
* @param int $hwm High water mark, representing the preferred maximum
|
22 |
* buffer size. If the size of the buffer exceeds the high
|
23 |
* water mark, then calls to write will continue to succeed
|
24 |
-
* but will return
|
25 |
* until the buffer has been drained by reading from it.
|
26 |
*/
|
27 |
-
public function __construct($hwm = 16384)
|
28 |
{
|
29 |
$this->hwm = $hwm;
|
30 |
}
|
31 |
-
public function __toString()
|
32 |
{
|
33 |
return $this->getContents();
|
34 |
}
|
35 |
-
public function getContents()
|
36 |
{
|
37 |
$buffer = $this->buffer;
|
38 |
$this->buffer = '';
|
39 |
return $buffer;
|
40 |
}
|
41 |
-
public function close()
|
42 |
{
|
43 |
$this->buffer = '';
|
44 |
}
|
@@ -47,42 +48,42 @@ class BufferStream implements \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface
|
|
47 |
$this->close();
|
48 |
return null;
|
49 |
}
|
50 |
-
public function getSize()
|
51 |
{
|
52 |
return \strlen($this->buffer);
|
53 |
}
|
54 |
-
public function isReadable()
|
55 |
{
|
56 |
return \true;
|
57 |
}
|
58 |
-
public function isWritable()
|
59 |
{
|
60 |
return \true;
|
61 |
}
|
62 |
-
public function isSeekable()
|
63 |
{
|
64 |
return \false;
|
65 |
}
|
66 |
-
public function rewind()
|
67 |
{
|
68 |
$this->seek(0);
|
69 |
}
|
70 |
-
public function seek($offset, $whence = \SEEK_SET)
|
71 |
{
|
72 |
throw new \RuntimeException('Cannot seek a BufferStream');
|
73 |
}
|
74 |
-
public function eof()
|
75 |
{
|
76 |
return \strlen($this->buffer) === 0;
|
77 |
}
|
78 |
-
public function tell()
|
79 |
{
|
80 |
throw new \RuntimeException('Cannot determine the position of a BufferStream');
|
81 |
}
|
82 |
/**
|
83 |
* Reads data from the buffer.
|
84 |
*/
|
85 |
-
public function read($length)
|
86 |
{
|
87 |
$currentLength = \strlen($this->buffer);
|
88 |
if ($length >= $currentLength) {
|
@@ -99,18 +100,22 @@ class BufferStream implements \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface
|
|
99 |
/**
|
100 |
* Writes data to the buffer.
|
101 |
*/
|
102 |
-
public function write($string)
|
103 |
{
|
104 |
$this->buffer .= $string;
|
105 |
-
// TODO: What should happen here?
|
106 |
if (\strlen($this->buffer) >= $this->hwm) {
|
107 |
-
return
|
108 |
}
|
109 |
return \strlen($string);
|
110 |
}
|
|
|
|
|
|
|
|
|
|
|
111 |
public function getMetadata($key = null)
|
112 |
{
|
113 |
-
if ($key
|
114 |
return $this->hwm;
|
115 |
}
|
116 |
return $key ? null : [];
|
1 |
<?php
|
2 |
|
3 |
+
declare (strict_types=1);
|
4 |
namespace PYS_PRO_GLOBAL\GuzzleHttp\Psr7;
|
5 |
|
6 |
use PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface;
|
11 |
* This stream returns a "hwm" metadata value that tells upstream consumers
|
12 |
* what the configured high water mark of the stream is, or the maximum
|
13 |
* preferred size of the buffer.
|
|
|
|
|
14 |
*/
|
15 |
+
final class BufferStream implements \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface
|
16 |
{
|
17 |
+
/** @var int */
|
18 |
private $hwm;
|
19 |
+
/** @var string */
|
20 |
private $buffer = '';
|
21 |
/**
|
22 |
* @param int $hwm High water mark, representing the preferred maximum
|
23 |
* buffer size. If the size of the buffer exceeds the high
|
24 |
* water mark, then calls to write will continue to succeed
|
25 |
+
* but will return 0 to inform writers to slow down
|
26 |
* until the buffer has been drained by reading from it.
|
27 |
*/
|
28 |
+
public function __construct(int $hwm = 16384)
|
29 |
{
|
30 |
$this->hwm = $hwm;
|
31 |
}
|
32 |
+
public function __toString() : string
|
33 |
{
|
34 |
return $this->getContents();
|
35 |
}
|
36 |
+
public function getContents() : string
|
37 |
{
|
38 |
$buffer = $this->buffer;
|
39 |
$this->buffer = '';
|
40 |
return $buffer;
|
41 |
}
|
42 |
+
public function close() : void
|
43 |
{
|
44 |
$this->buffer = '';
|
45 |
}
|
48 |
$this->close();
|
49 |
return null;
|
50 |
}
|
51 |
+
public function getSize() : ?int
|
52 |
{
|
53 |
return \strlen($this->buffer);
|
54 |
}
|
55 |
+
public function isReadable() : bool
|
56 |
{
|
57 |
return \true;
|
58 |
}
|
59 |
+
public function isWritable() : bool
|
60 |
{
|
61 |
return \true;
|
62 |
}
|
63 |
+
public function isSeekable() : bool
|
64 |
{
|
65 |
return \false;
|
66 |
}
|
67 |
+
public function rewind() : void
|
68 |
{
|
69 |
$this->seek(0);
|
70 |
}
|
71 |
+
public function seek($offset, $whence = \SEEK_SET) : void
|
72 |
{
|
73 |
throw new \RuntimeException('Cannot seek a BufferStream');
|
74 |
}
|
75 |
+
public function eof() : bool
|
76 |
{
|
77 |
return \strlen($this->buffer) === 0;
|
78 |
}
|
79 |
+
public function tell() : int
|
80 |
{
|
81 |
throw new \RuntimeException('Cannot determine the position of a BufferStream');
|
82 |
}
|
83 |
/**
|
84 |
* Reads data from the buffer.
|
85 |
*/
|
86 |
+
public function read($length) : string
|
87 |
{
|
88 |
$currentLength = \strlen($this->buffer);
|
89 |
if ($length >= $currentLength) {
|
100 |
/**
|
101 |
* Writes data to the buffer.
|
102 |
*/
|
103 |
+
public function write($string) : int
|
104 |
{
|
105 |
$this->buffer .= $string;
|
|
|
106 |
if (\strlen($this->buffer) >= $this->hwm) {
|
107 |
+
return 0;
|
108 |
}
|
109 |
return \strlen($string);
|
110 |
}
|
111 |
+
/**
|
112 |
+
* {@inheritdoc}
|
113 |
+
*
|
114 |
+
* @return mixed
|
115 |
+
*/
|
116 |
public function getMetadata($key = null)
|
117 |
{
|
118 |
+
if ($key === 'hwm') {
|
119 |
return $this->hwm;
|
120 |
}
|
121 |
return $key ? null : [];
|
vendor_prefix/guzzlehttp/psr7/src/CachingStream.php
CHANGED
@@ -1,15 +1,14 @@
|
|
1 |
<?php
|
2 |
|
|
|
3 |
namespace PYS_PRO_GLOBAL\GuzzleHttp\Psr7;
|
4 |
|
5 |
use PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface;
|
6 |
/**
|
7 |
* Stream decorator that can cache previously read bytes from a sequentially
|
8 |
* read stream.
|
9 |
-
*
|
10 |
-
* @final
|
11 |
*/
|
12 |
-
class CachingStream implements \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface
|
13 |
{
|
14 |
use StreamDecoratorTrait;
|
15 |
/** @var StreamInterface Stream being wrapped */
|
@@ -27,21 +26,25 @@ class CachingStream implements \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface
|
|
27 |
$this->remoteStream = $stream;
|
28 |
$this->stream = $target ?: new \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Stream(\PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Utils::tryFopen('php://temp', 'r+'));
|
29 |
}
|
30 |
-
public function getSize()
|
31 |
{
|
32 |
-
|
|
|
|
|
|
|
|
|
33 |
}
|
34 |
-
public function rewind()
|
35 |
{
|
36 |
$this->seek(0);
|
37 |
}
|
38 |
-
public function seek($offset, $whence = \SEEK_SET)
|
39 |
{
|
40 |
-
if ($whence
|
41 |
$byte = $offset;
|
42 |
-
} elseif ($whence
|
43 |
$byte = $offset + $this->tell();
|
44 |
-
} elseif ($whence
|
45 |
$size = $this->remoteStream->getSize();
|
46 |
if ($size === null) {
|
47 |
$size = $this->cacheEntireStream();
|
@@ -63,7 +66,7 @@ class CachingStream implements \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface
|
|
63 |
$this->stream->seek($byte);
|
64 |
}
|
65 |
}
|
66 |
-
public function read($length)
|
67 |
{
|
68 |
// Perform a regular read on any previously read data from the buffer
|
69 |
$data = $this->stream->read($length);
|
@@ -85,7 +88,7 @@ class CachingStream implements \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface
|
|
85 |
}
|
86 |
return $data;
|
87 |
}
|
88 |
-
public function write($string)
|
89 |
{
|
90 |
// When appending to the end of the currently read stream, you'll want
|
91 |
// to skip bytes from being read from the remote stream to emulate
|
@@ -97,18 +100,19 @@ class CachingStream implements \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface
|
|
97 |
}
|
98 |
return $this->stream->write($string);
|
99 |
}
|
100 |
-
public function eof()
|
101 |
{
|
102 |
return $this->stream->eof() && $this->remoteStream->eof();
|
103 |
}
|
104 |
/**
|
105 |
* Close both the remote stream and buffer stream
|
106 |
*/
|
107 |
-
public function close()
|
108 |
{
|
109 |
-
$this->remoteStream->close()
|
|
|
110 |
}
|
111 |
-
private function cacheEntireStream()
|
112 |
{
|
113 |
$target = new \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\FnStream(['write' => 'strlen']);
|
114 |
\PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Utils::copyToStream($this, $target);
|
1 |
<?php
|
2 |
|
3 |
+
declare (strict_types=1);
|
4 |
namespace PYS_PRO_GLOBAL\GuzzleHttp\Psr7;
|
5 |
|
6 |
use PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface;
|
7 |
/**
|
8 |
* Stream decorator that can cache previously read bytes from a sequentially
|
9 |
* read stream.
|
|
|
|
|
10 |
*/
|
11 |
+
final class CachingStream implements \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface
|
12 |
{
|
13 |
use StreamDecoratorTrait;
|
14 |
/** @var StreamInterface Stream being wrapped */
|
26 |
$this->remoteStream = $stream;
|
27 |
$this->stream = $target ?: new \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Stream(\PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Utils::tryFopen('php://temp', 'r+'));
|
28 |
}
|
29 |
+
public function getSize() : ?int
|
30 |
{
|
31 |
+
$remoteSize = $this->remoteStream->getSize();
|
32 |
+
if (null === $remoteSize) {
|
33 |
+
return null;
|
34 |
+
}
|
35 |
+
return \max($this->stream->getSize(), $remoteSize);
|
36 |
}
|
37 |
+
public function rewind() : void
|
38 |
{
|
39 |
$this->seek(0);
|
40 |
}
|
41 |
+
public function seek($offset, $whence = \SEEK_SET) : void
|
42 |
{
|
43 |
+
if ($whence === \SEEK_SET) {
|
44 |
$byte = $offset;
|
45 |
+
} elseif ($whence === \SEEK_CUR) {
|
46 |
$byte = $offset + $this->tell();
|
47 |
+
} elseif ($whence === \SEEK_END) {
|
48 |
$size = $this->remoteStream->getSize();
|
49 |
if ($size === null) {
|
50 |
$size = $this->cacheEntireStream();
|
66 |
$this->stream->seek($byte);
|
67 |
}
|
68 |
}
|
69 |
+
public function read($length) : string
|
70 |
{
|
71 |
// Perform a regular read on any previously read data from the buffer
|
72 |
$data = $this->stream->read($length);
|
88 |
}
|
89 |
return $data;
|
90 |
}
|
91 |
+
public function write($string) : int
|
92 |
{
|
93 |
// When appending to the end of the currently read stream, you'll want
|
94 |
// to skip bytes from being read from the remote stream to emulate
|
100 |
}
|
101 |
return $this->stream->write($string);
|
102 |
}
|
103 |
+
public function eof() : bool
|
104 |
{
|
105 |
return $this->stream->eof() && $this->remoteStream->eof();
|
106 |
}
|
107 |
/**
|
108 |
* Close both the remote stream and buffer stream
|
109 |
*/
|
110 |
+
public function close() : void
|
111 |
{
|
112 |
+
$this->remoteStream->close();
|
113 |
+
$this->stream->close();
|
114 |
}
|
115 |
+
private function cacheEntireStream() : int
|
116 |
{
|
117 |
$target = new \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\FnStream(['write' => 'strlen']);
|
118 |
\PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Utils::copyToStream($this, $target);
|
vendor_prefix/guzzlehttp/psr7/src/DroppingStream.php
CHANGED
@@ -1,28 +1,28 @@
|
|
1 |
<?php
|
2 |
|
|
|
3 |
namespace PYS_PRO_GLOBAL\GuzzleHttp\Psr7;
|
4 |
|
5 |
use PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface;
|
6 |
/**
|
7 |
* Stream decorator that begins dropping data once the size of the underlying
|
8 |
* stream becomes too full.
|
9 |
-
*
|
10 |
-
* @final
|
11 |
*/
|
12 |
-
class DroppingStream implements \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface
|
13 |
{
|
14 |
use StreamDecoratorTrait;
|
|
|
15 |
private $maxLength;
|
16 |
/**
|
17 |
* @param StreamInterface $stream Underlying stream to decorate.
|
18 |
* @param int $maxLength Maximum size before dropping data.
|
19 |
*/
|
20 |
-
public function __construct(\PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface $stream, $maxLength)
|
21 |
{
|
22 |
$this->stream = $stream;
|
23 |
$this->maxLength = $maxLength;
|
24 |
}
|
25 |
-
public function write($string)
|
26 |
{
|
27 |
$diff = $this->maxLength - $this->stream->getSize();
|
28 |
// Begin returning 0 when the underlying stream is too large.
|
1 |
<?php
|
2 |
|
3 |
+
declare (strict_types=1);
|
4 |
namespace PYS_PRO_GLOBAL\GuzzleHttp\Psr7;
|
5 |
|
6 |
use PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface;
|
7 |
/**
|
8 |
* Stream decorator that begins dropping data once the size of the underlying
|
9 |
* stream becomes too full.
|
|
|
|
|
10 |
*/
|
11 |
+
final class DroppingStream implements \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface
|
12 |
{
|
13 |
use StreamDecoratorTrait;
|
14 |
+
/** @var int */
|
15 |
private $maxLength;
|
16 |
/**
|
17 |
* @param StreamInterface $stream Underlying stream to decorate.
|
18 |
* @param int $maxLength Maximum size before dropping data.
|
19 |
*/
|
20 |
+
public function __construct(\PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface $stream, int $maxLength)
|
21 |
{
|
22 |
$this->stream = $stream;
|
23 |
$this->maxLength = $maxLength;
|
24 |
}
|
25 |
+
public function write($string) : int
|
26 |
{
|
27 |
$diff = $this->maxLength - $this->stream->getSize();
|
28 |
// Begin returning 0 when the underlying stream is too large.
|
vendor_prefix/guzzlehttp/psr7/src/Exception/MalformedUriException.php
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
declare (strict_types=1);
|
4 |
+
namespace PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Exception;
|
5 |
+
|
6 |
+
use InvalidArgumentException;
|
7 |
+
/**
|
8 |
+
* Exception thrown if a URI cannot be parsed because it's malformed.
|
9 |
+
*/
|
10 |
+
class MalformedUriException extends \InvalidArgumentException
|
11 |
+
{
|
12 |
+
}
|
vendor_prefix/guzzlehttp/psr7/src/FnStream.php
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
<?php
|
2 |
|
|
|
3 |
namespace PYS_PRO_GLOBAL\GuzzleHttp\Psr7;
|
4 |
|
5 |
use PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface;
|
@@ -8,17 +9,14 @@ use PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface;
|
|
8 |
*
|
9 |
* Allows for easy testing and extension of a provided stream without needing
|
10 |
* to create a concrete class for a simple extension point.
|
11 |
-
*
|
12 |
-
* @final
|
13 |
*/
|
14 |
-
class FnStream implements \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface
|
15 |
{
|
16 |
-
|
|
|
17 |
private $methods;
|
18 |
-
/** @var array Methods that must be implemented in the given array */
|
19 |
-
private static $slots = ['__toString', 'close', 'detach', 'rewind', 'getSize', 'tell', 'eof', 'isSeekable', 'seek', 'isWritable', 'write', 'isReadable', 'read', 'getContents', 'getMetadata'];
|
20 |
/**
|
21 |
-
* @param array $methods Hash of method name to a callable.
|
22 |
*/
|
23 |
public function __construct(array $methods)
|
24 |
{
|
@@ -33,7 +31,7 @@ class FnStream implements \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface
|
|
33 |
*
|
34 |
* @throws \BadMethodCallException
|
35 |
*/
|
36 |
-
public function __get($name)
|
37 |
{
|
38 |
throw new \BadMethodCallException(\str_replace('_fn_', '', $name) . '() is not implemented in the FnStream');
|
39 |
}
|
@@ -51,7 +49,7 @@ class FnStream implements \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface
|
|
51 |
*
|
52 |
* @throws \LogicException
|
53 |
*/
|
54 |
-
public function __wakeup()
|
55 |
{
|
56 |
throw new \LogicException('FnStream should never be unserialized');
|
57 |
}
|
@@ -59,8 +57,8 @@ class FnStream implements \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface
|
|
59 |
* Adds custom functionality to an underlying stream by intercepting
|
60 |
* specific method calls.
|
61 |
*
|
62 |
-
* @param StreamInterface
|
63 |
-
* @param array
|
64 |
*
|
65 |
* @return FnStream
|
66 |
*/
|
@@ -68,67 +66,82 @@ class FnStream implements \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface
|
|
68 |
{
|
69 |
// If any of the required methods were not provided, then simply
|
70 |
// proxy to the decorated stream.
|
71 |
-
foreach (\array_diff(self
|
72 |
-
|
|
|
|
|
73 |
}
|
74 |
return new self($methods);
|
75 |
}
|
76 |
-
public function __toString()
|
77 |
{
|
78 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
79 |
}
|
80 |
-
public function close()
|
81 |
{
|
82 |
-
|
83 |
}
|
84 |
public function detach()
|
85 |
{
|
86 |
return \call_user_func($this->_fn_detach);
|
87 |
}
|
88 |
-
public function getSize()
|
89 |
{
|
90 |
return \call_user_func($this->_fn_getSize);
|
91 |
}
|
92 |
-
public function tell()
|
93 |
{
|
94 |
return \call_user_func($this->_fn_tell);
|
95 |
}
|
96 |
-
public function eof()
|
97 |
{
|
98 |
return \call_user_func($this->_fn_eof);
|
99 |
}
|
100 |
-
public function isSeekable()
|
101 |
{
|
102 |
return \call_user_func($this->_fn_isSeekable);
|
103 |
}
|
104 |
-
public function rewind()
|
105 |
{
|
106 |
\call_user_func($this->_fn_rewind);
|
107 |
}
|
108 |
-
public function seek($offset, $whence = \SEEK_SET)
|
109 |
{
|
110 |
\call_user_func($this->_fn_seek, $offset, $whence);
|
111 |
}
|
112 |
-
public function isWritable()
|
113 |
{
|
114 |
return \call_user_func($this->_fn_isWritable);
|
115 |
}
|
116 |
-
public function write($string)
|
117 |
{
|
118 |
return \call_user_func($this->_fn_write, $string);
|
119 |
}
|
120 |
-
public function isReadable()
|
121 |
{
|
122 |
return \call_user_func($this->_fn_isReadable);
|
123 |
}
|
124 |
-
public function read($length)
|
125 |
{
|
126 |
return \call_user_func($this->_fn_read, $length);
|
127 |
}
|
128 |
-
public function getContents()
|
129 |
{
|
130 |
return \call_user_func($this->_fn_getContents);
|
131 |
}
|
|
|
|
|
|
|
|
|
|
|
132 |
public function getMetadata($key = null)
|
133 |
{
|
134 |
return \call_user_func($this->_fn_getMetadata, $key);
|
1 |
<?php
|
2 |
|
3 |
+
declare (strict_types=1);
|
4 |
namespace PYS_PRO_GLOBAL\GuzzleHttp\Psr7;
|
5 |
|
6 |
use PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface;
|
9 |
*
|
10 |
* Allows for easy testing and extension of a provided stream without needing
|
11 |
* to create a concrete class for a simple extension point.
|
|
|
|
|
12 |
*/
|
13 |
+
final class FnStream implements \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface
|
14 |
{
|
15 |
+
private const SLOTS = ['__toString', 'close', 'detach', 'rewind', 'getSize', 'tell', 'eof', 'isSeekable', 'seek', 'isWritable', 'write', 'isReadable', 'read', 'getContents', 'getMetadata'];
|
16 |
+
/** @var array<string, callable> */
|
17 |
private $methods;
|
|
|
|
|
18 |
/**
|
19 |
+
* @param array<string, callable> $methods Hash of method name to a callable.
|
20 |
*/
|
21 |
public function __construct(array $methods)
|
22 |
{
|
31 |
*
|
32 |
* @throws \BadMethodCallException
|
33 |
*/
|
34 |
+
public function __get(string $name) : void
|
35 |
{
|
36 |
throw new \BadMethodCallException(\str_replace('_fn_', '', $name) . '() is not implemented in the FnStream');
|
37 |
}
|
49 |
*
|
50 |
* @throws \LogicException
|
51 |
*/
|
52 |
+
public function __wakeup() : void
|
53 |
{
|
54 |
throw new \LogicException('FnStream should never be unserialized');
|
55 |
}
|
57 |
* Adds custom functionality to an underlying stream by intercepting
|
58 |
* specific method calls.
|
59 |
*
|
60 |
+
* @param StreamInterface $stream Stream to decorate
|
61 |
+
* @param array<string, callable> $methods Hash of method name to a closure
|
62 |
*
|
63 |
* @return FnStream
|
64 |
*/
|
66 |
{
|
67 |
// If any of the required methods were not provided, then simply
|
68 |
// proxy to the decorated stream.
|
69 |
+
foreach (\array_diff(self::SLOTS, \array_keys($methods)) as $diff) {
|
70 |
+
/** @var callable $callable */
|
71 |
+
$callable = [$stream, $diff];
|
72 |
+
$methods[$diff] = $callable;
|
73 |
}
|
74 |
return new self($methods);
|
75 |
}
|
76 |
+
public function __toString() : string
|
77 |
{
|
78 |
+
try {
|
79 |
+
return \call_user_func($this->_fn___toString);
|
80 |
+
} catch (\Throwable $e) {
|
81 |
+
if (\PHP_VERSION_ID >= 70400) {
|
82 |
+
throw $e;
|
83 |
+
}
|
84 |
+
\trigger_error(\sprintf('%s::__toString exception: %s', self::class, (string) $e), \E_USER_ERROR);
|
85 |
+
return '';
|
86 |
+
}
|
87 |
}
|
88 |
+
public function close() : void
|
89 |
{
|
90 |
+
\call_user_func($this->_fn_close);
|
91 |
}
|
92 |
public function detach()
|
93 |
{
|
94 |
return \call_user_func($this->_fn_detach);
|
95 |
}
|
96 |
+
public function getSize() : ?int
|
97 |
{
|
98 |
return \call_user_func($this->_fn_getSize);
|
99 |
}
|
100 |
+
public function tell() : int
|
101 |
{
|
102 |
return \call_user_func($this->_fn_tell);
|
103 |
}
|
104 |
+
public function eof() : bool
|
105 |
{
|
106 |
return \call_user_func($this->_fn_eof);
|
107 |
}
|
108 |
+
public function isSeekable() : bool
|
109 |
{
|
110 |
return \call_user_func($this->_fn_isSeekable);
|
111 |
}
|
112 |
+
public function rewind() : void
|
113 |
{
|
114 |
\call_user_func($this->_fn_rewind);
|
115 |
}
|
116 |
+
public function seek($offset, $whence = \SEEK_SET) : void
|
117 |
{
|
118 |
\call_user_func($this->_fn_seek, $offset, $whence);
|
119 |
}
|
120 |
+
public function isWritable() : bool
|
121 |
{
|
122 |
return \call_user_func($this->_fn_isWritable);
|
123 |
}
|
124 |
+
public function write($string) : int
|
125 |
{
|
126 |
return \call_user_func($this->_fn_write, $string);
|
127 |
}
|
128 |
+
public function isReadable() : bool
|
129 |
{
|
130 |
return \call_user_func($this->_fn_isReadable);
|
131 |
}
|
132 |
+
public function read($length) : string
|
133 |
{
|
134 |
return \call_user_func($this->_fn_read, $length);
|
135 |
}
|
136 |
+
public function getContents() : string
|
137 |
{
|
138 |
return \call_user_func($this->_fn_getContents);
|
139 |
}
|
140 |
+
/**
|
141 |
+
* {@inheritdoc}
|
142 |
+
*
|
143 |
+
* @return mixed
|
144 |
+
*/
|
145 |
public function getMetadata($key = null)
|
146 |
{
|
147 |
return \call_user_func($this->_fn_getMetadata, $key);
|
vendor_prefix/guzzlehttp/psr7/src/Header.php
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
<?php
|
2 |
|
|
|
3 |
namespace PYS_PRO_GLOBAL\GuzzleHttp\Psr7;
|
4 |
|
5 |
final class Header
|
@@ -11,10 +12,8 @@ final class Header
|
|
11 |
* contains a key, this function will inject a key with a '' string value.
|
12 |
*
|
13 |
* @param string|array $header Header to parse into components.
|
14 |
-
*
|
15 |
-
* @return array Returns the parsed header values.
|
16 |
*/
|
17 |
-
public static function parse($header)
|
18 |
{
|
19 |
static $trimmed = "\"' \n\t\r";
|
20 |
$params = $matches = [];
|
@@ -41,10 +40,8 @@ final class Header
|
|
41 |
* headers into an array of headers with no comma separated values.
|
42 |
*
|
43 |
* @param string|array $header Header to normalize.
|
44 |
-
*
|
45 |
-
* @return array Returns the normalized header field values.
|
46 |
*/
|
47 |
-
public static function normalize($header)
|
48 |
{
|
49 |
if (!\is_array($header)) {
|
50 |
return \array_map('trim', \explode(',', $header));
|
1 |
<?php
|
2 |
|
3 |
+
declare (strict_types=1);
|
4 |
namespace PYS_PRO_GLOBAL\GuzzleHttp\Psr7;
|
5 |
|
6 |
final class Header
|
12 |
* contains a key, this function will inject a key with a '' string value.
|
13 |
*
|
14 |
* @param string|array $header Header to parse into components.
|
|
|
|
|
15 |
*/
|
16 |
+
public static function parse($header) : array
|
17 |
{
|
18 |
static $trimmed = "\"' \n\t\r";
|
19 |
$params = $matches = [];
|
40 |
* headers into an array of headers with no comma separated values.
|
41 |
*
|
42 |
* @param string|array $header Header to normalize.
|
|
|
|
|
43 |
*/
|
44 |
+
public static function normalize($header) : array
|
45 |
{
|
46 |
if (!\is_array($header)) {
|
47 |
return \array_map('trim', \explode(',', $header));
|
vendor_prefix/guzzlehttp/psr7/src/HttpFactory.php
ADDED
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
declare (strict_types=1);
|
4 |
+
namespace PYS_PRO_GLOBAL\GuzzleHttp\Psr7;
|
5 |
+
|
6 |
+
use PYS_PRO_GLOBAL\Psr\Http\Message\RequestFactoryInterface;
|
7 |
+
use PYS_PRO_GLOBAL\Psr\Http\Message\RequestInterface;
|
8 |
+
use PYS_PRO_GLOBAL\Psr\Http\Message\ResponseFactoryInterface;
|
9 |
+
use PYS_PRO_GLOBAL\Psr\Http\Message\ResponseInterface;
|
10 |
+
use PYS_PRO_GLOBAL\Psr\Http\Message\ServerRequestFactoryInterface;
|
11 |
+
use PYS_PRO_GLOBAL\Psr\Http\Message\ServerRequestInterface;
|
12 |
+
use PYS_PRO_GLOBAL\Psr\Http\Message\StreamFactoryInterface;
|
13 |
+
use PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface;
|
14 |
+
use PYS_PRO_GLOBAL\Psr\Http\Message\UploadedFileFactoryInterface;
|
15 |
+
use PYS_PRO_GLOBAL\Psr\Http\Message\UploadedFileInterface;
|
16 |
+
use PYS_PRO_GLOBAL\Psr\Http\Message\UriFactoryInterface;
|
17 |
+
use PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface;
|
18 |
+
/**
|
19 |
+
* Implements all of the PSR-17 interfaces.
|
20 |
+
*
|
21 |
+
* Note: in consuming code it is recommended to require the implemented interfaces
|
22 |
+
* and inject the instance of this class multiple times.
|
23 |
+
*/
|
24 |
+
final class HttpFactory implements \PYS_PRO_GLOBAL\Psr\Http\Message\RequestFactoryInterface, \PYS_PRO_GLOBAL\Psr\Http\Message\ResponseFactoryInterface, \PYS_PRO_GLOBAL\Psr\Http\Message\ServerRequestFactoryInterface, \PYS_PRO_GLOBAL\Psr\Http\Message\StreamFactoryInterface, \PYS_PRO_GLOBAL\Psr\Http\Message\UploadedFileFactoryInterface, \PYS_PRO_GLOBAL\Psr\Http\Message\UriFactoryInterface
|
25 |
+
{
|
26 |
+
public function createUploadedFile(\PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface $stream, int $size = null, int $error = \UPLOAD_ERR_OK, string $clientFilename = null, string $clientMediaType = null) : \PYS_PRO_GLOBAL\Psr\Http\Message\UploadedFileInterface
|
27 |
+
{
|
28 |
+
if ($size === null) {
|
29 |
+
$size = $stream->getSize();
|
30 |
+
}
|
31 |
+
return new \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\UploadedFile($stream, $size, $error, $clientFilename, $clientMediaType);
|
32 |
+
}
|
33 |
+
public function createStream(string $content = '') : \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface
|
34 |
+
{
|
35 |
+
return \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Utils::streamFor($content);
|
36 |
+
}
|
37 |
+
public function createStreamFromFile(string $file, string $mode = 'r') : \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface
|
38 |
+
{
|
39 |
+
try {
|
40 |
+
$resource = \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Utils::tryFopen($file, $mode);
|
41 |
+
} catch (\RuntimeException $e) {
|
42 |
+
if ('' === $mode || \false === \in_array($mode[0], ['r', 'w', 'a', 'x', 'c'], \true)) {
|
43 |
+
throw new \InvalidArgumentException(\sprintf('Invalid file opening mode "%s"', $mode), 0, $e);
|
44 |
+
}
|
45 |
+
throw $e;
|
46 |
+
}
|
47 |
+
return \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Utils::streamFor($resource);
|
48 |
+
}
|
49 |
+
public function createStreamFromResource($resource) : \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface
|
50 |
+
{
|
51 |
+
return \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Utils::streamFor($resource);
|
52 |
+
}
|
53 |
+
public function createServerRequest(string $method, $uri, array $serverParams = []) : \PYS_PRO_GLOBAL\Psr\Http\Message\ServerRequestInterface
|
54 |
+
{
|
55 |
+
if (empty($method)) {
|
56 |
+
if (!empty($serverParams['REQUEST_METHOD'])) {
|
57 |
+
$method = $serverParams['REQUEST_METHOD'];
|
58 |
+
} else {
|
59 |
+
throw new \InvalidArgumentException('Cannot determine HTTP method');
|
60 |
+
}
|
61 |
+
}
|
62 |
+
return new \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\ServerRequest($method, $uri, [], null, '1.1', $serverParams);
|
63 |
+
}
|
64 |
+
public function createResponse(int $code = 200, string $reasonPhrase = '') : \PYS_PRO_GLOBAL\Psr\Http\Message\ResponseInterface
|
65 |
+
{
|
66 |
+
return new \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Response($code, [], null, '1.1', $reasonPhrase);
|
67 |
+
}
|
68 |
+
public function createRequest(string $method, $uri) : \PYS_PRO_GLOBAL\Psr\Http\Message\RequestInterface
|
69 |
+
{
|
70 |
+
return new \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Request($method, $uri);
|
71 |
+
}
|
72 |
+
public function createUri(string $uri = '') : \PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface
|
73 |
+
{
|
74 |
+
return new \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Uri($uri);
|
75 |
+
}
|
76 |
+
}
|
vendor_prefix/guzzlehttp/psr7/src/InflateStream.php
CHANGED
@@ -1,51 +1,31 @@
|
|
1 |
<?php
|
2 |
|
|
|
3 |
namespace PYS_PRO_GLOBAL\GuzzleHttp\Psr7;
|
4 |
|
5 |
use PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface;
|
6 |
/**
|
7 |
-
* Uses PHP's zlib.inflate filter to inflate deflate or gzipped content.
|
8 |
*
|
9 |
-
* This stream decorator
|
10 |
-
* the gzip header, converts the provided stream to a PHP stream resource,
|
11 |
* then appends the zlib.inflate filter. The stream is then converted back
|
12 |
* to a Guzzle stream resource to be used as a Guzzle stream.
|
13 |
*
|
|
|
14 |
* @link http://tools.ietf.org/html/rfc1952
|
15 |
* @link http://php.net/manual/en/filters.compression.php
|
16 |
-
*
|
17 |
-
* @final
|
18 |
*/
|
19 |
-
class InflateStream implements \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface
|
20 |
{
|
21 |
use StreamDecoratorTrait;
|
22 |
public function __construct(\PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface $stream)
|
23 |
{
|
24 |
-
// read the first 10 bytes, ie. gzip header
|
25 |
-
$header = $stream->read(10);
|
26 |
-
$filenameHeaderLength = $this->getLengthOfPossibleFilenameHeader($stream, $header);
|
27 |
-
// Skip the header, that is 10 + length of filename + 1 (nil) bytes
|
28 |
-
$stream = new \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\LimitStream($stream, -1, 10 + $filenameHeaderLength);
|
29 |
$resource = \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\StreamWrapper::getResource($stream);
|
30 |
-
|
|
|
|
|
|
|
|
|
31 |
$this->stream = $stream->isSeekable() ? new \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Stream($resource) : new \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\NoSeekStream(new \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Stream($resource));
|
32 |
}
|
33 |
-
/**
|
34 |
-
* @param StreamInterface $stream
|
35 |
-
* @param $header
|
36 |
-
*
|
37 |
-
* @return int
|
38 |
-
*/
|
39 |
-
private function getLengthOfPossibleFilenameHeader(\PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface $stream, $header)
|
40 |
-
{
|
41 |
-
$filename_header_length = 0;
|
42 |
-
if (\substr(\bin2hex($header), 6, 2) === '08') {
|
43 |
-
// we have a filename, read until nil
|
44 |
-
$filename_header_length = 1;
|
45 |
-
while ($stream->read(1) !== \chr(0)) {
|
46 |
-
$filename_header_length++;
|
47 |
-
}
|
48 |
-
}
|
49 |
-
return $filename_header_length;
|
50 |
-
}
|
51 |
}
|
1 |
<?php
|
2 |
|
3 |
+
declare (strict_types=1);
|
4 |
namespace PYS_PRO_GLOBAL\GuzzleHttp\Psr7;
|
5 |
|
6 |
use PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface;
|
7 |
/**
|
8 |
+
* Uses PHP's zlib.inflate filter to inflate zlib (HTTP deflate, RFC1950) or gzipped (RFC1952) content.
|
9 |
*
|
10 |
+
* This stream decorator converts the provided stream to a PHP stream resource,
|
|
|
11 |
* then appends the zlib.inflate filter. The stream is then converted back
|
12 |
* to a Guzzle stream resource to be used as a Guzzle stream.
|
13 |
*
|
14 |
+
* @link http://tools.ietf.org/html/rfc1950
|
15 |
* @link http://tools.ietf.org/html/rfc1952
|
16 |
* @link http://php.net/manual/en/filters.compression.php
|
|
|
|
|
17 |
*/
|
18 |
+
final class InflateStream implements \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface
|
19 |
{
|
20 |
use StreamDecoratorTrait;
|
21 |
public function __construct(\PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface $stream)
|
22 |
{
|
|
|
|
|
|
|
|
|
|
|
23 |
$resource = \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\StreamWrapper::getResource($stream);
|
24 |
+
// Specify window=15+32, so zlib will use header detection to both gzip (with header) and zlib data
|
25 |
+
// See http://www.zlib.net/manual.html#Advanced definition of inflateInit2
|
26 |
+
// "Add 32 to windowBits to enable zlib and gzip decoding with automatic header detection"
|
27 |
+
// Default window size is 15.
|
28 |
+
\stream_filter_append($resource, 'zlib.inflate', \STREAM_FILTER_READ, ['window' => 15 + 32]);
|
29 |
$this->stream = $stream->isSeekable() ? new \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Stream($resource) : new \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\NoSeekStream(new \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Stream($resource));
|
30 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
}
|
vendor_prefix/guzzlehttp/psr7/src/LazyOpenStream.php
CHANGED
@@ -1,18 +1,17 @@
|
|
1 |
<?php
|
2 |
|
|
|
3 |
namespace PYS_PRO_GLOBAL\GuzzleHttp\Psr7;
|
4 |
|
5 |
use PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface;
|
6 |
/**
|
7 |
* Lazily reads or writes to a file that is opened only after an IO operation
|
8 |
* take place on the stream.
|
9 |
-
*
|
10 |
-
* @final
|
11 |
*/
|
12 |
-
class LazyOpenStream implements \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface
|
13 |
{
|
14 |
use StreamDecoratorTrait;
|
15 |
-
/** @var string
|
16 |
private $filename;
|
17 |
/** @var string */
|
18 |
private $mode;
|
@@ -20,17 +19,15 @@ class LazyOpenStream implements \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface
|
|
20 |
* @param string $filename File to lazily open
|
21 |
* @param string $mode fopen mode to use when opening the stream
|
22 |
*/
|
23 |
-
public function __construct($filename, $mode)
|
24 |
{
|
25 |
$this->filename = $filename;
|
26 |
$this->mode = $mode;
|
27 |
}
|
28 |
/**
|
29 |
* Creates the underlying stream lazily when required.
|
30 |
-
*
|
31 |
-
* @return StreamInterface
|
32 |
*/
|
33 |
-
protected function createStream()
|
34 |
{
|
35 |
return \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Utils::streamFor(\PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Utils::tryFopen($this->filename, $this->mode));
|
36 |
}
|
1 |
<?php
|
2 |
|
3 |
+
declare (strict_types=1);
|
4 |
namespace PYS_PRO_GLOBAL\GuzzleHttp\Psr7;
|
5 |
|
6 |
use PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface;
|
7 |
/**
|
8 |
* Lazily reads or writes to a file that is opened only after an IO operation
|
9 |
* take place on the stream.
|
|
|
|
|
10 |
*/
|
11 |
+
final class LazyOpenStream implements \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface
|
12 |
{
|
13 |
use StreamDecoratorTrait;
|
14 |
+
/** @var string */
|
15 |
private $filename;
|
16 |
/** @var string */
|
17 |
private $mode;
|
19 |
* @param string $filename File to lazily open
|
20 |
* @param string $mode fopen mode to use when opening the stream
|
21 |
*/
|
22 |
+
public function __construct(string $filename, string $mode)
|
23 |
{
|
24 |
$this->filename = $filename;
|
25 |
$this->mode = $mode;
|
26 |
}
|
27 |
/**
|
28 |
* Creates the underlying stream lazily when required.
|
|
|
|
|
29 |
*/
|
30 |
+
protected function createStream() : \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface
|
31 |
{
|
32 |
return \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Utils::streamFor(\PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Utils::tryFopen($this->filename, $this->mode));
|
33 |
}
|
vendor_prefix/guzzlehttp/psr7/src/LimitStream.php
CHANGED
@@ -1,14 +1,13 @@
|
|
1 |
<?php
|
2 |
|
|
|
3 |
namespace PYS_PRO_GLOBAL\GuzzleHttp\Psr7;
|
4 |
|
5 |
use PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface;
|
6 |
/**
|
7 |
* Decorator used to return only a subset of a stream.
|
8 |
-
*
|
9 |
-
* @final
|
10 |
*/
|
11 |
-
class LimitStream implements \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface
|
12 |
{
|
13 |
use StreamDecoratorTrait;
|
14 |
/** @var int Offset to start reading from */
|
@@ -22,33 +21,32 @@ class LimitStream implements \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface
|
|
22 |
* @param int $offset Position to seek to before reading (only
|
23 |
* works on seekable streams).
|
24 |
*/
|
25 |
-
public function __construct(\PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface $stream, $limit = -1, $offset = 0)
|
26 |
{
|
27 |
$this->stream = $stream;
|
28 |
$this->setLimit($limit);
|
29 |
$this->setOffset($offset);
|
30 |
}
|
31 |
-
public function eof()
|
32 |
{
|
33 |
// Always return true if the underlying stream is EOF
|
34 |
if ($this->stream->eof()) {
|
35 |
return \true;
|
36 |
}
|
37 |
// No limit and the underlying stream is not at EOF
|
38 |
-
if ($this->limit
|
39 |
return \false;
|
40 |
}
|
41 |
return $this->stream->tell() >= $this->offset + $this->limit;
|
42 |
}
|
43 |
/**
|
44 |
* Returns the size of the limited subset of data
|
45 |
-
* {@inheritdoc}
|
46 |
*/
|
47 |
-
public function getSize()
|
48 |
{
|
49 |
if (null === ($length = $this->stream->getSize())) {
|
50 |
return null;
|
51 |
-
} elseif ($this->limit
|
52 |
return $length - $this->offset;
|
53 |
} else {
|
54 |
return \min($this->limit, $length - $this->offset);
|
@@ -56,9 +54,8 @@ class LimitStream implements \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface
|
|
56 |
}
|
57 |
/**
|
58 |
* Allow for a bounded seek on the read limited stream
|
59 |
-
* {@inheritdoc}
|
60 |
*/
|
61 |
-
public function seek($offset, $whence = \SEEK_SET)
|
62 |
{
|
63 |
if ($whence !== \SEEK_SET || $offset < 0) {
|
64 |
throw new \RuntimeException(\sprintf('Cannot seek to offset %s with whence %s', $offset, $whence));
|
@@ -73,9 +70,8 @@ class LimitStream implements \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface
|
|
73 |
}
|
74 |
/**
|
75 |
* Give a relative tell()
|
76 |
-
* {@inheritdoc}
|
77 |
*/
|
78 |
-
public function tell()
|
79 |
{
|
80 |
return $this->stream->tell() - $this->offset;
|
81 |
}
|
@@ -86,7 +82,7 @@ class LimitStream implements \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface
|
|
86 |
*
|
87 |
* @throws \RuntimeException if the stream cannot be seeked.
|
88 |
*/
|
89 |
-
public function setOffset($offset)
|
90 |
{
|
91 |
$current = $this->stream->tell();
|
92 |
if ($current !== $offset) {
|
@@ -108,13 +104,13 @@ class LimitStream implements \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface
|
|
108 |
* @param int $limit Number of bytes to allow to be read from the stream.
|
109 |
* Use -1 for no limit.
|
110 |
*/
|
111 |
-
public function setLimit($limit)
|
112 |
{
|
113 |
$this->limit = $limit;
|
114 |
}
|
115 |
-
public function read($length)
|
116 |
{
|
117 |
-
if ($this->limit
|
118 |
return $this->stream->read($length);
|
119 |
}
|
120 |
// Check if the current position is less than the total allowed
|
1 |
<?php
|
2 |
|
3 |
+
declare (strict_types=1);
|
4 |
namespace PYS_PRO_GLOBAL\GuzzleHttp\Psr7;
|
5 |
|
6 |
use PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface;
|
7 |
/**
|
8 |
* Decorator used to return only a subset of a stream.
|
|
|
|
|
9 |
*/
|
10 |
+
final class LimitStream implements \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface
|
11 |
{
|
12 |
use StreamDecoratorTrait;
|
13 |
/** @var int Offset to start reading from */
|
21 |
* @param int $offset Position to seek to before reading (only
|
22 |
* works on seekable streams).
|
23 |
*/
|
24 |
+
public function __construct(\PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface $stream, int $limit = -1, int $offset = 0)
|
25 |
{
|
26 |
$this->stream = $stream;
|
27 |
$this->setLimit($limit);
|
28 |
$this->setOffset($offset);
|
29 |
}
|
30 |
+
public function eof() : bool
|
31 |
{
|
32 |
// Always return true if the underlying stream is EOF
|
33 |
if ($this->stream->eof()) {
|
34 |
return \true;
|
35 |
}
|
36 |
// No limit and the underlying stream is not at EOF
|
37 |
+
if ($this->limit === -1) {
|
38 |
return \false;
|
39 |
}
|
40 |
return $this->stream->tell() >= $this->offset + $this->limit;
|
41 |
}
|
42 |
/**
|
43 |
* Returns the size of the limited subset of data
|
|
|
44 |
*/
|
45 |
+
public function getSize() : ?int
|
46 |
{
|
47 |
if (null === ($length = $this->stream->getSize())) {
|
48 |
return null;
|
49 |
+
} elseif ($this->limit === -1) {
|
50 |
return $length - $this->offset;
|
51 |
} else {
|
52 |
return \min($this->limit, $length - $this->offset);
|
54 |
}
|
55 |
/**
|
56 |
* Allow for a bounded seek on the read limited stream
|
|
|
57 |
*/
|
58 |
+
public function seek($offset, $whence = \SEEK_SET) : void
|
59 |
{
|
60 |
if ($whence !== \SEEK_SET || $offset < 0) {
|
61 |
throw new \RuntimeException(\sprintf('Cannot seek to offset %s with whence %s', $offset, $whence));
|
70 |
}
|
71 |
/**
|
72 |
* Give a relative tell()
|
|
|
73 |
*/
|
74 |
+
public function tell() : int
|
75 |
{
|
76 |
return $this->stream->tell() - $this->offset;
|
77 |
}
|
82 |
*
|
83 |
* @throws \RuntimeException if the stream cannot be seeked.
|
84 |
*/
|
85 |
+
public function setOffset(int $offset) : void
|
86 |
{
|
87 |
$current = $this->stream->tell();
|
88 |
if ($current !== $offset) {
|
104 |
* @param int $limit Number of bytes to allow to be read from the stream.
|
105 |
* Use -1 for no limit.
|
106 |
*/
|
107 |
+
public function setLimit(int $limit) : void
|
108 |
{
|
109 |
$this->limit = $limit;
|
110 |
}
|
111 |
+
public function read($length) : string
|
112 |
{
|
113 |
+
if ($this->limit === -1) {
|
114 |
return $this->stream->read($length);
|
115 |
}
|
116 |
// Check if the current position is less than the total allowed
|
vendor_prefix/guzzlehttp/psr7/src/Message.php
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
<?php
|
2 |
|
|
|
3 |
namespace PYS_PRO_GLOBAL\GuzzleHttp\Psr7;
|
4 |
|
5 |
use PYS_PRO_GLOBAL\Psr\Http\Message\MessageInterface;
|
@@ -11,10 +12,8 @@ final class Message
|
|
11 |
* Returns the string representation of an HTTP message.
|
12 |
*
|
13 |
* @param MessageInterface $message Message to convert to a string.
|
14 |
-
*
|
15 |
-
* @return string
|
16 |
*/
|
17 |
-
public static function toString(\PYS_PRO_GLOBAL\Psr\Http\Message\MessageInterface $message)
|
18 |
{
|
19 |
if ($message instanceof \PYS_PRO_GLOBAL\Psr\Http\Message\RequestInterface) {
|
20 |
$msg = \trim($message->getMethod() . ' ' . $message->getRequestTarget()) . ' HTTP/' . $message->getProtocolVersion();
|
@@ -44,10 +43,8 @@ final class Message
|
|
44 |
*
|
45 |
* @param MessageInterface $message The message to get the body summary
|
46 |
* @param int $truncateAt The maximum allowed size of the summary
|
47 |
-
*
|
48 |
-
* @return string|null
|
49 |
*/
|
50 |
-
public static function bodySummary(\PYS_PRO_GLOBAL\Psr\Http\Message\MessageInterface $message, $truncateAt = 120)
|
51 |
{
|
52 |
$body = $message->getBody();
|
53 |
if (!$body->isSeekable() || !$body->isReadable()) {
|
@@ -79,7 +76,7 @@ final class Message
|
|
79 |
*
|
80 |
* @throws \RuntimeException
|
81 |
*/
|
82 |
-
public static function rewindBody(\PYS_PRO_GLOBAL\Psr\Http\Message\MessageInterface $message)
|
83 |
{
|
84 |
$body = $message->getBody();
|
85 |
if ($body->tell()) {
|
@@ -94,10 +91,8 @@ final class Message
|
|
94 |
* array values, and a "body" key containing the body of the message.
|
95 |
*
|
96 |
* @param string $message HTTP request or response to parse.
|
97 |
-
*
|
98 |
-
* @return array
|
99 |
*/
|
100 |
-
public static function parseMessage($message)
|
101 |
{
|
102 |
if (!$message) {
|
103 |
throw new \InvalidArgumentException('Invalid message');
|
@@ -107,14 +102,14 @@ final class Message
|
|
107 |
if ($messageParts === \false || \count($messageParts) !== 2) {
|
108 |
throw new \InvalidArgumentException('Invalid message: Missing header delimiter');
|
109 |
}
|
110 |
-
|
111 |
$rawHeaders .= "\r\n";
|
112 |
// Put back the delimiter we split previously
|
113 |
$headerParts = \preg_split("/\r?\n/", $rawHeaders, 2);
|
114 |
if ($headerParts === \false || \count($headerParts) !== 2) {
|
115 |
throw new \InvalidArgumentException('Invalid message: Missing status line');
|
116 |
}
|
117 |
-
|
118 |
if (\preg_match("/(?:^HTTP\\/|^[A-Z]+ \\S+ HTTP\\/)(\\d+(?:\\.\\d+)?)/i", $startLine, $matches) && $matches[1] === '1.0') {
|
119 |
// Header folding is deprecated for HTTP/1.1, but allowed in HTTP/1.0
|
120 |
$rawHeaders = \preg_replace(\PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Rfc7230::HEADER_FOLD_REGEX, ' ', $rawHeaders);
|
@@ -140,10 +135,8 @@ final class Message
|
|
140 |
*
|
141 |
* @param string $path Path from the start-line
|
142 |
* @param array $headers Array of headers (each value an array).
|
143 |
-
*
|
144 |
-
* @return string
|
145 |
*/
|
146 |
-
public static function parseRequestUri($path, array $headers)
|
147 |
{
|
148 |
$hostKey = \array_filter(\array_keys($headers), function ($k) {
|
149 |
return \strtolower($k) === 'host';
|
@@ -160,10 +153,8 @@ final class Message
|
|
160 |
* Parses a request message string into a request object.
|
161 |
*
|
162 |
* @param string $message Request message string.
|
163 |
-
*
|
164 |
-
* @return Request
|
165 |
*/
|
166 |
-
public static function parseRequest($message)
|
167 |
{
|
168 |
$data = self::parseMessage($message);
|
169 |
$matches = [];
|
@@ -179,10 +170,8 @@ final class Message
|
|
179 |
* Parses a response message string into a response object.
|
180 |
*
|
181 |
* @param string $message Response message string.
|
182 |
-
*
|
183 |
-
* @return Response
|
184 |
*/
|
185 |
-
public static function parseResponse($message)
|
186 |
{
|
187 |
$data = self::parseMessage($message);
|
188 |
// According to https://tools.ietf.org/html/rfc7230#section-3.1.2 the space
|
@@ -192,6 +181,6 @@ final class Message
|
|
192 |
throw new \InvalidArgumentException('Invalid response string: ' . $data['start-line']);
|
193 |
}
|
194 |
$parts = \explode(' ', $data['start-line'], 3);
|
195 |
-
return new \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Response((int) $parts[1], $data['headers'], $data['body'], \explode('/', $parts[0])[1],
|
196 |
}
|
197 |
}
|
1 |
<?php
|
2 |
|
3 |
+
declare (strict_types=1);
|
4 |
namespace PYS_PRO_GLOBAL\GuzzleHttp\Psr7;
|
5 |
|
6 |
use PYS_PRO_GLOBAL\Psr\Http\Message\MessageInterface;
|
12 |
* Returns the string representation of an HTTP message.
|
13 |
*
|
14 |
* @param MessageInterface $message Message to convert to a string.
|
|
|
|
|
15 |
*/
|
16 |
+
public static function toString(\PYS_PRO_GLOBAL\Psr\Http\Message\MessageInterface $message) : string
|
17 |
{
|
18 |
if ($message instanceof \PYS_PRO_GLOBAL\Psr\Http\Message\RequestInterface) {
|
19 |
$msg = \trim($message->getMethod() . ' ' . $message->getRequestTarget()) . ' HTTP/' . $message->getProtocolVersion();
|
43 |
*
|
44 |
* @param MessageInterface $message The message to get the body summary
|
45 |
* @param int $truncateAt The maximum allowed size of the summary
|
|
|
|
|
46 |
*/
|
47 |
+
public static function bodySummary(\PYS_PRO_GLOBAL\Psr\Http\Message\MessageInterface $message, int $truncateAt = 120) : ?string
|
48 |
{
|
49 |
$body = $message->getBody();
|
50 |
if (!$body->isSeekable() || !$body->isReadable()) {
|
76 |
*
|
77 |
* @throws \RuntimeException
|
78 |
*/
|
79 |
+
public static function rewindBody(\PYS_PRO_GLOBAL\Psr\Http\Message\MessageInterface $message) : void
|
80 |
{
|
81 |
$body = $message->getBody();
|
82 |
if ($body->tell()) {
|
91 |
* array values, and a "body" key containing the body of the message.
|
92 |
*
|
93 |
* @param string $message HTTP request or response to parse.
|
|
|
|
|
94 |
*/
|
95 |
+
public static function parseMessage(string $message) : array
|
96 |
{
|
97 |
if (!$message) {
|
98 |
throw new \InvalidArgumentException('Invalid message');
|
102 |
if ($messageParts === \false || \count($messageParts) !== 2) {
|
103 |
throw new \InvalidArgumentException('Invalid message: Missing header delimiter');
|
104 |
}
|
105 |
+
[$rawHeaders, $body] = $messageParts;
|
106 |
$rawHeaders .= "\r\n";
|
107 |
// Put back the delimiter we split previously
|
108 |
$headerParts = \preg_split("/\r?\n/", $rawHeaders, 2);
|
109 |
if ($headerParts === \false || \count($headerParts) !== 2) {
|
110 |
throw new \InvalidArgumentException('Invalid message: Missing status line');
|
111 |
}
|
112 |
+
[$startLine, $rawHeaders] = $headerParts;
|
113 |
if (\preg_match("/(?:^HTTP\\/|^[A-Z]+ \\S+ HTTP\\/)(\\d+(?:\\.\\d+)?)/i", $startLine, $matches) && $matches[1] === '1.0') {
|
114 |
// Header folding is deprecated for HTTP/1.1, but allowed in HTTP/1.0
|
115 |
$rawHeaders = \preg_replace(\PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Rfc7230::HEADER_FOLD_REGEX, ' ', $rawHeaders);
|
135 |
*
|
136 |
* @param string $path Path from the start-line
|
137 |
* @param array $headers Array of headers (each value an array).
|
|
|
|
|
138 |
*/
|
139 |
+
public static function parseRequestUri(string $path, array $headers) : string
|
140 |
{
|
141 |
$hostKey = \array_filter(\array_keys($headers), function ($k) {
|
142 |
return \strtolower($k) === 'host';
|
153 |
* Parses a request message string into a request object.
|
154 |
*
|
155 |
* @param string $message Request message string.
|
|
|
|
|
156 |
*/
|
157 |
+
public static function parseRequest(string $message) : \PYS_PRO_GLOBAL\Psr\Http\Message\RequestInterface
|
158 |
{
|
159 |
$data = self::parseMessage($message);
|
160 |
$matches = [];
|
170 |
* Parses a response message string into a response object.
|
171 |
*
|
172 |
* @param string $message Response message string.
|
|
|
|
|
173 |
*/
|
174 |
+
public static function parseResponse(string $message) : \PYS_PRO_GLOBAL\Psr\Http\Message\ResponseInterface
|
175 |
{
|
176 |
$data = self::parseMessage($message);
|
177 |
// According to https://tools.ietf.org/html/rfc7230#section-3.1.2 the space
|
181 |
throw new \InvalidArgumentException('Invalid response string: ' . $data['start-line']);
|
182 |
}
|
183 |
$parts = \explode(' ', $data['start-line'], 3);
|
184 |
+
return new \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Response((int) $parts[1], $data['headers'], $data['body'], \explode('/', $parts[0])[1], $parts[2] ?? null);
|
185 |
}
|
186 |
}
|
vendor_prefix/guzzlehttp/psr7/src/MessageTrait.php
CHANGED
@@ -1,26 +1,28 @@
|
|
1 |
<?php
|
2 |
|
|
|
3 |
namespace PYS_PRO_GLOBAL\GuzzleHttp\Psr7;
|
4 |
|
|
|
5 |
use PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface;
|
6 |
/**
|
7 |
* Trait implementing functionality common to requests and responses.
|
8 |
*/
|
9 |
trait MessageTrait
|
10 |
{
|
11 |
-
/** @var array Map of all registered headers, as original name => array of values */
|
12 |
private $headers = [];
|
13 |
-
/** @var array Map of lowercase header name => original name at registration */
|
14 |
private $headerNames = [];
|
15 |
/** @var string */
|
16 |
private $protocol = '1.1';
|
17 |
/** @var StreamInterface|null */
|
18 |
private $stream;
|
19 |
-
public function getProtocolVersion()
|
20 |
{
|
21 |
return $this->protocol;
|
22 |
}
|
23 |
-
public function withProtocolVersion($version)
|
24 |
{
|
25 |
if ($this->protocol === $version) {
|
26 |
return $this;
|
@@ -29,15 +31,15 @@ trait MessageTrait
|
|
29 |
$new->protocol = $version;
|
30 |
return $new;
|
31 |
}
|
32 |
-
public function getHeaders()
|
33 |
{
|
34 |
return $this->headers;
|
35 |
}
|
36 |
-
public function hasHeader($header)
|
37 |
{
|
38 |
return isset($this->headerNames[\strtolower($header)]);
|
39 |
}
|
40 |
-
public function getHeader($header)
|
41 |
{
|
42 |
$header = \strtolower($header);
|
43 |
if (!isset($this->headerNames[$header])) {
|
@@ -46,11 +48,11 @@ trait MessageTrait
|
|
46 |
$header = $this->headerNames[$header];
|
47 |
return $this->headers[$header];
|
48 |
}
|
49 |
-
public function getHeaderLine($header)
|
50 |
{
|
51 |
return \implode(', ', $this->getHeader($header));
|
52 |
}
|
53 |
-
public function withHeader($header, $value)
|
54 |
{
|
55 |
$this->assertHeader($header);
|
56 |
$value = $this->normalizeHeaderValue($value);
|
@@ -63,7 +65,7 @@ trait MessageTrait
|
|
63 |
$new->headers[$header] = $value;
|
64 |
return $new;
|
65 |
}
|
66 |
-
public function withAddedHeader($header, $value)
|
67 |
{
|
68 |
$this->assertHeader($header);
|
69 |
$value = $this->normalizeHeaderValue($value);
|
@@ -78,7 +80,7 @@ trait MessageTrait
|
|
78 |
}
|
79 |
return $new;
|
80 |
}
|
81 |
-
public function withoutHeader($header)
|
82 |
{
|
83 |
$normalized = \strtolower($header);
|
84 |
if (!isset($this->headerNames[$normalized])) {
|
@@ -89,14 +91,14 @@ trait MessageTrait
|
|
89 |
unset($new->headers[$header], $new->headerNames[$normalized]);
|
90 |
return $new;
|
91 |
}
|
92 |
-
public function getBody()
|
93 |
{
|
94 |
if (!$this->stream) {
|
95 |
$this->stream = \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Utils::streamFor('');
|
96 |
}
|
97 |
return $this->stream;
|
98 |
}
|
99 |
-
public function withBody(\PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface $body)
|
100 |
{
|
101 |
if ($body === $this->stream) {
|
102 |
return $this;
|
@@ -105,7 +107,10 @@ trait MessageTrait
|
|
105 |
$new->stream = $body;
|
106 |
return $new;
|
107 |
}
|
108 |
-
|
|
|
|
|
|
|
109 |
{
|
110 |
$this->headerNames = $this->headers = [];
|
111 |
foreach ($headers as $header => $value) {
|
@@ -126,7 +131,12 @@ trait MessageTrait
|
|
126 |
}
|
127 |
}
|
128 |
}
|
129 |
-
|
|
|
|
|
|
|
|
|
|
|
130 |
{
|
131 |
if (!\is_array($value)) {
|
132 |
return $this->trimHeaderValues([$value]);
|
@@ -144,13 +154,13 @@ trait MessageTrait
|
|
144 |
* header-field = field-name ":" OWS field-value OWS
|
145 |
* OWS = *( SP / HTAB )
|
146 |
*
|
147 |
-
* @param
|
148 |
*
|
149 |
* @return string[] Trimmed header values
|
150 |
*
|
151 |
* @see https://tools.ietf.org/html/rfc7230#section-3.2.4
|
152 |
*/
|
153 |
-
private function trimHeaderValues(array $values)
|
154 |
{
|
155 |
return \array_map(function ($value) {
|
156 |
if (!\is_scalar($value) && null !== $value) {
|
@@ -159,13 +169,18 @@ trait MessageTrait
|
|
159 |
return \trim((string) $value, " \t");
|
160 |
}, \array_values($values));
|
161 |
}
|
162 |
-
|
|
|
|
|
|
|
|
|
|
|
163 |
{
|
164 |
if (!\is_string($header)) {
|
165 |
throw new \InvalidArgumentException(\sprintf('Header name must be a string but %s provided.', \is_object($header) ? \get_class($header) : \gettype($header)));
|
166 |
}
|
167 |
-
if ($header
|
168 |
-
throw new \InvalidArgumentException('
|
169 |
}
|
170 |
}
|
171 |
}
|
1 |
<?php
|
2 |
|
3 |
+
declare (strict_types=1);
|
4 |
namespace PYS_PRO_GLOBAL\GuzzleHttp\Psr7;
|
5 |
|
6 |
+
use PYS_PRO_GLOBAL\Psr\Http\Message\MessageInterface;
|
7 |
use PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface;
|
8 |
/**
|
9 |
* Trait implementing functionality common to requests and responses.
|
10 |
*/
|
11 |
trait MessageTrait
|
12 |
{
|
13 |
+
/** @var array<string, string[]> Map of all registered headers, as original name => array of values */
|
14 |
private $headers = [];
|
15 |
+
/** @var array<string, string> Map of lowercase header name => original name at registration */
|
16 |
private $headerNames = [];
|
17 |
/** @var string */
|
18 |
private $protocol = '1.1';
|
19 |
/** @var StreamInterface|null */
|
20 |
private $stream;
|
21 |
+
public function getProtocolVersion() : string
|
22 |
{
|
23 |
return $this->protocol;
|
24 |
}
|
25 |
+
public function withProtocolVersion($version) : \PYS_PRO_GLOBAL\Psr\Http\Message\MessageInterface
|
26 |
{
|
27 |
if ($this->protocol === $version) {
|
28 |
return $this;
|
31 |
$new->protocol = $version;
|
32 |
return $new;
|
33 |
}
|
34 |
+
public function getHeaders() : array
|
35 |
{
|
36 |
return $this->headers;
|
37 |
}
|
38 |
+
public function hasHeader($header) : bool
|
39 |
{
|
40 |
return isset($this->headerNames[\strtolower($header)]);
|
41 |
}
|
42 |
+
public function getHeader($header) : array
|
43 |
{
|
44 |
$header = \strtolower($header);
|
45 |
if (!isset($this->headerNames[$header])) {
|
48 |
$header = $this->headerNames[$header];
|
49 |
return $this->headers[$header];
|
50 |
}
|
51 |
+
public function getHeaderLine($header) : string
|
52 |
{
|
53 |
return \implode(', ', $this->getHeader($header));
|
54 |
}
|
55 |
+
public function withHeader($header, $value) : \PYS_PRO_GLOBAL\Psr\Http\Message\MessageInterface
|
56 |
{
|
57 |
$this->assertHeader($header);
|
58 |
$value = $this->normalizeHeaderValue($value);
|
65 |
$new->headers[$header] = $value;
|
66 |
return $new;
|
67 |
}
|
68 |
+
public function withAddedHeader($header, $value) : \PYS_PRO_GLOBAL\Psr\Http\Message\MessageInterface
|
69 |
{
|
70 |
$this->assertHeader($header);
|
71 |
$value = $this->normalizeHeaderValue($value);
|
80 |
}
|
81 |
return $new;
|
82 |
}
|
83 |
+
public function withoutHeader($header) : \PYS_PRO_GLOBAL\Psr\Http\Message\MessageInterface
|
84 |
{
|
85 |
$normalized = \strtolower($header);
|
86 |
if (!isset($this->headerNames[$normalized])) {
|
91 |
unset($new->headers[$header], $new->headerNames[$normalized]);
|
92 |
return $new;
|
93 |
}
|
94 |
+
public function getBody() : \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface
|
95 |
{
|
96 |
if (!$this->stream) {
|
97 |
$this->stream = \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Utils::streamFor('');
|
98 |
}
|
99 |
return $this->stream;
|
100 |
}
|
101 |
+
public function withBody(\PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface $body) : \PYS_PRO_GLOBAL\Psr\Http\Message\MessageInterface
|
102 |
{
|
103 |
if ($body === $this->stream) {
|
104 |
return $this;
|
107 |
$new->stream = $body;
|
108 |
return $new;
|
109 |
}
|
110 |
+
/**
|
111 |
+
* @param array<string|int, string|string[]> $headers
|
112 |
+
*/
|
113 |
+
private function setHeaders(array $headers) : void
|
114 |
{
|
115 |
$this->headerNames = $this->headers = [];
|
116 |
foreach ($headers as $header => $value) {
|
131 |
}
|
132 |
}
|
133 |
}
|
134 |
+
/**
|
135 |
+
* @param mixed $value
|
136 |
+
*
|
137 |
+
* @return string[]
|
138 |
+
*/
|
139 |
+
private function normalizeHeaderValue($value) : array
|
140 |
{
|
141 |
if (!\is_array($value)) {
|
142 |
return $this->trimHeaderValues([$value]);
|
154 |
* header-field = field-name ":" OWS field-value OWS
|
155 |
* OWS = *( SP / HTAB )
|
156 |
*
|
157 |
+
* @param mixed[] $values Header values
|
158 |
*
|
159 |
* @return string[] Trimmed header values
|
160 |
*
|
161 |
* @see https://tools.ietf.org/html/rfc7230#section-3.2.4
|
162 |
*/
|
163 |
+
private function trimHeaderValues(array $values) : array
|
164 |
{
|
165 |
return \array_map(function ($value) {
|
166 |
if (!\is_scalar($value) && null !== $value) {
|
169 |
return \trim((string) $value, " \t");
|
170 |
}, \array_values($values));
|
171 |
}
|
172 |
+
/**
|
173 |
+
* @see https://tools.ietf.org/html/rfc7230#section-3.2
|
174 |
+
*
|
175 |
+
* @param mixed $header
|
176 |
+
*/
|
177 |
+
private function assertHeader($header) : void
|
178 |
{
|
179 |
if (!\is_string($header)) {
|
180 |
throw new \InvalidArgumentException(\sprintf('Header name must be a string but %s provided.', \is_object($header) ? \get_class($header) : \gettype($header)));
|
181 |
}
|
182 |
+
if (!\preg_match('/^[a-zA-Z0-9\'`#$%&*+.^_|~!-]+$/', $header)) {
|
183 |
+
throw new \InvalidArgumentException(\sprintf('"%s" is not valid header name', $header));
|
184 |
}
|
185 |
}
|
186 |
}
|
vendor_prefix/guzzlehttp/psr7/src/MimeType.php
CHANGED
@@ -1,33 +1,25 @@
|
|
1 |
<?php
|
2 |
|
|
|
3 |
namespace PYS_PRO_GLOBAL\GuzzleHttp\Psr7;
|
4 |
|
5 |
final class MimeType
|
6 |
{
|
|
|
7 |
/**
|
8 |
* Determines the mimetype of a file by looking at its extension.
|
9 |
-
*
|
10 |
-
* @param string $filename
|
11 |
-
*
|
12 |
-
* @return string|null
|
13 |
*/
|
14 |
-
public static function fromFilename($filename)
|
15 |
{
|
16 |
return self::fromExtension(\pathinfo($filename, \PATHINFO_EXTENSION));
|
17 |
}
|
18 |
/**
|
19 |
* Maps a file extensions to a mimetype.
|
20 |
*
|
21 |
-
* @param string $extension string The file extension.
|
22 |
-
*
|
23 |
-
* @return string|null
|
24 |
-
*
|
25 |
* @link http://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x/conf/mime.types
|
26 |
*/
|
27 |
-
public static function fromExtension($extension)
|
28 |
{
|
29 |
-
|
30 |
-
$extension = \strtolower($extension);
|
31 |
-
return isset($mimetypes[$extension]) ? $mimetypes[$extension] : null;
|
32 |
}
|
33 |
}
|
1 |
<?php
|
2 |
|
3 |
+
declare (strict_types=1);
|
4 |
namespace PYS_PRO_GLOBAL\GuzzleHttp\Psr7;
|
5 |
|
6 |
final class MimeType
|
7 |
{
|
8 |
+
private const MIME_TYPES = ['3gp' => 'video/3gpp', '7z' => 'application/x-7z-compressed', 'aac' => 'audio/x-aac', 'ai' => 'application/postscript', 'aif' => 'audio/x-aiff', 'asc' => 'text/plain', 'asf' => 'video/x-ms-asf', 'atom' => 'application/atom+xml', 'avi' => 'video/x-msvideo', 'bmp' => 'image/bmp', 'bz2' => 'application/x-bzip2', 'cer' => 'application/pkix-cert', 'crl' => 'application/pkix-crl', 'crt' => 'application/x-x509-ca-cert', 'css' => 'text/css', 'csv' => 'text/csv', 'cu' => 'application/cu-seeme', 'deb' => 'application/x-debian-package', 'doc' => 'application/msword', 'docx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'dvi' => 'application/x-dvi', 'eot' => 'application/vnd.ms-fontobject', 'eps' => 'application/postscript', 'epub' => 'application/epub+zip', 'etx' => 'text/x-setext', 'flac' => 'audio/flac', 'flv' => 'video/x-flv', 'gif' => 'image/gif', 'gz' => 'application/gzip', 'htm' => 'text/html', 'html' => 'text/html', 'ico' => 'image/x-icon', 'ics' => 'text/calendar', 'ini' => 'text/plain', 'iso' => 'application/x-iso9660-image', 'jar' => 'application/java-archive', 'jpe' => 'image/jpeg', 'jpeg' => 'image/jpeg', 'jpg' => 'image/jpeg', 'js' => 'text/javascript', 'json' => 'application/json', 'latex' => 'application/x-latex', 'log' => 'text/plain', 'm4a' => 'audio/mp4', 'm4v' => 'video/mp4', 'mid' => 'audio/midi', 'midi' => 'audio/midi', 'mov' => 'video/quicktime', 'mkv' => 'video/x-matroska', 'mp3' => 'audio/mpeg', 'mp4' => 'video/mp4', 'mp4a' => 'audio/mp4', 'mp4v' => 'video/mp4', 'mpe' => 'video/mpeg', 'mpeg' => 'video/mpeg', 'mpg' => 'video/mpeg', 'mpg4' => 'video/mp4', 'oga' => 'audio/ogg', 'ogg' => 'audio/ogg', 'ogv' => 'video/ogg', 'ogx' => 'application/ogg', 'pbm' => 'image/x-portable-bitmap', 'pdf' => 'application/pdf', 'pgm' => 'image/x-portable-graymap', 'png' => 'image/png', 'pnm' => 'image/x-portable-anymap', 'ppm' => 'image/x-portable-pixmap', 'ppt' => 'application/vnd.ms-powerpoint', 'pptx' => 'application/vnd.openxmlformats-officedocument.presentationml.presentation', 'ps' => 'application/postscript', 'qt' => 'video/quicktime', 'rar' => 'application/x-rar-compressed', 'ras' => 'image/x-cmu-raster', 'rss' => 'application/rss+xml', 'rtf' => 'application/rtf', 'sgm' => 'text/sgml', 'sgml' => 'text/sgml', 'svg' => 'image/svg+xml', 'swf' => 'application/x-shockwave-flash', 'tar' => 'application/x-tar', 'tif' => 'image/tiff', 'tiff' => 'image/tiff', 'torrent' => 'application/x-bittorrent', 'ttf' => 'application/x-font-ttf', 'txt' => 'text/plain', 'wav' => 'audio/x-wav', 'webm' => 'video/webm', 'webp' => 'image/webp', 'wma' => 'audio/x-ms-wma', 'wmv' => 'video/x-ms-wmv', 'woff' => 'application/x-font-woff', 'wsdl' => 'application/wsdl+xml', 'xbm' => 'image/x-xbitmap', 'xls' => 'application/vnd.ms-excel', 'xlsx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'xml' => 'application/xml', 'xpm' => 'image/x-xpixmap', 'xwd' => 'image/x-xwindowdump', 'yaml' => 'text/yaml', 'yml' => 'text/yaml', 'zip' => 'application/zip'];
|
9 |
/**
|
10 |
* Determines the mimetype of a file by looking at its extension.
|
|
|
|
|
|
|
|
|
11 |
*/
|
12 |
+
public static function fromFilename(string $filename) : ?string
|
13 |
{
|
14 |
return self::fromExtension(\pathinfo($filename, \PATHINFO_EXTENSION));
|
15 |
}
|
16 |
/**
|
17 |
* Maps a file extensions to a mimetype.
|
18 |
*
|
|
|
|
|
|
|
|
|
19 |
* @link http://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x/conf/mime.types
|
20 |
*/
|
21 |
+
public static function fromExtension(string $extension) : ?string
|
22 |
{
|
23 |
+
return self::MIME_TYPES[\strtolower($extension)] ?? null;
|
|
|
|
|
24 |
}
|
25 |
}
|
vendor_prefix/guzzlehttp/psr7/src/MultipartStream.php
CHANGED
@@ -1,17 +1,17 @@
|
|
1 |
<?php
|
2 |
|
|
|
3 |
namespace PYS_PRO_GLOBAL\GuzzleHttp\Psr7;
|
4 |
|
5 |
use PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface;
|
6 |
/**
|
7 |
* Stream that when read returns bytes for a streaming multipart or
|
8 |
* multipart/form-data stream.
|
9 |
-
*
|
10 |
-
* @final
|
11 |
*/
|
12 |
-
class MultipartStream implements \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface
|
13 |
{
|
14 |
use StreamDecoratorTrait;
|
|
|
15 |
private $boundary;
|
16 |
/**
|
17 |
* @param array $elements Array of associative arrays, each containing a
|
@@ -25,28 +25,25 @@ class MultipartStream implements \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterfac
|
|
25 |
*
|
26 |
* @throws \InvalidArgumentException
|
27 |
*/
|
28 |
-
public function __construct(array $elements = [], $boundary = null)
|
29 |
{
|
30 |
$this->boundary = $boundary ?: \sha1(\uniqid('', \true));
|
31 |
$this->stream = $this->createStream($elements);
|
32 |
}
|
33 |
-
|
34 |
-
* Get the boundary
|
35 |
-
*
|
36 |
-
* @return string
|
37 |
-
*/
|
38 |
-
public function getBoundary()
|
39 |
{
|
40 |
return $this->boundary;
|
41 |
}
|
42 |
-
public function isWritable()
|
43 |
{
|
44 |
return \false;
|
45 |
}
|
46 |
/**
|
47 |
* Get the headers needed before transferring the content of a POST file
|
|
|
|
|
48 |
*/
|
49 |
-
private function getHeaders(array $headers)
|
50 |
{
|
51 |
$str = '';
|
52 |
foreach ($headers as $key => $value) {
|
@@ -57,7 +54,7 @@ class MultipartStream implements \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterfac
|
|
57 |
/**
|
58 |
* Create the aggregate stream that will be used to upload the POST data
|
59 |
*/
|
60 |
-
protected function createStream(array $elements)
|
61 |
{
|
62 |
$stream = new \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\AppendStream();
|
63 |
foreach ($elements as $element) {
|
@@ -67,7 +64,7 @@ class MultipartStream implements \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterfac
|
|
67 |
$stream->addStream(\PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Utils::streamFor("--{$this->boundary}--\r\n"));
|
68 |
return $stream;
|
69 |
}
|
70 |
-
private function addElement(\PYS_PRO_GLOBAL\GuzzleHttp\Psr7\AppendStream $stream, array $element)
|
71 |
{
|
72 |
foreach (['contents', 'name'] as $key) {
|
73 |
if (!\array_key_exists($key, $element)) {
|
@@ -81,15 +78,12 @@ class MultipartStream implements \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterfac
|
|
81 |
$element['filename'] = $uri;
|
82 |
}
|
83 |
}
|
84 |
-
|
85 |
$stream->addStream(\PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Utils::streamFor($this->getHeaders($headers)));
|
86 |
$stream->addStream($body);
|
87 |
$stream->addStream(\PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Utils::streamFor("\r\n"));
|
88 |
}
|
89 |
-
|
90 |
-
* @return array
|
91 |
-
*/
|
92 |
-
private function createElement($name, \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface $stream, $filename, array $headers)
|
93 |
{
|
94 |
// Set a default content-disposition header if one was no provided
|
95 |
$disposition = $this->getHeader($headers, 'content-disposition');
|
@@ -112,7 +106,7 @@ class MultipartStream implements \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterfac
|
|
112 |
}
|
113 |
return [$stream, $headers];
|
114 |
}
|
115 |
-
private function getHeader(array $headers, $key)
|
116 |
{
|
117 |
$lowercaseHeader = \strtolower($key);
|
118 |
foreach ($headers as $k => $v) {
|
1 |
<?php
|
2 |
|
3 |
+
declare (strict_types=1);
|
4 |
namespace PYS_PRO_GLOBAL\GuzzleHttp\Psr7;
|
5 |
|
6 |
use PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface;
|
7 |
/**
|
8 |
* Stream that when read returns bytes for a streaming multipart or
|
9 |
* multipart/form-data stream.
|
|
|
|
|
10 |
*/
|
11 |
+
final class MultipartStream implements \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface
|
12 |
{
|
13 |
use StreamDecoratorTrait;
|
14 |
+
/** @var string */
|
15 |
private $boundary;
|
16 |
/**
|
17 |
* @param array $elements Array of associative arrays, each containing a
|
25 |
*
|
26 |
* @throws \InvalidArgumentException
|
27 |
*/
|
28 |
+
public function __construct(array $elements = [], string $boundary = null)
|
29 |
{
|
30 |
$this->boundary = $boundary ?: \sha1(\uniqid('', \true));
|
31 |
$this->stream = $this->createStream($elements);
|
32 |
}
|
33 |
+
public function getBoundary() : string
|
|
|
|
|
|
|
|
|
|
|
34 |
{
|
35 |
return $this->boundary;
|
36 |
}
|
37 |
+
public function isWritable() : bool
|
38 |
{
|
39 |
return \false;
|
40 |
}
|
41 |
/**
|
42 |
* Get the headers needed before transferring the content of a POST file
|
43 |
+
*
|
44 |
+
* @param array<string, string> $headers
|
45 |
*/
|
46 |
+
private function getHeaders(array $headers) : string
|
47 |
{
|
48 |
$str = '';
|
49 |
foreach ($headers as $key => $value) {
|
54 |
/**
|
55 |
* Create the aggregate stream that will be used to upload the POST data
|
56 |
*/
|
57 |
+
protected function createStream(array $elements = []) : \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface
|
58 |
{
|
59 |
$stream = new \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\AppendStream();
|
60 |
foreach ($elements as $element) {
|
64 |
$stream->addStream(\PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Utils::streamFor("--{$this->boundary}--\r\n"));
|
65 |
return $stream;
|
66 |
}
|
67 |
+
private function addElement(\PYS_PRO_GLOBAL\GuzzleHttp\Psr7\AppendStream $stream, array $element) : void
|
68 |
{
|
69 |
foreach (['contents', 'name'] as $key) {
|
70 |
if (!\array_key_exists($key, $element)) {
|
78 |
$element['filename'] = $uri;
|
79 |
}
|
80 |
}
|
81 |
+
[$body, $headers] = $this->createElement($element['name'], $element['contents'], $element['filename'] ?? null, $element['headers'] ?? []);
|
82 |
$stream->addStream(\PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Utils::streamFor($this->getHeaders($headers)));
|
83 |
$stream->addStream($body);
|
84 |
$stream->addStream(\PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Utils::streamFor("\r\n"));
|
85 |
}
|
86 |
+
private function createElement(string $name, \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface $stream, ?string $filename, array $headers) : array
|
|
|
|
|
|
|
87 |
{
|
88 |
// Set a default content-disposition header if one was no provided
|
89 |
$disposition = $this->getHeader($headers, 'content-disposition');
|
106 |
}
|
107 |
return [$stream, $headers];
|
108 |
}
|
109 |
+
private function getHeader(array $headers, string $key)
|
110 |
{
|
111 |
$lowercaseHeader = \strtolower($key);
|
112 |
foreach ($headers as $k => $v) {
|
vendor_prefix/guzzlehttp/psr7/src/NoSeekStream.php
CHANGED
@@ -1,21 +1,20 @@
|
|
1 |
<?php
|
2 |
|
|
|
3 |
namespace PYS_PRO_GLOBAL\GuzzleHttp\Psr7;
|
4 |
|
5 |
use PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface;
|
6 |
/**
|
7 |
* Stream decorator that prevents a stream from being seeked.
|
8 |
-
*
|
9 |
-
* @final
|
10 |
*/
|
11 |
-
class NoSeekStream implements \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface
|
12 |
{
|
13 |
use StreamDecoratorTrait;
|
14 |
-
public function seek($offset, $whence = \SEEK_SET)
|
15 |
{
|
16 |
throw new \RuntimeException('Cannot seek a NoSeekStream');
|
17 |
}
|
18 |
-
public function isSeekable()
|
19 |
{
|
20 |
return \false;
|
21 |
}
|
1 |
<?php
|
2 |
|
3 |
+
declare (strict_types=1);
|
4 |
namespace PYS_PRO_GLOBAL\GuzzleHttp\Psr7;
|
5 |
|
6 |
use PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface;
|
7 |
/**
|
8 |
* Stream decorator that prevents a stream from being seeked.
|
|
|
|
|
9 |
*/
|
10 |
+
final class NoSeekStream implements \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface
|
11 |
{
|
12 |
use StreamDecoratorTrait;
|
13 |
+
public function seek($offset, $whence = \SEEK_SET) : void
|
14 |
{
|
15 |
throw new \RuntimeException('Cannot seek a NoSeekStream');
|
16 |
}
|
17 |
+
public function isSeekable() : bool
|
18 |
{
|
19 |
return \false;
|
20 |
}
|
vendor_prefix/guzzlehttp/psr7/src/PumpStream.php
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
<?php
|
2 |
|
|
|
3 |
namespace PYS_PRO_GLOBAL\GuzzleHttp\Psr7;
|
4 |
|
5 |
use PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface;
|
@@ -12,14 +13,12 @@ use PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface;
|
|
12 |
* returned by the provided callable is buffered internally until drained using
|
13 |
* the read() function of the PumpStream. The provided callable MUST return
|
14 |
* false when there is no more data to read.
|
15 |
-
*
|
16 |
-
* @final
|
17 |
*/
|
18 |
-
class PumpStream implements \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface
|
19 |
{
|
20 |
-
/** @var callable */
|
21 |
private $source;
|
22 |
-
/** @var int */
|
23 |
private $size;
|
24 |
/** @var int */
|
25 |
private $tellPos = 0;
|
@@ -28,77 +27,81 @@ class PumpStream implements \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface
|
|
28 |
/** @var BufferStream */
|
29 |
private $buffer;
|
30 |
/**
|
31 |
-
* @param callable $source Source of the stream data. The callable MAY
|
32 |
-
*
|
33 |
-
*
|
34 |
-
*
|
35 |
-
*
|
36 |
-
* @param array
|
37 |
-
*
|
38 |
-
*
|
39 |
*/
|
40 |
public function __construct(callable $source, array $options = [])
|
41 |
{
|
42 |
$this->source = $source;
|
43 |
-
$this->size =
|
44 |
-
$this->metadata =
|
45 |
$this->buffer = new \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\BufferStream();
|
46 |
}
|
47 |
-
public function __toString()
|
48 |
{
|
49 |
try {
|
50 |
return \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Utils::copyToString($this);
|
51 |
-
} catch (\
|
|
|
|
|
|
|
|
|
52 |
return '';
|
53 |
}
|
54 |
}
|
55 |
-
public function close()
|
56 |
{
|
57 |
$this->detach();
|
58 |
}
|
59 |
public function detach()
|
60 |
{
|
61 |
-
$this->tellPos =
|
62 |
$this->source = null;
|
63 |
return null;
|
64 |
}
|
65 |
-
public function getSize()
|
66 |
{
|
67 |
return $this->size;
|
68 |
}
|
69 |
-
public function tell()
|
70 |
{
|
71 |
return $this->tellPos;
|
72 |
}
|
73 |
-
public function eof()
|
74 |
{
|
75 |
-
return
|
76 |
}
|
77 |
-
public function isSeekable()
|
78 |
{
|
79 |
return \false;
|
80 |
}
|
81 |
-
public function rewind()
|
82 |
{
|
83 |
$this->seek(0);
|
84 |
}
|
85 |
-
public function seek($offset, $whence = \SEEK_SET)
|
86 |
{
|
87 |
throw new \RuntimeException('Cannot seek a PumpStream');
|
88 |
}
|
89 |
-
public function isWritable()
|
90 |
{
|
91 |
return \false;
|
92 |
}
|
93 |
-
public function write($string)
|
94 |
{
|
95 |
throw new \RuntimeException('Cannot write to a PumpStream');
|
96 |
}
|
97 |
-
public function isReadable()
|
98 |
{
|
99 |
return \true;
|
100 |
}
|
101 |
-
public function read($length)
|
102 |
{
|
103 |
$data = $this->buffer->read($length);
|
104 |
$readLen = \strlen($data);
|
@@ -111,7 +114,7 @@ class PumpStream implements \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface
|
|
111 |
}
|
112 |
return $data;
|
113 |
}
|
114 |
-
public function getContents()
|
115 |
{
|
116 |
$result = '';
|
117 |
while (!$this->eof()) {
|
@@ -119,14 +122,19 @@ class PumpStream implements \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface
|
|
119 |
}
|
120 |
return $result;
|
121 |
}
|
|
|
|
|
|
|
|
|
|
|
122 |
public function getMetadata($key = null)
|
123 |
{
|
124 |
if (!$key) {
|
125 |
return $this->metadata;
|
126 |
}
|
127 |
-
return
|
128 |
}
|
129 |
-
private function pump($length)
|
130 |
{
|
131 |
if ($this->source) {
|
132 |
do {
|
1 |
<?php
|
2 |
|
3 |
+
declare (strict_types=1);
|
4 |
namespace PYS_PRO_GLOBAL\GuzzleHttp\Psr7;
|
5 |
|
6 |
use PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface;
|
13 |
* returned by the provided callable is buffered internally until drained using
|
14 |
* the read() function of the PumpStream. The provided callable MUST return
|
15 |
* false when there is no more data to read.
|
|
|
|
|
16 |
*/
|
17 |
+
final class PumpStream implements \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface
|
18 |
{
|
19 |
+
/** @var callable|null */
|
20 |
private $source;
|
21 |
+
/** @var int|null */
|
22 |
private $size;
|
23 |
/** @var int */
|
24 |
private $tellPos = 0;
|
27 |
/** @var BufferStream */
|
28 |
private $buffer;
|
29 |
/**
|
30 |
+
* @param callable(int): (string|null|false) $source Source of the stream data. The callable MAY
|
31 |
+
* accept an integer argument used to control the
|
32 |
+
* amount of data to return. The callable MUST
|
33 |
+
* return a string when called, or false|null on error
|
34 |
+
* or EOF.
|
35 |
+
* @param array{size?: int, metadata?: array} $options Stream options:
|
36 |
+
* - metadata: Hash of metadata to use with stream.
|
37 |
+
* - size: Size of the stream, if known.
|
38 |
*/
|
39 |
public function __construct(callable $source, array $options = [])
|
40 |
{
|
41 |
$this->source = $source;
|
42 |
+
$this->size = $options['size'] ?? null;
|
43 |
+
$this->metadata = $options['metadata'] ?? [];
|
44 |
$this->buffer = new \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\BufferStream();
|
45 |
}
|
46 |
+
public function __toString() : string
|
47 |
{
|
48 |
try {
|
49 |
return \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Utils::copyToString($this);
|
50 |
+
} catch (\Throwable $e) {
|
51 |
+
if (\PHP_VERSION_ID >= 70400) {
|
52 |
+
throw $e;
|
53 |
+
}
|
54 |
+
\trigger_error(\sprintf('%s::__toString exception: %s', self::class, (string) $e), \E_USER_ERROR);
|
55 |
return '';
|
56 |
}
|
57 |
}
|
58 |
+
public function close() : void
|
59 |
{
|
60 |
$this->detach();
|
61 |
}
|
62 |
public function detach()
|
63 |
{
|
64 |
+
$this->tellPos = 0;
|
65 |
$this->source = null;
|
66 |
return null;
|
67 |
}
|
68 |
+
public function getSize() : ?int
|
69 |
{
|
70 |
return $this->size;
|
71 |
}
|
72 |
+
public function tell() : int
|
73 |
{
|
74 |
return $this->tellPos;
|
75 |
}
|
76 |
+
public function eof() : bool
|
77 |
{
|
78 |
+
return $this->source === null;
|
79 |
}
|
80 |
+
public function isSeekable() : bool
|
81 |
{
|
82 |
return \false;
|
83 |
}
|
84 |
+
public function rewind() : void
|
85 |
{
|
86 |
$this->seek(0);
|
87 |
}
|
88 |
+
public function seek($offset, $whence = \SEEK_SET) : void
|
89 |
{
|
90 |
throw new \RuntimeException('Cannot seek a PumpStream');
|
91 |
}
|
92 |
+
public function isWritable() : bool
|
93 |
{
|
94 |
return \false;
|
95 |
}
|
96 |
+
public function write($string) : int
|
97 |
{
|
98 |
throw new \RuntimeException('Cannot write to a PumpStream');
|
99 |
}
|
100 |
+
public function isReadable() : bool
|
101 |
{
|
102 |
return \true;
|
103 |
}
|
104 |
+
public function read($length) : string
|
105 |
{
|
106 |
$data = $this->buffer->read($length);
|
107 |
$readLen = \strlen($data);
|
114 |
}
|
115 |
return $data;
|
116 |
}
|
117 |
+
public function getContents() : string
|
118 |
{
|
119 |
$result = '';
|
120 |
while (!$this->eof()) {
|
122 |
}
|
123 |
return $result;
|
124 |
}
|
125 |
+
/**
|
126 |
+
* {@inheritdoc}
|
127 |
+
*
|
128 |
+
* @return mixed
|
129 |
+
*/
|
130 |
public function getMetadata($key = null)
|
131 |
{
|
132 |
if (!$key) {
|
133 |
return $this->metadata;
|
134 |
}
|
135 |
+
return $this->metadata[$key] ?? null;
|
136 |
}
|
137 |
+
private function pump(int $length) : void
|
138 |
{
|
139 |
if ($this->source) {
|
140 |
do {
|
vendor_prefix/guzzlehttp/psr7/src/Query.php
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
<?php
|
2 |
|
|
|
3 |
namespace PYS_PRO_GLOBAL\GuzzleHttp\Psr7;
|
4 |
|
5 |
final class Query
|
@@ -14,10 +15,8 @@ final class Query
|
|
14 |
*
|
15 |
* @param string $str Query string to parse
|
16 |
* @param int|bool $urlEncoding How the query string is encoded
|
17 |
-
*
|
18 |
-
* @return array
|
19 |
*/
|
20 |
-
public static function parse($str, $urlEncoding = \true)
|
21 |
{
|
22 |
$result = [];
|
23 |
if ($str === '') {
|
@@ -25,7 +24,7 @@ final class Query
|
|
25 |
}
|
26 |
if ($urlEncoding === \true) {
|
27 |
$decoder = function ($value) {
|
28 |
-
return \rawurldecode(\str_replace('+', ' ', $value));
|
29 |
};
|
30 |
} elseif ($urlEncoding === \PHP_QUERY_RFC3986) {
|
31 |
$decoder = 'rawurldecode';
|
@@ -62,16 +61,14 @@ final class Query
|
|
62 |
* @param int|false $encoding Set to false to not encode, PHP_QUERY_RFC3986
|
63 |
* to encode using RFC3986, or PHP_QUERY_RFC1738
|
64 |
* to encode using RFC1738.
|
65 |
-
*
|
66 |
-
* @return string
|
67 |
*/
|
68 |
-
public static function build(array $params, $encoding = \PHP_QUERY_RFC3986)
|
69 |
{
|
70 |
if (!$params) {
|
71 |
return '';
|
72 |
}
|
73 |
if ($encoding === \false) {
|
74 |
-
$encoder = function ($str) {
|
75 |
return $str;
|
76 |
};
|
77 |
} elseif ($encoding === \PHP_QUERY_RFC3986) {
|
@@ -83,18 +80,20 @@ final class Query
|
|
83 |
}
|
84 |
$qs = '';
|
85 |
foreach ($params as $k => $v) {
|
86 |
-
$k = $encoder($k);
|
87 |
if (!\is_array($v)) {
|
88 |
$qs .= $k;
|
|
|
89 |
if ($v !== null) {
|
90 |
-
$qs .= '=' . $encoder($v);
|
91 |
}
|
92 |
$qs .= '&';
|
93 |
} else {
|
94 |
foreach ($v as $vv) {
|
95 |
$qs .= $k;
|
|
|
96 |
if ($vv !== null) {
|
97 |
-
$qs .= '=' . $encoder($vv);
|
98 |
}
|
99 |
$qs .= '&';
|
100 |
}
|
1 |
<?php
|
2 |
|
3 |
+
declare (strict_types=1);
|
4 |
namespace PYS_PRO_GLOBAL\GuzzleHttp\Psr7;
|
5 |
|
6 |
final class Query
|
15 |
*
|
16 |
* @param string $str Query string to parse
|
17 |
* @param int|bool $urlEncoding How the query string is encoded
|
|
|
|
|
18 |
*/
|
19 |
+
public static function parse(string $str, $urlEncoding = \true) : array
|
20 |
{
|
21 |
$result = [];
|
22 |
if ($str === '') {
|
24 |
}
|
25 |
if ($urlEncoding === \true) {
|
26 |
$decoder = function ($value) {
|
27 |
+
return \rawurldecode(\str_replace('+', ' ', (string) $value));
|
28 |
};
|
29 |
} elseif ($urlEncoding === \PHP_QUERY_RFC3986) {
|
30 |
$decoder = 'rawurldecode';
|
61 |
* @param int|false $encoding Set to false to not encode, PHP_QUERY_RFC3986
|
62 |
* to encode using RFC3986, or PHP_QUERY_RFC1738
|
63 |
* to encode using RFC1738.
|
|
|
|
|
64 |
*/
|
65 |
+
public static function build(array $params, $encoding = \PHP_QUERY_RFC3986) : string
|
66 |
{
|
67 |
if (!$params) {
|
68 |
return '';
|
69 |
}
|
70 |
if ($encoding === \false) {
|
71 |
+
$encoder = function (string $str) : string {
|
72 |
return $str;
|
73 |
};
|
74 |
} elseif ($encoding === \PHP_QUERY_RFC3986) {
|
80 |
}
|
81 |
$qs = '';
|
82 |
foreach ($params as $k => $v) {
|
83 |
+
$k = $encoder((string) $k);
|
84 |
if (!\is_array($v)) {
|
85 |
$qs .= $k;
|
86 |
+
$v = \is_bool($v) ? (int) $v : $v;
|
87 |
if ($v !== null) {
|
88 |
+
$qs .= '=' . $encoder((string) $v);
|
89 |
}
|
90 |
$qs .= '&';
|
91 |
} else {
|
92 |
foreach ($v as $vv) {
|
93 |
$qs .= $k;
|
94 |
+
$vv = \is_bool($vv) ? (int) $vv : $vv;
|
95 |
if ($vv !== null) {
|
96 |
+
$qs .= '=' . $encoder((string) $vv);
|
97 |
}
|
98 |
$qs .= '&';
|
99 |
}
|
vendor_prefix/guzzlehttp/psr7/src/Request.php
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
<?php
|
2 |
|
|
|
3 |
namespace PYS_PRO_GLOBAL\GuzzleHttp\Psr7;
|
4 |
|
5 |
use InvalidArgumentException;
|
@@ -21,11 +22,11 @@ class Request implements \PYS_PRO_GLOBAL\Psr\Http\Message\RequestInterface
|
|
21 |
/**
|
22 |
* @param string $method HTTP method
|
23 |
* @param string|UriInterface $uri URI
|
24 |
-
* @param array
|
25 |
* @param string|resource|StreamInterface|null $body Request body
|
26 |
* @param string $version Protocol version
|
27 |
*/
|
28 |
-
public function __construct($method, $uri, array $headers = [], $body = null, $version = '1.1')
|
29 |
{
|
30 |
$this->assertMethod($method);
|
31 |
if (!$uri instanceof \PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface) {
|
@@ -42,13 +43,13 @@ class Request implements \PYS_PRO_GLOBAL\Psr\Http\Message\RequestInterface
|
|
42 |
$this->stream = \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Utils::streamFor($body);
|
43 |
}
|
44 |
}
|
45 |
-
public function getRequestTarget()
|
46 |
{
|
47 |
if ($this->requestTarget !== null) {
|
48 |
return $this->requestTarget;
|
49 |
}
|
50 |
$target = $this->uri->getPath();
|
51 |
-
if ($target
|
52 |
$target = '/';
|
53 |
}
|
54 |
if ($this->uri->getQuery() != '') {
|
@@ -56,7 +57,7 @@ class Request implements \PYS_PRO_GLOBAL\Psr\Http\Message\RequestInterface
|
|
56 |
}
|
57 |
return $target;
|
58 |
}
|
59 |
-
public function withRequestTarget($requestTarget)
|
60 |
{
|
61 |
if (\preg_match('#\\s#', $requestTarget)) {
|
62 |
throw new \InvalidArgumentException('Invalid request target provided; cannot contain whitespace');
|
@@ -65,22 +66,22 @@ class Request implements \PYS_PRO_GLOBAL\Psr\Http\Message\RequestInterface
|
|
65 |
$new->requestTarget = $requestTarget;
|
66 |
return $new;
|
67 |
}
|
68 |
-
public function getMethod()
|
69 |
{
|
70 |
return $this->method;
|
71 |
}
|
72 |
-
public function withMethod($method)
|
73 |
{
|
74 |
$this->assertMethod($method);
|
75 |
$new = clone $this;
|
76 |
$new->method = \strtoupper($method);
|
77 |
return $new;
|
78 |
}
|
79 |
-
public function getUri()
|
80 |
{
|
81 |
return $this->uri;
|
82 |
}
|
83 |
-
public function withUri(\PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface $uri, $preserveHost = \false)
|
84 |
{
|
85 |
if ($uri === $this->uri) {
|
86 |
return $this;
|
@@ -92,7 +93,7 @@ class Request implements \PYS_PRO_GLOBAL\Psr\Http\Message\RequestInterface
|
|
92 |
}
|
93 |
return $new;
|
94 |
}
|
95 |
-
private function updateHostFromUri()
|
96 |
{
|
97 |
$host = $this->uri->getHost();
|
98 |
if ($host == '') {
|
@@ -111,7 +112,10 @@ class Request implements \PYS_PRO_GLOBAL\Psr\Http\Message\RequestInterface
|
|
111 |
// See: http://tools.ietf.org/html/rfc7230#section-5.4
|
112 |
$this->headers = [$header => [$host]] + $this->headers;
|
113 |
}
|
114 |
-
|
|
|
|
|
|
|
115 |
{
|
116 |
if (!\is_string($method) || $method === '') {
|
117 |
throw new \InvalidArgumentException('Method must be a non-empty string.');
|
1 |
<?php
|
2 |
|
3 |
+
declare (strict_types=1);
|
4 |
namespace PYS_PRO_GLOBAL\GuzzleHttp\Psr7;
|
5 |
|
6 |
use InvalidArgumentException;
|
22 |
/**
|
23 |
* @param string $method HTTP method
|
24 |
* @param string|UriInterface $uri URI
|
25 |
+
* @param array<string, string|string[]> $headers Request headers
|
26 |
* @param string|resource|StreamInterface|null $body Request body
|
27 |
* @param string $version Protocol version
|
28 |
*/
|
29 |
+
public function __construct(string $method, $uri, array $headers = [], $body = null, string $version = '1.1')
|
30 |
{
|
31 |
$this->assertMethod($method);
|
32 |
if (!$uri instanceof \PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface) {
|
43 |
$this->stream = \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Utils::streamFor($body);
|
44 |
}
|
45 |
}
|
46 |
+
public function getRequestTarget() : string
|
47 |
{
|
48 |
if ($this->requestTarget !== null) {
|
49 |
return $this->requestTarget;
|
50 |
}
|
51 |
$target = $this->uri->getPath();
|
52 |
+
if ($target === '') {
|
53 |
$target = '/';
|
54 |
}
|
55 |
if ($this->uri->getQuery() != '') {
|
57 |
}
|
58 |
return $target;
|
59 |
}
|
60 |
+
public function withRequestTarget($requestTarget) : \PYS_PRO_GLOBAL\Psr\Http\Message\RequestInterface
|
61 |
{
|
62 |
if (\preg_match('#\\s#', $requestTarget)) {
|
63 |
throw new \InvalidArgumentException('Invalid request target provided; cannot contain whitespace');
|
66 |
$new->requestTarget = $requestTarget;
|
67 |
return $new;
|
68 |
}
|
69 |
+
public function getMethod() : string
|
70 |
{
|
71 |
return $this->method;
|
72 |
}
|
73 |
+
public function withMethod($method) : \PYS_PRO_GLOBAL\Psr\Http\Message\RequestInterface
|
74 |
{
|
75 |
$this->assertMethod($method);
|
76 |
$new = clone $this;
|
77 |
$new->method = \strtoupper($method);
|
78 |
return $new;
|
79 |
}
|
80 |
+
public function getUri() : \PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface
|
81 |
{
|
82 |
return $this->uri;
|
83 |
}
|
84 |
+
public function withUri(\PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface $uri, $preserveHost = \false) : \PYS_PRO_GLOBAL\Psr\Http\Message\RequestInterface
|
85 |
{
|
86 |
if ($uri === $this->uri) {
|
87 |
return $this;
|
93 |
}
|
94 |
return $new;
|
95 |
}
|
96 |
+
private function updateHostFromUri() : void
|
97 |
{
|
98 |
$host = $this->uri->getHost();
|
99 |
if ($host == '') {
|
112 |
// See: http://tools.ietf.org/html/rfc7230#section-5.4
|
113 |
$this->headers = [$header => [$host]] + $this->headers;
|
114 |
}
|
115 |
+
/**
|
116 |
+
* @param mixed $method
|
117 |
+
*/
|
118 |
+
private function assertMethod($method) : void
|
119 |
{
|
120 |
if (!\is_string($method) || $method === '') {
|
121 |
throw new \InvalidArgumentException('Method must be a non-empty string.');
|
vendor_prefix/guzzlehttp/psr7/src/Response.php
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
<?php
|
2 |
|
|
|
3 |
namespace PYS_PRO_GLOBAL\GuzzleHttp\Psr7;
|
4 |
|
5 |
use PYS_PRO_GLOBAL\Psr\Http\Message\ResponseInterface;
|
@@ -10,64 +11,65 @@ use PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface;
|
|
10 |
class Response implements \PYS_PRO_GLOBAL\Psr\Http\Message\ResponseInterface
|
11 |
{
|
12 |
use MessageTrait;
|
13 |
-
/**
|
14 |
-
private
|
15 |
/** @var string */
|
16 |
-
private $reasonPhrase
|
17 |
/** @var int */
|
18 |
-
private $statusCode
|
19 |
/**
|
20 |
* @param int $status Status code
|
21 |
-
* @param array
|
22 |
* @param string|resource|StreamInterface|null $body Response body
|
23 |
* @param string $version Protocol version
|
24 |
* @param string|null $reason Reason phrase (when empty a default will be used based on the status code)
|
25 |
*/
|
26 |
-
public function __construct($status = 200, array $headers = [], $body = null, $version = '1.1', $reason = null)
|
27 |
{
|
28 |
-
$this->assertStatusCodeIsInteger($status);
|
29 |
-
$status = (int) $status;
|
30 |
$this->assertStatusCodeRange($status);
|
31 |
$this->statusCode = $status;
|
32 |
if ($body !== '' && $body !== null) {
|
33 |
$this->stream = \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Utils::streamFor($body);
|
34 |
}
|
35 |
$this->setHeaders($headers);
|
36 |
-
if ($reason == '' && isset(self
|
37 |
-
$this->reasonPhrase = self
|
38 |
} else {
|
39 |
$this->reasonPhrase = (string) $reason;
|
40 |
}
|
41 |
$this->protocol = $version;
|
42 |
}
|
43 |
-
public function getStatusCode()
|
44 |
{
|
45 |
return $this->statusCode;
|
46 |
}
|
47 |
-
public function getReasonPhrase()
|
48 |
{
|
49 |
return $this->reasonPhrase;
|
50 |
}
|
51 |
-
public function withStatus($code, $reasonPhrase = '')
|
52 |
{
|
53 |
$this->assertStatusCodeIsInteger($code);
|
54 |
$code = (int) $code;
|
55 |
$this->assertStatusCodeRange($code);
|
56 |
$new = clone $this;
|
57 |
$new->statusCode = $code;
|
58 |
-
if ($reasonPhrase == '' && isset(self
|
59 |
-
$reasonPhrase = self
|
60 |
}
|
61 |
$new->reasonPhrase = (string) $reasonPhrase;
|
62 |
return $new;
|
63 |
}
|
64 |
-
|
|
|
|
|
|
|
65 |
{
|
66 |
if (\filter_var($statusCode, \FILTER_VALIDATE_INT) === \false) {
|
67 |
throw new \InvalidArgumentException('Status code must be an integer value.');
|
68 |
}
|
69 |
}
|
70 |
-
private function assertStatusCodeRange($statusCode)
|
71 |
{
|
72 |
if ($statusCode < 100 || $statusCode >= 600) {
|
73 |
throw new \InvalidArgumentException('Status code must be an integer value between 1xx and 5xx.');
|
1 |
<?php
|
2 |
|
3 |
+
declare (strict_types=1);
|
4 |
namespace PYS_PRO_GLOBAL\GuzzleHttp\Psr7;
|
5 |
|
6 |
use PYS_PRO_GLOBAL\Psr\Http\Message\ResponseInterface;
|
11 |
class Response implements \PYS_PRO_GLOBAL\Psr\Http\Message\ResponseInterface
|
12 |
{
|
13 |
use MessageTrait;
|
14 |
+
/** Map of standard HTTP status code/reason phrases */
|
15 |
+
private const PHRASES = [100 => 'Continue', 101 => 'Switching Protocols', 102 => 'Processing', 200 => 'OK', 201 => 'Created', 202 => 'Accepted', 203 => 'Non-Authoritative Information', 204 => 'No Content', 205 => 'Reset Content', 206 => 'Partial Content', 207 => 'Multi-status', 208 => 'Already Reported', 300 => 'Multiple Choices', 301 => 'Moved Permanently', 302 => 'Found', 303 => 'See Other', 304 => 'Not Modified', 305 => 'Use Proxy', 306 => 'Switch Proxy', 307 => 'Temporary Redirect', 308 => 'Permanent Redirect', 400 => 'Bad Request', 401 => 'Unauthorized', 402 => 'Payment Required', 403 => 'Forbidden', 404 => 'Not Found', 405 => 'Method Not Allowed', 406 => 'Not Acceptable', 407 => 'Proxy Authentication Required', 408 => 'Request Time-out', 409 => 'Conflict', 410 => 'Gone', 411 => 'Length Required', 412 => 'Precondition Failed', 413 => 'Request Entity Too Large', 414 => 'Request-URI Too Large', 415 => 'Unsupported Media Type', 416 => 'Requested range not satisfiable', 417 => 'Expectation Failed', 418 => 'I\'m a teapot', 422 => 'Unprocessable Entity', 423 => 'Locked', 424 => 'Failed Dependency', 425 => 'Unordered Collection', 426 => 'Upgrade Required', 428 => 'Precondition Required', 429 => 'Too Many Requests', 431 => 'Request Header Fields Too Large', 451 => 'Unavailable For Legal Reasons', 500 => 'Internal Server Error', 501 => 'Not Implemented', 502 => 'Bad Gateway', 503 => 'Service Unavailable', 504 => 'Gateway Time-out', 505 => 'HTTP Version not supported', 506 => 'Variant Also Negotiates', 507 => 'Insufficient Storage', 508 => 'Loop Detected', 510 => 'Not Extended', 511 => 'Network Authentication Required'];
|
16 |
/** @var string */
|
17 |
+
private $reasonPhrase;
|
18 |
/** @var int */
|
19 |
+
private $statusCode;
|
20 |
/**
|
21 |
* @param int $status Status code
|
22 |
+
* @param array<string, string|string[]> $headers Response headers
|
23 |
* @param string|resource|StreamInterface|null $body Response body
|
24 |
* @param string $version Protocol version
|
25 |
* @param string|null $reason Reason phrase (when empty a default will be used based on the status code)
|
26 |
*/
|
27 |
+
public function __construct(int $status = 200, array $headers = [], $body = null, string $version = '1.1', string $reason = null)
|
28 |
{
|
|
|
|
|
29 |
$this->assertStatusCodeRange($status);
|
30 |
$this->statusCode = $status;
|
31 |
if ($body !== '' && $body !== null) {
|
32 |
$this->stream = \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Utils::streamFor($body);
|
33 |
}
|
34 |
$this->setHeaders($headers);
|
35 |
+
if ($reason == '' && isset(self::PHRASES[$this->statusCode])) {
|
36 |
+
$this->reasonPhrase = self::PHRASES[$this->statusCode];
|
37 |
} else {
|
38 |
$this->reasonPhrase = (string) $reason;
|
39 |
}
|
40 |
$this->protocol = $version;
|
41 |
}
|
42 |
+
public function getStatusCode() : int
|
43 |
{
|
44 |
return $this->statusCode;
|
45 |
}
|
46 |
+
public function getReasonPhrase() : string
|
47 |
{
|
48 |
return $this->reasonPhrase;
|
49 |
}
|
50 |
+
public function withStatus($code, $reasonPhrase = '') : \PYS_PRO_GLOBAL\Psr\Http\Message\ResponseInterface
|
51 |
{
|
52 |
$this->assertStatusCodeIsInteger($code);
|
53 |
$code = (int) $code;
|
54 |
$this->assertStatusCodeRange($code);
|
55 |
$new = clone $this;
|
56 |
$new->statusCode = $code;
|
57 |
+
if ($reasonPhrase == '' && isset(self::PHRASES[$new->statusCode])) {
|
58 |
+
$reasonPhrase = self::PHRASES[$new->statusCode];
|
59 |
}
|
60 |
$new->reasonPhrase = (string) $reasonPhrase;
|
61 |
return $new;
|
62 |
}
|
63 |
+
/**
|
64 |
+
* @param mixed $statusCode
|
65 |
+
*/
|
66 |
+
private function assertStatusCodeIsInteger($statusCode) : void
|
67 |
{
|
68 |
if (\filter_var($statusCode, \FILTER_VALIDATE_INT) === \false) {
|
69 |
throw new \InvalidArgumentException('Status code must be an integer value.');
|
70 |
}
|
71 |
}
|
72 |
+
private function assertStatusCodeRange(int $statusCode) : void
|
73 |
{
|
74 |
if ($statusCode < 100 || $statusCode >= 600) {
|
75 |
throw new \InvalidArgumentException('Status code must be an integer value between 1xx and 5xx.');
|
vendor_prefix/guzzlehttp/psr7/src/Rfc7230.php
CHANGED
@@ -1,12 +1,15 @@
|
|
1 |
<?php
|
2 |
|
|
|
3 |
namespace PYS_PRO_GLOBAL\GuzzleHttp\Psr7;
|
4 |
|
|
|
|
|
|
|
5 |
final class Rfc7230
|
6 |
{
|
7 |
/**
|
8 |
-
* Header related regular expressions (
|
9 |
-
* (Note: once we require PHP 7.x we could just depend on the upstream package)
|
10 |
*
|
11 |
* Note: header delimiter (\r\n) is modified to \r?\n to accept line feed only delimiters for BC reasons.
|
12 |
*
|
@@ -14,6 +17,6 @@ final class Rfc7230
|
|
14 |
*
|
15 |
* @license https://github.com/amphp/http/blob/v1.0.1/LICENSE
|
16 |
*/
|
17 |
-
const HEADER_REGEX = "(^([^()<>@,;:\\\"/[\\]?={}\1- ]++):[ \t]*+((?:[ \t]*+[!-~�-�]++)*+)[ \t]*+\r?\n)m";
|
18 |
-
const HEADER_FOLD_REGEX = "(\r?\n[ \t]++)";
|
19 |
}
|
1 |
<?php
|
2 |
|
3 |
+
declare (strict_types=1);
|
4 |
namespace PYS_PRO_GLOBAL\GuzzleHttp\Psr7;
|
5 |
|
6 |
+
/**
|
7 |
+
* @internal
|
8 |
+
*/
|
9 |
final class Rfc7230
|
10 |
{
|
11 |
/**
|
12 |
+
* Header related regular expressions (based on amphp/http package)
|
|
|
13 |
*
|
14 |
* Note: header delimiter (\r\n) is modified to \r?\n to accept line feed only delimiters for BC reasons.
|
15 |
*
|
17 |
*
|
18 |
* @license https://github.com/amphp/http/blob/v1.0.1/LICENSE
|
19 |
*/
|
20 |
+
public const HEADER_REGEX = "(^([^()<>@,;:\\\"/[\\]?={}\1- ]++):[ \t]*+((?:[ \t]*+[!-~�-�]++)*+)[ \t]*+\r?\n)m";
|
21 |
+
public const HEADER_FOLD_REGEX = "(\r?\n[ \t]++)";
|
22 |
}
|
vendor_prefix/guzzlehttp/psr7/src/ServerRequest.php
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
<?php
|
2 |
|
|
|
3 |
namespace PYS_PRO_GLOBAL\GuzzleHttp\Psr7;
|
4 |
|
5 |
use InvalidArgumentException;
|
@@ -50,12 +51,12 @@ class ServerRequest extends \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Request implements \
|
|
50 |
/**
|
51 |
* @param string $method HTTP method
|
52 |
* @param string|UriInterface $uri URI
|
53 |
-
* @param array
|
54 |
* @param string|resource|StreamInterface|null $body Request body
|
55 |
* @param string $version Protocol version
|
56 |
* @param array $serverParams Typically the $_SERVER superglobal
|
57 |
*/
|
58 |
-
public function __construct($method, $uri, array $headers = [], $body = null, $version = '1.1', array $serverParams = [])
|
59 |
{
|
60 |
$this->serverParams = $serverParams;
|
61 |
parent::__construct($method, $uri, $headers, $body, $version);
|
@@ -65,11 +66,9 @@ class ServerRequest extends \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Request implements \
|
|
65 |
*
|
66 |
* @param array $files A array which respect $_FILES structure
|
67 |
*
|
68 |
-
* @return array
|
69 |
-
*
|
70 |
* @throws InvalidArgumentException for unrecognized values
|
71 |
*/
|
72 |
-
public static function normalizeFiles(array $files)
|
73 |
{
|
74 |
$normalized = [];
|
75 |
foreach ($files as $key => $value) {
|
@@ -94,7 +93,7 @@ class ServerRequest extends \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Request implements \
|
|
94 |
*
|
95 |
* @param array $value $_FILES struct
|
96 |
*
|
97 |
-
* @return
|
98 |
*/
|
99 |
private static function createUploadedFileFromSpec(array $value)
|
100 |
{
|
@@ -109,11 +108,9 @@ class ServerRequest extends \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Request implements \
|
|
109 |
* Loops through all nested files and returns a normalized array of
|
110 |
* UploadedFileInterface instances.
|
111 |
*
|
112 |
-
* @param array $files
|
113 |
-
*
|
114 |
* @return UploadedFileInterface[]
|
115 |
*/
|
116 |
-
private static function normalizeNestedFileSpec(array $files = [])
|
117 |
{
|
118 |
$normalizedFiles = [];
|
119 |
foreach (\array_keys($files['tmp_name']) as $key) {
|
@@ -129,12 +126,10 @@ class ServerRequest extends \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Request implements \
|
|
129 |
* $_COOKIE
|
130 |
* $_FILES
|
131 |
* $_SERVER
|
132 |
-
*
|
133 |
-
* @return ServerRequestInterface
|
134 |
*/
|
135 |
-
public static function fromGlobals()
|
136 |
{
|
137 |
-
$method =
|
138 |
$headers = \getallheaders();
|
139 |
$uri = self::getUriFromGlobals();
|
140 |
$body = new \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\CachingStream(new \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\LazyOpenStream('php://input', 'r+'));
|
@@ -142,29 +137,27 @@ class ServerRequest extends \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Request implements \
|
|
142 |
$serverRequest = new \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\ServerRequest($method, $uri, $headers, $body, $protocol, $_SERVER);
|
143 |
return $serverRequest->withCookieParams($_COOKIE)->withQueryParams($_GET)->withParsedBody($_POST)->withUploadedFiles(self::normalizeFiles($_FILES));
|
144 |
}
|
145 |
-
private static function extractHostAndPortFromAuthority($authority)
|
146 |
{
|
147 |
$uri = 'http://' . $authority;
|
148 |
$parts = \parse_url($uri);
|
149 |
if (\false === $parts) {
|
150 |
return [null, null];
|
151 |
}
|
152 |
-
$host =
|
153 |
-
$port =
|
154 |
return [$host, $port];
|
155 |
}
|
156 |
/**
|
157 |
* Get a Uri populated with values from $_SERVER.
|
158 |
-
*
|
159 |
-
* @return UriInterface
|
160 |
*/
|
161 |
-
public static function getUriFromGlobals()
|
162 |
{
|
163 |
$uri = new \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Uri('');
|
164 |
$uri = $uri->withScheme(!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' ? 'https' : 'http');
|
165 |
$hasPort = \false;
|
166 |
if (isset($_SERVER['HTTP_HOST'])) {
|
167 |
-
|
168 |
if ($host !== null) {
|
169 |
$uri = $uri->withHost($host);
|
170 |
}
|
@@ -194,56 +187,35 @@ class ServerRequest extends \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Request implements \
|
|
194 |
}
|
195 |
return $uri;
|
196 |
}
|
197 |
-
|
198 |
-
* {@inheritdoc}
|
199 |
-
*/
|
200 |
-
public function getServerParams()
|
201 |
{
|
202 |
return $this->serverParams;
|
203 |
}
|
204 |
-
|
205 |
-
* {@inheritdoc}
|
206 |
-
*/
|
207 |
-
public function getUploadedFiles()
|
208 |
{
|
209 |
return $this->uploadedFiles;
|
210 |
}
|
211 |
-
|
212 |
-
* {@inheritdoc}
|
213 |
-
*/
|
214 |
-
public function withUploadedFiles(array $uploadedFiles)
|
215 |
{
|
216 |
$new = clone $this;
|
217 |
$new->uploadedFiles = $uploadedFiles;
|
218 |
return $new;
|
219 |
}
|
220 |
-
|
221 |
-
* {@inheritdoc}
|
222 |
-
*/
|
223 |
-
public function getCookieParams()
|
224 |
{
|
225 |
return $this->cookieParams;
|
226 |
}
|
227 |
-
|
228 |
-
* {@inheritdoc}
|
229 |
-
*/
|
230 |
-
public function withCookieParams(array $cookies)
|
231 |
{
|
232 |
$new = clone $this;
|
233 |
$new->cookieParams = $cookies;
|
234 |
return $new;
|
235 |
}
|
236 |
-
|
237 |
-
* {@inheritdoc}
|
238 |
-
*/
|
239 |
-
public function getQueryParams()
|
240 |
{
|
241 |
return $this->queryParams;
|
242 |
}
|
243 |
-
|
244 |
-
* {@inheritdoc}
|
245 |
-
*/
|
246 |
-
public function withQueryParams(array $query)
|
247 |
{
|
248 |
$new = clone $this;
|
249 |
$new->queryParams = $query;
|
@@ -251,29 +223,27 @@ class ServerRequest extends \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Request implements \
|
|
251 |
}
|
252 |
/**
|
253 |
* {@inheritdoc}
|
|
|
|
|
254 |
*/
|
255 |
public function getParsedBody()
|
256 |
{
|
257 |
return $this->parsedBody;
|
258 |
}
|
259 |
-
|
260 |
-
* {@inheritdoc}
|
261 |
-
*/
|
262 |
-
public function withParsedBody($data)
|
263 |
{
|
264 |
$new = clone $this;
|
265 |
$new->parsedBody = $data;
|
266 |
return $new;
|
267 |
}
|
268 |
-
|
269 |
-
* {@inheritdoc}
|
270 |
-
*/
|
271 |
-
public function getAttributes()
|
272 |
{
|
273 |
return $this->attributes;
|
274 |
}
|
275 |
/**
|
276 |
* {@inheritdoc}
|
|
|
|
|
277 |
*/
|
278 |
public function getAttribute($attribute, $default = null)
|
279 |
{
|
@@ -282,19 +252,13 @@ class ServerRequest extends \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Request implements \
|
|
282 |
}
|
283 |
return $this->attributes[$attribute];
|
284 |
}
|
285 |
-
|
286 |
-
* {@inheritdoc}
|
287 |
-
*/
|
288 |
-
public function withAttribute($attribute, $value)
|
289 |
{
|
290 |
$new = clone $this;
|
291 |
$new->attributes[$attribute] = $value;
|
292 |
return $new;
|
293 |
}
|
294 |
-
|
295 |
-
* {@inheritdoc}
|
296 |
-
*/
|
297 |
-
public function withoutAttribute($attribute)
|
298 |
{
|
299 |
if (\false === \array_key_exists($attribute, $this->attributes)) {
|
300 |
return $this;
|
1 |
<?php
|
2 |
|
3 |
+
declare (strict_types=1);
|
4 |
namespace PYS_PRO_GLOBAL\GuzzleHttp\Psr7;
|
5 |
|
6 |
use InvalidArgumentException;
|
51 |
/**
|
52 |
* @param string $method HTTP method
|
53 |
* @param string|UriInterface $uri URI
|
54 |
+
* @param array<string, string|string[]> $headers Request headers
|
55 |
* @param string|resource|StreamInterface|null $body Request body
|
56 |
* @param string $version Protocol version
|
57 |
* @param array $serverParams Typically the $_SERVER superglobal
|
58 |
*/
|
59 |
+
public function __construct(string $method, $uri, array $headers = [], $body = null, string $version = '1.1', array $serverParams = [])
|
60 |
{
|
61 |
$this->serverParams = $serverParams;
|
62 |
parent::__construct($method, $uri, $headers, $body, $version);
|
66 |
*
|
67 |
* @param array $files A array which respect $_FILES structure
|
68 |
*
|
|
|
|
|
69 |
* @throws InvalidArgumentException for unrecognized values
|
70 |
*/
|
71 |
+
public static function normalizeFiles(array $files) : array
|
72 |
{
|
73 |
$normalized = [];
|
74 |
foreach ($files as $key => $value) {
|
93 |
*
|
94 |
* @param array $value $_FILES struct
|
95 |
*
|
96 |
+
* @return UploadedFileInterface|UploadedFileInterface[]
|
97 |
*/
|
98 |
private static function createUploadedFileFromSpec(array $value)
|
99 |
{
|
108 |
* Loops through all nested files and returns a normalized array of
|
109 |
* UploadedFileInterface instances.
|
110 |
*
|
|
|
|
|
111 |
* @return UploadedFileInterface[]
|
112 |
*/
|
113 |
+
private static function normalizeNestedFileSpec(array $files = []) : array
|
114 |
{
|
115 |
$normalizedFiles = [];
|
116 |
foreach (\array_keys($files['tmp_name']) as $key) {
|
126 |
* $_COOKIE
|
127 |
* $_FILES
|
128 |
* $_SERVER
|
|
|
|
|
129 |
*/
|
130 |
+
public static function fromGlobals() : \PYS_PRO_GLOBAL\Psr\Http\Message\ServerRequestInterface
|
131 |
{
|
132 |
+
$method = $_SERVER['REQUEST_METHOD'] ?? 'GET';
|
133 |
$headers = \getallheaders();
|
134 |
$uri = self::getUriFromGlobals();
|
135 |
$body = new \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\CachingStream(new \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\LazyOpenStream('php://input', 'r+'));
|
137 |
$serverRequest = new \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\ServerRequest($method, $uri, $headers, $body, $protocol, $_SERVER);
|
138 |
return $serverRequest->withCookieParams($_COOKIE)->withQueryParams($_GET)->withParsedBody($_POST)->withUploadedFiles(self::normalizeFiles($_FILES));
|
139 |
}
|
140 |
+
private static function extractHostAndPortFromAuthority(string $authority) : array
|
141 |
{
|
142 |
$uri = 'http://' . $authority;
|
143 |
$parts = \parse_url($uri);
|
144 |
if (\false === $parts) {
|
145 |
return [null, null];
|
146 |
}
|
147 |
+
$host = $parts['host'] ?? null;
|
148 |
+
$port = $parts['port'] ?? null;
|
149 |
return [$host, $port];
|
150 |
}
|
151 |
/**
|
152 |
* Get a Uri populated with values from $_SERVER.
|
|
|
|
|
153 |
*/
|
154 |
+
public static function getUriFromGlobals() : \PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface
|
155 |
{
|
156 |
$uri = new \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Uri('');
|
157 |
$uri = $uri->withScheme(!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' ? 'https' : 'http');
|
158 |
$hasPort = \false;
|
159 |
if (isset($_SERVER['HTTP_HOST'])) {
|
160 |
+
[$host, $port] = self::extractHostAndPortFromAuthority($_SERVER['HTTP_HOST']);
|
161 |
if ($host !== null) {
|
162 |
$uri = $uri->withHost($host);
|
163 |
}
|
187 |
}
|
188 |
return $uri;
|
189 |
}
|
190 |
+
public function getServerParams() : array
|
|
|
|
|
|
|
191 |
{
|
192 |
return $this->serverParams;
|
193 |
}
|
194 |
+
public function getUploadedFiles() : array
|
|
|
|
|
|
|
195 |
{
|
196 |
return $this->uploadedFiles;
|
197 |
}
|
198 |
+
public function withUploadedFiles(array $uploadedFiles) : \PYS_PRO_GLOBAL\Psr\Http\Message\ServerRequestInterface
|
|
|
|
|
|
|
199 |
{
|
200 |
$new = clone $this;
|
201 |
$new->uploadedFiles = $uploadedFiles;
|
202 |
return $new;
|
203 |
}
|
204 |
+
public function getCookieParams() : array
|
|
|
|
|
|
|
205 |
{
|
206 |
return $this->cookieParams;
|
207 |
}
|
208 |
+
public function withCookieParams(array $cookies) : \PYS_PRO_GLOBAL\Psr\Http\Message\ServerRequestInterface
|
|
|
|
|
|
|
209 |
{
|
210 |
$new = clone $this;
|
211 |
$new->cookieParams = $cookies;
|
212 |
return $new;
|
213 |
}
|
214 |
+
public function getQueryParams() : array
|
|
|
|
|
|
|
215 |
{
|
216 |
return $this->queryParams;
|
217 |
}
|
218 |
+
public function withQueryParams(array $query) : \PYS_PRO_GLOBAL\Psr\Http\Message\ServerRequestInterface
|
|
|
|
|
|
|
219 |
{
|
220 |
$new = clone $this;
|
221 |
$new->queryParams = $query;
|
223 |
}
|
224 |
/**
|
225 |
* {@inheritdoc}
|
226 |
+
*
|
227 |
+
* @return array|object|null
|
228 |
*/
|
229 |
public function getParsedBody()
|
230 |
{
|
231 |
return $this->parsedBody;
|
232 |
}
|
233 |
+
public function withParsedBody($data) : \PYS_PRO_GLOBAL\Psr\Http\Message\ServerRequestInterface
|
|
|
|
|
|
|
234 |
{
|
235 |
$new = clone $this;
|
236 |
$new->parsedBody = $data;
|
237 |
return $new;
|
238 |
}
|
239 |
+
public function getAttributes() : array
|
|
|
|
|
|
|
240 |
{
|
241 |
return $this->attributes;
|
242 |
}
|
243 |
/**
|
244 |
* {@inheritdoc}
|
245 |
+
*
|
246 |
+
* @return mixed
|
247 |
*/
|
248 |
public function getAttribute($attribute, $default = null)
|
249 |
{
|
252 |
}
|
253 |
return $this->attributes[$attribute];
|
254 |
}
|
255 |
+
public function withAttribute($attribute, $value) : \PYS_PRO_GLOBAL\Psr\Http\Message\ServerRequestInterface
|
|
|
|
|
|
|
256 |
{
|
257 |
$new = clone $this;
|
258 |
$new->attributes[$attribute] = $value;
|
259 |
return $new;
|
260 |
}
|
261 |
+
public function withoutAttribute($attribute) : \PYS_PRO_GLOBAL\Psr\Http\Message\ServerRequestInterface
|
|
|
|
|
|
|
262 |
{
|
263 |
if (\false === \array_key_exists($attribute, $this->attributes)) {
|
264 |
return $this;
|
vendor_prefix/guzzlehttp/psr7/src/Stream.php
CHANGED
@@ -1,31 +1,33 @@
|
|
1 |
<?php
|
2 |
|
|
|
3 |
namespace PYS_PRO_GLOBAL\GuzzleHttp\Psr7;
|
4 |
|
5 |
use PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface;
|
6 |
/**
|
7 |
* PHP stream implementation.
|
8 |
-
*
|
9 |
-
* @var $stream
|
10 |
*/
|
11 |
class Stream implements \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface
|
12 |
{
|
13 |
/**
|
14 |
-
* Resource modes.
|
15 |
-
*
|
16 |
-
* @var string
|
17 |
-
*
|
18 |
* @see http://php.net/manual/function.fopen.php
|
19 |
* @see http://php.net/manual/en/function.gzopen.php
|
20 |
*/
|
21 |
-
const READABLE_MODES = '/r|a\\+|ab\\+|w\\+|wb\\+|x\\+|xb\\+|c\\+|cb\\+/';
|
22 |
-
const WRITABLE_MODES = '/a|w|r\\+|rb\\+|rw|x|c/';
|
|
|
23 |
private $stream;
|
|
|
24 |
private $size;
|
|
|
25 |
private $seekable;
|
|
|
26 |
private $readable;
|
|
|
27 |
private $writable;
|
|
|
28 |
private $uri;
|
|
|
29 |
private $customMetadata;
|
30 |
/**
|
31 |
* This constructor accepts an associative array of options.
|
@@ -36,12 +38,12 @@ class Stream implements \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface
|
|
36 |
* - metadata: (array) Any additional metadata to return when the metadata
|
37 |
* of the stream is accessed.
|
38 |
*
|
39 |
-
* @param resource
|
40 |
-
* @param array
|
41 |
*
|
42 |
* @throws \InvalidArgumentException if the stream is not a stream resource
|
43 |
*/
|
44 |
-
public function __construct($stream, $options = [])
|
45 |
{
|
46 |
if (!\is_resource($stream)) {
|
47 |
throw new \InvalidArgumentException('Stream must be a resource');
|
@@ -49,7 +51,7 @@ class Stream implements \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface
|
|
49 |
if (isset($options['size'])) {
|
50 |
$this->size = $options['size'];
|
51 |
}
|
52 |
-
$this->customMetadata =
|
53 |
$this->stream = $stream;
|
54 |
$meta = \stream_get_meta_data($this->stream);
|
55 |
$this->seekable = $meta['seekable'];
|
@@ -64,18 +66,22 @@ class Stream implements \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface
|
|
64 |
{
|
65 |
$this->close();
|
66 |
}
|
67 |
-
public function __toString()
|
68 |
{
|
69 |
try {
|
70 |
if ($this->isSeekable()) {
|
71 |
$this->seek(0);
|
72 |
}
|
73 |
return $this->getContents();
|
74 |
-
} catch (\
|
|
|
|
|
|
|
|
|
75 |
return '';
|
76 |
}
|
77 |
}
|
78 |
-
public function getContents()
|
79 |
{
|
80 |
if (!isset($this->stream)) {
|
81 |
throw new \RuntimeException('Stream is detached');
|
@@ -86,7 +92,7 @@ class Stream implements \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface
|
|
86 |
}
|
87 |
return $contents;
|
88 |
}
|
89 |
-
public function close()
|
90 |
{
|
91 |
if (isset($this->stream)) {
|
92 |
if (\is_resource($this->stream)) {
|
@@ -106,7 +112,7 @@ class Stream implements \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface
|
|
106 |
$this->readable = $this->writable = $this->seekable = \false;
|
107 |
return $result;
|
108 |
}
|
109 |
-
public function getSize()
|
110 |
{
|
111 |
if ($this->size !== null) {
|
112 |
return $this->size;
|
@@ -119,32 +125,32 @@ class Stream implements \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface
|
|
119 |
\clearstatcache(\true, $this->uri);
|
120 |
}
|
121 |
$stats = \fstat($this->stream);
|
122 |
-
if (isset($stats['size'])) {
|
123 |
$this->size = $stats['size'];
|
124 |
return $this->size;
|
125 |
}
|
126 |
return null;
|
127 |
}
|
128 |
-
public function isReadable()
|
129 |
{
|
130 |
return $this->readable;
|
131 |
}
|
132 |
-
public function isWritable()
|
133 |
{
|
134 |
return $this->writable;
|
135 |
}
|
136 |
-
public function isSeekable()
|
137 |
{
|
138 |
return $this->seekable;
|
139 |
}
|
140 |
-
public function eof()
|
141 |
{
|
142 |
if (!isset($this->stream)) {
|
143 |
throw new \RuntimeException('Stream is detached');
|
144 |
}
|
145 |
return \feof($this->stream);
|
146 |
}
|
147 |
-
public function tell()
|
148 |
{
|
149 |
if (!isset($this->stream)) {
|
150 |
throw new \RuntimeException('Stream is detached');
|
@@ -155,11 +161,11 @@ class Stream implements \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface
|
|
155 |
}
|
156 |
return $result;
|
157 |
}
|
158 |
-
public function rewind()
|
159 |
{
|
160 |
$this->seek(0);
|
161 |
}
|
162 |
-
public function seek($offset, $whence = \SEEK_SET)
|
163 |
{
|
164 |
$whence = (int) $whence;
|
165 |
if (!isset($this->stream)) {
|
@@ -172,7 +178,7 @@ class Stream implements \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface
|
|
172 |
throw new \RuntimeException('Unable to seek to stream position ' . $offset . ' with whence ' . \var_export($whence, \true));
|
173 |
}
|
174 |
}
|
175 |
-
public function read($length)
|
176 |
{
|
177 |
if (!isset($this->stream)) {
|
178 |
throw new \RuntimeException('Stream is detached');
|
@@ -192,7 +198,7 @@ class Stream implements \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface
|
|
192 |
}
|
193 |
return $string;
|
194 |
}
|
195 |
-
public function write($string)
|
196 |
{
|
197 |
if (!isset($this->stream)) {
|
198 |
throw new \RuntimeException('Stream is detached');
|
@@ -208,6 +214,11 @@ class Stream implements \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface
|
|
208 |
}
|
209 |
return $result;
|
210 |
}
|
|
|
|
|
|
|
|
|
|
|
211 |
public function getMetadata($key = null)
|
212 |
{
|
213 |
if (!isset($this->stream)) {
|
@@ -218,6 +229,6 @@ class Stream implements \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface
|
|
218 |
return $this->customMetadata[$key];
|
219 |
}
|
220 |
$meta = \stream_get_meta_data($this->stream);
|
221 |
-
return
|
222 |
}
|
223 |
}
|
1 |
<?php
|
2 |
|
3 |
+
declare (strict_types=1);
|
4 |
namespace PYS_PRO_GLOBAL\GuzzleHttp\Psr7;
|
5 |
|
6 |
use PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface;
|
7 |
/**
|
8 |
* PHP stream implementation.
|
|
|
|
|
9 |
*/
|
10 |
class Stream implements \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface
|
11 |
{
|
12 |
/**
|
|
|
|
|
|
|
|
|
13 |
* @see http://php.net/manual/function.fopen.php
|
14 |
* @see http://php.net/manual/en/function.gzopen.php
|
15 |
*/
|
16 |
+
private const READABLE_MODES = '/r|a\\+|ab\\+|w\\+|wb\\+|x\\+|xb\\+|c\\+|cb\\+/';
|
17 |
+
private const WRITABLE_MODES = '/a|w|r\\+|rb\\+|rw|x|c/';
|
18 |
+
/** @var resource */
|
19 |
private $stream;
|
20 |
+
/** @var int|null */
|
21 |
private $size;
|
22 |
+
/** @var bool */
|
23 |
private $seekable;
|
24 |
+
/** @var bool */
|
25 |
private $readable;
|
26 |
+
/** @var bool */
|
27 |
private $writable;
|
28 |
+
/** @var string|null */
|
29 |
private $uri;
|
30 |
+
/** @var mixed[] */
|
31 |
private $customMetadata;
|
32 |
/**
|
33 |
* This constructor accepts an associative array of options.
|
38 |
* - metadata: (array) Any additional metadata to return when the metadata
|
39 |
* of the stream is accessed.
|
40 |
*
|
41 |
+
* @param resource $stream Stream resource to wrap.
|
42 |
+
* @param array{size?: int, metadata?: array} $options Associative array of options.
|
43 |
*
|
44 |
* @throws \InvalidArgumentException if the stream is not a stream resource
|
45 |
*/
|
46 |
+
public function __construct($stream, array $options = [])
|
47 |
{
|
48 |
if (!\is_resource($stream)) {
|
49 |
throw new \InvalidArgumentException('Stream must be a resource');
|
51 |
if (isset($options['size'])) {
|
52 |
$this->size = $options['size'];
|
53 |
}
|
54 |
+
$this->customMetadata = $options['metadata'] ?? [];
|
55 |
$this->stream = $stream;
|
56 |
$meta = \stream_get_meta_data($this->stream);
|
57 |
$this->seekable = $meta['seekable'];
|
66 |
{
|
67 |
$this->close();
|
68 |
}
|
69 |
+
public function __toString() : string
|
70 |
{
|
71 |
try {
|
72 |
if ($this->isSeekable()) {
|
73 |
$this->seek(0);
|
74 |
}
|
75 |
return $this->getContents();
|
76 |
+
} catch (\Throwable $e) {
|
77 |
+
if (\PHP_VERSION_ID >= 70400) {
|
78 |
+
throw $e;
|
79 |
+
}
|
80 |
+
\trigger_error(\sprintf('%s::__toString exception: %s', self::class, (string) $e), \E_USER_ERROR);
|
81 |
return '';
|
82 |
}
|
83 |
}
|
84 |
+
public function getContents() : string
|
85 |
{
|
86 |
if (!isset($this->stream)) {
|
87 |
throw new \RuntimeException('Stream is detached');
|
92 |
}
|
93 |
return $contents;
|
94 |
}
|
95 |
+
public function close() : void
|
96 |
{
|
97 |
if (isset($this->stream)) {
|
98 |
if (\is_resource($this->stream)) {
|
112 |
$this->readable = $this->writable = $this->seekable = \false;
|
113 |
return $result;
|
114 |
}
|
115 |
+
public function getSize() : ?int
|
116 |
{
|
117 |
if ($this->size !== null) {
|
118 |
return $this->size;
|
125 |
\clearstatcache(\true, $this->uri);
|
126 |
}
|
127 |
$stats = \fstat($this->stream);
|
128 |
+
if (\is_array($stats) && isset($stats['size'])) {
|
129 |
$this->size = $stats['size'];
|
130 |
return $this->size;
|
131 |
}
|
132 |
return null;
|
133 |
}
|
134 |
+
public function isReadable() : bool
|
135 |
{
|
136 |
return $this->readable;
|
137 |
}
|
138 |
+
public function isWritable() : bool
|
139 |
{
|
140 |
return $this->writable;
|
141 |
}
|
142 |
+
public function isSeekable() : bool
|
143 |
{
|
144 |
return $this->seekable;
|
145 |
}
|
146 |
+
public function eof() : bool
|
147 |
{
|
148 |
if (!isset($this->stream)) {
|
149 |
throw new \RuntimeException('Stream is detached');
|
150 |
}
|
151 |
return \feof($this->stream);
|
152 |
}
|
153 |
+
public function tell() : int
|
154 |
{
|
155 |
if (!isset($this->stream)) {
|
156 |
throw new \RuntimeException('Stream is detached');
|
161 |
}
|
162 |
return $result;
|
163 |
}
|
164 |
+
public function rewind() : void
|
165 |
{
|
166 |
$this->seek(0);
|
167 |
}
|
168 |
+
public function seek($offset, $whence = \SEEK_SET) : void
|
169 |
{
|
170 |
$whence = (int) $whence;
|
171 |
if (!isset($this->stream)) {
|
178 |
throw new \RuntimeException('Unable to seek to stream position ' . $offset . ' with whence ' . \var_export($whence, \true));
|
179 |
}
|
180 |
}
|
181 |
+
public function read($length) : string
|
182 |
{
|
183 |
if (!isset($this->stream)) {
|
184 |
throw new \RuntimeException('Stream is detached');
|
198 |
}
|
199 |
return $string;
|
200 |
}
|
201 |
+
public function write($string) : int
|
202 |
{
|
203 |
if (!isset($this->stream)) {
|
204 |
throw new \RuntimeException('Stream is detached');
|
214 |
}
|
215 |
return $result;
|
216 |
}
|
217 |
+
/**
|
218 |
+
* {@inheritdoc}
|
219 |
+
*
|
220 |
+
* @return mixed
|
221 |
+
*/
|
222 |
public function getMetadata($key = null)
|
223 |
{
|
224 |
if (!isset($this->stream)) {
|
229 |
return $this->customMetadata[$key];
|
230 |
}
|
231 |
$meta = \stream_get_meta_data($this->stream);
|
232 |
+
return $meta[$key] ?? null;
|
233 |
}
|
234 |
}
|
vendor_prefix/guzzlehttp/psr7/src/StreamDecoratorTrait.php
CHANGED
@@ -1,12 +1,13 @@
|
|
1 |
<?php
|
2 |
|
|
|
3 |
namespace PYS_PRO_GLOBAL\GuzzleHttp\Psr7;
|
4 |
|
5 |
use PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface;
|
6 |
/**
|
7 |
* Stream decorator trait
|
8 |
*
|
9 |
-
* @property StreamInterface stream
|
10 |
*/
|
11 |
trait StreamDecoratorTrait
|
12 |
{
|
@@ -21,53 +22,57 @@ trait StreamDecoratorTrait
|
|
21 |
* Magic method used to create a new stream if streams are not added in
|
22 |
* the constructor of a decorator (e.g., LazyOpenStream).
|
23 |
*
|
24 |
-
* @param string $name Name of the property (allows "stream" only).
|
25 |
-
*
|
26 |
* @return StreamInterface
|
27 |
*/
|
28 |
-
public function __get($name)
|
29 |
{
|
30 |
-
if ($name
|
31 |
$this->stream = $this->createStream();
|
32 |
return $this->stream;
|
33 |
}
|
34 |
throw new \UnexpectedValueException("{$name} not found on class");
|
35 |
}
|
36 |
-
public function __toString()
|
37 |
{
|
38 |
try {
|
39 |
if ($this->isSeekable()) {
|
40 |
$this->seek(0);
|
41 |
}
|
42 |
return $this->getContents();
|
43 |
-
} catch (\
|
44 |
-
|
45 |
-
|
|
|
|
|
46 |
return '';
|
47 |
}
|
48 |
}
|
49 |
-
public function getContents()
|
50 |
{
|
51 |
return \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Utils::copyToString($this);
|
52 |
}
|
53 |
/**
|
54 |
* Allow decorators to implement custom methods
|
55 |
*
|
56 |
-
* @param string $method Missing method name
|
57 |
-
* @param array $args Method arguments
|
58 |
-
*
|
59 |
* @return mixed
|
60 |
*/
|
61 |
-
public function __call($method, array $args)
|
62 |
{
|
63 |
-
|
|
|
|
|
64 |
// Always return the wrapped object if the result is a return $this
|
65 |
return $result === $this->stream ? $this : $result;
|
66 |
}
|
67 |
-
public function close()
|
68 |
{
|
69 |
$this->stream->close();
|
70 |
}
|
|
|
|
|
|
|
|
|
|
|
71 |
public function getMetadata($key = null)
|
72 |
{
|
73 |
return $this->stream->getMetadata($key);
|
@@ -76,54 +81,52 @@ trait StreamDecoratorTrait
|
|
76 |
{
|
77 |
return $this->stream->detach();
|
78 |
}
|
79 |
-
public function getSize()
|
80 |
{
|
81 |
return $this->stream->getSize();
|
82 |
}
|
83 |
-
public function eof()
|
84 |
{
|
85 |
return $this->stream->eof();
|
86 |
}
|
87 |
-
public function tell()
|
88 |
{
|
89 |
return $this->stream->tell();
|
90 |
}
|
91 |
-
public function isReadable()
|
92 |
{
|
93 |
return $this->stream->isReadable();
|
94 |
}
|
95 |
-
public function isWritable()
|
96 |
{
|
97 |
return $this->stream->isWritable();
|
98 |
}
|
99 |
-
public function isSeekable()
|
100 |
{
|
101 |
return $this->stream->isSeekable();
|
102 |
}
|
103 |
-
public function rewind()
|
104 |
{
|
105 |
$this->seek(0);
|
106 |
}
|
107 |
-
public function seek($offset, $whence = \SEEK_SET)
|
108 |
{
|
109 |
$this->stream->seek($offset, $whence);
|
110 |
}
|
111 |
-
public function read($length)
|
112 |
{
|
113 |
return $this->stream->read($length);
|
114 |
}
|
115 |
-
public function write($string)
|
116 |
{
|
117 |
return $this->stream->write($string);
|
118 |
}
|
119 |
/**
|
120 |
* Implement in subclasses to dynamically create streams when requested.
|
121 |
*
|
122 |
-
* @return StreamInterface
|
123 |
-
*
|
124 |
* @throws \BadMethodCallException
|
125 |
*/
|
126 |
-
protected function createStream()
|
127 |
{
|
128 |
throw new \BadMethodCallException('Not implemented');
|
129 |
}
|
1 |
<?php
|
2 |
|
3 |
+
declare (strict_types=1);
|
4 |
namespace PYS_PRO_GLOBAL\GuzzleHttp\Psr7;
|
5 |
|
6 |
use PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface;
|
7 |
/**
|
8 |
* Stream decorator trait
|
9 |
*
|
10 |
+
* @property StreamInterface $stream
|
11 |
*/
|
12 |
trait StreamDecoratorTrait
|
13 |
{
|
22 |
* Magic method used to create a new stream if streams are not added in
|
23 |
* the constructor of a decorator (e.g., LazyOpenStream).
|
24 |
*
|
|
|
|
|
25 |
* @return StreamInterface
|
26 |
*/
|
27 |
+
public function __get(string $name)
|
28 |
{
|
29 |
+
if ($name === 'stream') {
|
30 |
$this->stream = $this->createStream();
|
31 |
return $this->stream;
|
32 |
}
|
33 |
throw new \UnexpectedValueException("{$name} not found on class");
|
34 |
}
|
35 |
+
public function __toString() : string
|
36 |
{
|
37 |
try {
|
38 |
if ($this->isSeekable()) {
|
39 |
$this->seek(0);
|
40 |
}
|
41 |
return $this->getContents();
|
42 |
+
} catch (\Throwable $e) {
|
43 |
+
if (\PHP_VERSION_ID >= 70400) {
|
44 |
+
throw $e;
|
45 |
+
}
|
46 |
+
\trigger_error(\sprintf('%s::__toString exception: %s', self::class, (string) $e), \E_USER_ERROR);
|
47 |
return '';
|
48 |
}
|
49 |
}
|
50 |
+
public function getContents() : string
|
51 |
{
|
52 |
return \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Utils::copyToString($this);
|
53 |
}
|
54 |
/**
|
55 |
* Allow decorators to implement custom methods
|
56 |
*
|
|
|
|
|
|
|
57 |
* @return mixed
|
58 |
*/
|
59 |
+
public function __call(string $method, array $args)
|
60 |
{
|
61 |
+
/** @var callable $callable */
|
62 |
+
$callable = [$this->stream, $method];
|
63 |
+
$result = \call_user_func_array($callable, $args);
|
64 |
// Always return the wrapped object if the result is a return $this
|
65 |
return $result === $this->stream ? $this : $result;
|
66 |
}
|
67 |
+
public function close() : void
|
68 |
{
|
69 |
$this->stream->close();
|
70 |
}
|
71 |
+
/**
|
72 |
+
* {@inheritdoc}
|
73 |
+
*
|
74 |
+
* @return mixed
|
75 |
+
*/
|
76 |
public function getMetadata($key = null)
|
77 |
{
|
78 |
return $this->stream->getMetadata($key);
|
81 |
{
|
82 |
return $this->stream->detach();
|
83 |
}
|
84 |
+
public function getSize() : ?int
|
85 |
{
|
86 |
return $this->stream->getSize();
|
87 |
}
|
88 |
+
public function eof() : bool
|
89 |
{
|
90 |
return $this->stream->eof();
|
91 |
}
|
92 |
+
public function tell() : int
|
93 |
{
|
94 |
return $this->stream->tell();
|
95 |
}
|
96 |
+
public function isReadable() : bool
|
97 |
{
|
98 |
return $this->stream->isReadable();
|
99 |
}
|
100 |
+
public function isWritable() : bool
|
101 |
{
|
102 |
return $this->stream->isWritable();
|
103 |
}
|
104 |
+
public function isSeekable() : bool
|
105 |
{
|
106 |
return $this->stream->isSeekable();
|
107 |
}
|
108 |
+
public function rewind() : void
|
109 |
{
|
110 |
$this->seek(0);
|
111 |
}
|
112 |
+
public function seek($offset, $whence = \SEEK_SET) : void
|
113 |
{
|
114 |
$this->stream->seek($offset, $whence);
|
115 |
}
|
116 |
+
public function read($length) : string
|
117 |
{
|
118 |
return $this->stream->read($length);
|
119 |
}
|
120 |
+
public function write($string) : int
|
121 |
{
|
122 |
return $this->stream->write($string);
|
123 |
}
|
124 |
/**
|
125 |
* Implement in subclasses to dynamically create streams when requested.
|
126 |
*
|
|
|
|
|
127 |
* @throws \BadMethodCallException
|
128 |
*/
|
129 |
+
protected function createStream() : \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface
|
130 |
{
|
131 |
throw new \BadMethodCallException('Not implemented');
|
132 |
}
|
vendor_prefix/guzzlehttp/psr7/src/StreamWrapper.php
CHANGED
@@ -1,14 +1,15 @@
|
|
1 |
<?php
|
2 |
|
|
|
3 |
namespace PYS_PRO_GLOBAL\GuzzleHttp\Psr7;
|
4 |
|
5 |
use PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface;
|
6 |
/**
|
7 |
* Converts Guzzle streams into PHP stream resources.
|
8 |
*
|
9 |
-
* @
|
10 |
*/
|
11 |
-
class StreamWrapper
|
12 |
{
|
13 |
/** @var resource */
|
14 |
public $context;
|
@@ -35,13 +36,11 @@ class StreamWrapper
|
|
35 |
} else {
|
36 |
throw new \InvalidArgumentException('The stream must be readable, ' . 'writable, or both.');
|
37 |
}
|
38 |
-
return \fopen('guzzle://stream', $mode,
|
39 |
}
|
40 |
/**
|
41 |
* Creates a stream context that can be used to open a stream as a php stream resource.
|
42 |
*
|
43 |
-
* @param StreamInterface $stream
|
44 |
-
*
|
45 |
* @return resource
|
46 |
*/
|
47 |
public static function createStreamContext(\PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface $stream)
|
@@ -51,13 +50,13 @@ class StreamWrapper
|
|
51 |
/**
|
52 |
* Registers the stream wrapper if needed
|
53 |
*/
|
54 |
-
public static function register()
|
55 |
{
|
56 |
if (!\in_array('guzzle', \stream_get_wrappers())) {
|
57 |
\stream_wrapper_register('guzzle', __CLASS__);
|
58 |
}
|
59 |
}
|
60 |
-
public function stream_open($path, $mode, $options, &$opened_path)
|
61 |
{
|
62 |
$options = \stream_context_get_options($this->context);
|
63 |
if (!isset($options['guzzle']['stream'])) {
|
@@ -67,38 +66,48 @@ class StreamWrapper
|
|
67 |
$this->stream = $options['guzzle']['stream'];
|
68 |
return \true;
|
69 |
}
|
70 |
-
public function stream_read($count)
|
71 |
{
|
72 |
return $this->stream->read($count);
|
73 |
}
|
74 |
-
public function stream_write($data)
|
75 |
{
|
76 |
-
return
|
77 |
}
|
78 |
-
public function stream_tell()
|
79 |
{
|
80 |
return $this->stream->tell();
|
81 |
}
|
82 |
-
public function stream_eof()
|
83 |
{
|
84 |
return $this->stream->eof();
|
85 |
}
|
86 |
-
public function stream_seek($offset, $whence)
|
87 |
{
|
88 |
$this->stream->seek($offset, $whence);
|
89 |
return \true;
|
90 |
}
|
91 |
-
|
|
|
|
|
|
|
92 |
{
|
93 |
$stream = clone $this->stream;
|
94 |
-
|
|
|
95 |
}
|
96 |
-
|
|
|
|
|
|
|
97 |
{
|
98 |
static $modeMap = ['r' => 33060, 'rb' => 33060, 'r+' => 33206, 'w' => 33188, 'wb' => 33188];
|
99 |
return ['dev' => 0, 'ino' => 0, 'mode' => $modeMap[$this->mode], 'nlink' => 0, 'uid' => 0, 'gid' => 0, 'rdev' => 0, 'size' => $this->stream->getSize() ?: 0, 'atime' => 0, 'mtime' => 0, 'ctime' => 0, 'blksize' => 0, 'blocks' => 0];
|
100 |
}
|
101 |
-
|
|
|
|
|
|
|
102 |
{
|
103 |
return ['dev' => 0, 'ino' => 0, 'mode' => 0, 'nlink' => 0, 'uid' => 0, 'gid' => 0, 'rdev' => 0, 'size' => 0, 'atime' => 0, 'mtime' => 0, 'ctime' => 0, 'blksize' => 0, 'blocks' => 0];
|
104 |
}
|
1 |
<?php
|
2 |
|
3 |
+
declare (strict_types=1);
|
4 |
namespace PYS_PRO_GLOBAL\GuzzleHttp\Psr7;
|
5 |
|
6 |
use PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface;
|
7 |
/**
|
8 |
* Converts Guzzle streams into PHP stream resources.
|
9 |
*
|
10 |
+
* @see https://www.php.net/streamwrapper
|
11 |
*/
|
12 |
+
final class StreamWrapper
|
13 |
{
|
14 |
/** @var resource */
|
15 |
public $context;
|
36 |
} else {
|
37 |
throw new \InvalidArgumentException('The stream must be readable, ' . 'writable, or both.');
|
38 |
}
|
39 |
+
return \fopen('guzzle://stream', $mode, \false, self::createStreamContext($stream));
|
40 |
}
|
41 |
/**
|
42 |
* Creates a stream context that can be used to open a stream as a php stream resource.
|
43 |
*
|
|
|
|
|
44 |
* @return resource
|
45 |
*/
|
46 |
public static function createStreamContext(\PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface $stream)
|
50 |
/**
|
51 |
* Registers the stream wrapper if needed
|
52 |
*/
|
53 |
+
public static function register() : void
|
54 |
{
|
55 |
if (!\in_array('guzzle', \stream_get_wrappers())) {
|
56 |
\stream_wrapper_register('guzzle', __CLASS__);
|
57 |
}
|
58 |
}
|
59 |
+
public function stream_open(string $path, string $mode, int $options, string &$opened_path = null) : bool
|
60 |
{
|
61 |
$options = \stream_context_get_options($this->context);
|
62 |
if (!isset($options['guzzle']['stream'])) {
|
66 |
$this->stream = $options['guzzle']['stream'];
|
67 |
return \true;
|
68 |
}
|
69 |
+
public function stream_read(int $count) : string
|
70 |
{
|
71 |
return $this->stream->read($count);
|
72 |
}
|
73 |
+
public function stream_write(string $data) : int
|
74 |
{
|
75 |
+
return $this->stream->write($data);
|
76 |
}
|
77 |
+
public function stream_tell() : int
|
78 |
{
|
79 |
return $this->stream->tell();
|
80 |
}
|
81 |
+
public function stream_eof() : bool
|
82 |
{
|
83 |
return $this->stream->eof();
|
84 |
}
|
85 |
+
public function stream_seek(int $offset, int $whence) : bool
|
86 |
{
|
87 |
$this->stream->seek($offset, $whence);
|
88 |
return \true;
|
89 |
}
|
90 |
+
/**
|
91 |
+
* @return resource|false
|
92 |
+
*/
|
93 |
+
public function stream_cast(int $cast_as)
|
94 |
{
|
95 |
$stream = clone $this->stream;
|
96 |
+
$resource = $stream->detach();
|
97 |
+
return $resource ?? \false;
|
98 |
}
|
99 |
+
/**
|
100 |
+
* @return array<int|string, int>
|
101 |
+
*/
|
102 |
+
public function stream_stat() : array
|
103 |
{
|
104 |
static $modeMap = ['r' => 33060, 'rb' => 33060, 'r+' => 33206, 'w' => 33188, 'wb' => 33188];
|
105 |
return ['dev' => 0, 'ino' => 0, 'mode' => $modeMap[$this->mode], 'nlink' => 0, 'uid' => 0, 'gid' => 0, 'rdev' => 0, 'size' => $this->stream->getSize() ?: 0, 'atime' => 0, 'mtime' => 0, 'ctime' => 0, 'blksize' => 0, 'blocks' => 0];
|
106 |
}
|
107 |
+
/**
|
108 |
+
* @return array<int|string, int>
|
109 |
+
*/
|
110 |
+
public function url_stat(string $path, int $flags) : array
|
111 |
{
|
112 |
return ['dev' => 0, 'ino' => 0, 'mode' => 0, 'nlink' => 0, 'uid' => 0, 'gid' => 0, 'rdev' => 0, 'size' => 0, 'atime' => 0, 'mtime' => 0, 'ctime' => 0, 'blksize' => 0, 'blocks' => 0];
|
113 |
}
|
vendor_prefix/guzzlehttp/psr7/src/UploadedFile.php
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
<?php
|
2 |
|
|
|
3 |
namespace PYS_PRO_GLOBAL\GuzzleHttp\Psr7;
|
4 |
|
5 |
use InvalidArgumentException;
|
@@ -8,16 +9,13 @@ use PYS_PRO_GLOBAL\Psr\Http\Message\UploadedFileInterface;
|
|
8 |
use RuntimeException;
|
9 |
class UploadedFile implements \PYS_PRO_GLOBAL\Psr\Http\Message\UploadedFileInterface
|
10 |
{
|
|
|
11 |
/**
|
12 |
-
* @var
|
13 |
-
*/
|
14 |
-
private static $errors = [\UPLOAD_ERR_OK, \UPLOAD_ERR_INI_SIZE, \UPLOAD_ERR_FORM_SIZE, \UPLOAD_ERR_PARTIAL, \UPLOAD_ERR_NO_FILE, \UPLOAD_ERR_NO_TMP_DIR, \UPLOAD_ERR_CANT_WRITE, \UPLOAD_ERR_EXTENSION];
|
15 |
-
/**
|
16 |
-
* @var string
|
17 |
*/
|
18 |
private $clientFilename;
|
19 |
/**
|
20 |
-
* @var string
|
21 |
*/
|
22 |
private $clientMediaType;
|
23 |
/**
|
@@ -33,7 +31,7 @@ class UploadedFile implements \PYS_PRO_GLOBAL\Psr\Http\Message\UploadedFileInter
|
|
33 |
*/
|
34 |
private $moved = \false;
|
35 |
/**
|
36 |
-
* @var int
|
37 |
*/
|
38 |
private $size;
|
39 |
/**
|
@@ -42,17 +40,13 @@ class UploadedFile implements \PYS_PRO_GLOBAL\Psr\Http\Message\UploadedFileInter
|
|
42 |
private $stream;
|
43 |
/**
|
44 |
* @param StreamInterface|string|resource $streamOrFile
|
45 |
-
* @param int $size
|
46 |
-
* @param int $errorStatus
|
47 |
-
* @param string|null $clientFilename
|
48 |
-
* @param string|null $clientMediaType
|
49 |
*/
|
50 |
-
public function __construct($streamOrFile, $size, $errorStatus, $clientFilename = null, $clientMediaType = null)
|
51 |
{
|
52 |
$this->setError($errorStatus);
|
53 |
-
$this->
|
54 |
-
$this->
|
55 |
-
$this->
|
56 |
if ($this->isOk()) {
|
57 |
$this->setStreamOrFile($streamOrFile);
|
58 |
}
|
@@ -60,11 +54,11 @@ class UploadedFile implements \PYS_PRO_GLOBAL\Psr\Http\Message\UploadedFileInter
|
|
60 |
/**
|
61 |
* Depending on the value set file or stream variable
|
62 |
*
|
63 |
-
* @param
|
64 |
*
|
65 |
* @throws InvalidArgumentException
|
66 |
*/
|
67 |
-
private function setStreamOrFile($streamOrFile)
|
68 |
{
|
69 |
if (\is_string($streamOrFile)) {
|
70 |
$this->file = $streamOrFile;
|
@@ -77,94 +71,34 @@ class UploadedFile implements \PYS_PRO_GLOBAL\Psr\Http\Message\UploadedFileInter
|
|
77 |
}
|
78 |
}
|
79 |
/**
|
80 |
-
* @param int $error
|
81 |
-
*
|
82 |
* @throws InvalidArgumentException
|
83 |
*/
|
84 |
-
private function setError($error)
|
85 |
{
|
86 |
-
if (\false === \
|
87 |
-
throw new \InvalidArgumentException('Upload file error status must be an integer');
|
88 |
-
}
|
89 |
-
if (\false === \in_array($error, \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\UploadedFile::$errors)) {
|
90 |
throw new \InvalidArgumentException('Invalid error status for UploadedFile');
|
91 |
}
|
92 |
$this->error = $error;
|
93 |
}
|
94 |
-
|
95 |
-
* @param int $size
|
96 |
-
*
|
97 |
-
* @throws InvalidArgumentException
|
98 |
-
*/
|
99 |
-
private function setSize($size)
|
100 |
-
{
|
101 |
-
if (\false === \is_int($size)) {
|
102 |
-
throw new \InvalidArgumentException('Upload file size must be an integer');
|
103 |
-
}
|
104 |
-
$this->size = $size;
|
105 |
-
}
|
106 |
-
/**
|
107 |
-
* @param mixed $param
|
108 |
-
*
|
109 |
-
* @return bool
|
110 |
-
*/
|
111 |
-
private function isStringOrNull($param)
|
112 |
-
{
|
113 |
-
return \in_array(\gettype($param), ['string', 'NULL']);
|
114 |
-
}
|
115 |
-
/**
|
116 |
-
* @param mixed $param
|
117 |
-
*
|
118 |
-
* @return bool
|
119 |
-
*/
|
120 |
-
private function isStringNotEmpty($param)
|
121 |
{
|
122 |
return \is_string($param) && \false === empty($param);
|
123 |
}
|
124 |
-
/**
|
125 |
-
* @param string|null $clientFilename
|
126 |
-
*
|
127 |
-
* @throws InvalidArgumentException
|
128 |
-
*/
|
129 |
-
private function setClientFilename($clientFilename)
|
130 |
-
{
|
131 |
-
if (\false === $this->isStringOrNull($clientFilename)) {
|
132 |
-
throw new \InvalidArgumentException('Upload file client filename must be a string or null');
|
133 |
-
}
|
134 |
-
$this->clientFilename = $clientFilename;
|
135 |
-
}
|
136 |
-
/**
|
137 |
-
* @param string|null $clientMediaType
|
138 |
-
*
|
139 |
-
* @throws InvalidArgumentException
|
140 |
-
*/
|
141 |
-
private function setClientMediaType($clientMediaType)
|
142 |
-
{
|
143 |
-
if (\false === $this->isStringOrNull($clientMediaType)) {
|
144 |
-
throw new \InvalidArgumentException('Upload file client media type must be a string or null');
|
145 |
-
}
|
146 |
-
$this->clientMediaType = $clientMediaType;
|
147 |
-
}
|
148 |
/**
|
149 |
* Return true if there is no upload error
|
150 |
-
*
|
151 |
-
* @return bool
|
152 |
*/
|
153 |
-
private function isOk()
|
154 |
{
|
155 |
return $this->error === \UPLOAD_ERR_OK;
|
156 |
}
|
157 |
-
|
158 |
-
* @return bool
|
159 |
-
*/
|
160 |
-
public function isMoved()
|
161 |
{
|
162 |
return $this->moved;
|
163 |
}
|
164 |
/**
|
165 |
* @throws RuntimeException if is moved or not ok
|
166 |
*/
|
167 |
-
private function validateActive()
|
168 |
{
|
169 |
if (\false === $this->isOk()) {
|
170 |
throw new \RuntimeException('Cannot retrieve stream due to upload error');
|
@@ -173,40 +107,24 @@ class UploadedFile implements \PYS_PRO_GLOBAL\Psr\Http\Message\UploadedFileInter
|
|
173 |
throw new \RuntimeException('Cannot retrieve stream after it has already been moved');
|
174 |
}
|
175 |
}
|
176 |
-
|
177 |
-
* {@inheritdoc}
|
178 |
-
*
|
179 |
-
* @throws RuntimeException if the upload was not successful.
|
180 |
-
*/
|
181 |
-
public function getStream()
|
182 |
{
|
183 |
$this->validateActive();
|
184 |
if ($this->stream instanceof \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface) {
|
185 |
return $this->stream;
|
186 |
}
|
187 |
-
|
|
|
|
|
188 |
}
|
189 |
-
|
190 |
-
* {@inheritdoc}
|
191 |
-
*
|
192 |
-
* @see http://php.net/is_uploaded_file
|
193 |
-
* @see http://php.net/move_uploaded_file
|
194 |
-
*
|
195 |
-
* @param string $targetPath Path to which to move the uploaded file.
|
196 |
-
*
|
197 |
-
* @throws RuntimeException if the upload was not successful.
|
198 |
-
* @throws InvalidArgumentException if the $path specified is invalid.
|
199 |
-
* @throws RuntimeException on any error during the move operation, or on
|
200 |
-
* the second or subsequent call to the method.
|
201 |
-
*/
|
202 |
-
public function moveTo($targetPath)
|
203 |
{
|
204 |
$this->validateActive();
|
205 |
if (\false === $this->isStringNotEmpty($targetPath)) {
|
206 |
throw new \InvalidArgumentException('Invalid path provided for move operation; must be a non-empty string');
|
207 |
}
|
208 |
if ($this->file) {
|
209 |
-
$this->moved = \
|
210 |
} else {
|
211 |
\PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Utils::copyToStream($this->getStream(), new \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\LazyOpenStream($targetPath, 'w'));
|
212 |
$this->moved = \true;
|
@@ -215,40 +133,19 @@ class UploadedFile implements \PYS_PRO_GLOBAL\Psr\Http\Message\UploadedFileInter
|
|
215 |
throw new \RuntimeException(\sprintf('Uploaded file could not be moved to %s', $targetPath));
|
216 |
}
|
217 |
}
|
218 |
-
|
219 |
-
* {@inheritdoc}
|
220 |
-
*
|
221 |
-
* @return int|null The file size in bytes or null if unknown.
|
222 |
-
*/
|
223 |
-
public function getSize()
|
224 |
{
|
225 |
return $this->size;
|
226 |
}
|
227 |
-
|
228 |
-
* {@inheritdoc}
|
229 |
-
*
|
230 |
-
* @see http://php.net/manual/en/features.file-upload.errors.php
|
231 |
-
*
|
232 |
-
* @return int One of PHP's UPLOAD_ERR_XXX constants.
|
233 |
-
*/
|
234 |
-
public function getError()
|
235 |
{
|
236 |
return $this->error;
|
237 |
}
|
238 |
-
|
239 |
-
* {@inheritdoc}
|
240 |
-
*
|
241 |
-
* @return string|null The filename sent by the client or null if none
|
242 |
-
* was provided.
|
243 |
-
*/
|
244 |
-
public function getClientFilename()
|
245 |
{
|
246 |
return $this->clientFilename;
|
247 |
}
|
248 |
-
|
249 |
-
* {@inheritdoc}
|
250 |
-
*/
|
251 |
-
public function getClientMediaType()
|
252 |
{
|
253 |
return $this->clientMediaType;
|
254 |
}
|
1 |
<?php
|
2 |
|
3 |
+
declare (strict_types=1);
|
4 |
namespace PYS_PRO_GLOBAL\GuzzleHttp\Psr7;
|
5 |
|
6 |
use InvalidArgumentException;
|
9 |
use RuntimeException;
|
10 |
class UploadedFile implements \PYS_PRO_GLOBAL\Psr\Http\Message\UploadedFileInterface
|
11 |
{
|
12 |
+
private const ERRORS = [\UPLOAD_ERR_OK, \UPLOAD_ERR_INI_SIZE, \UPLOAD_ERR_FORM_SIZE, \UPLOAD_ERR_PARTIAL, \UPLOAD_ERR_NO_FILE, \UPLOAD_ERR_NO_TMP_DIR, \UPLOAD_ERR_CANT_WRITE, \UPLOAD_ERR_EXTENSION];
|
13 |
/**
|
14 |
+
* @var string|null
|
|
|
|
|
|
|
|
|
15 |
*/
|
16 |
private $clientFilename;
|
17 |
/**
|
18 |
+
* @var string|null
|
19 |
*/
|
20 |
private $clientMediaType;
|
21 |
/**
|
31 |
*/
|
32 |
private $moved = \false;
|
33 |
/**
|
34 |
+
* @var int|null
|
35 |
*/
|
36 |
private $size;
|
37 |
/**
|
40 |
private $stream;
|
41 |
/**
|
42 |
* @param StreamInterface|string|resource $streamOrFile
|
|
|
|
|
|
|
|
|
43 |
*/
|
44 |
+
public function __construct($streamOrFile, ?int $size, int $errorStatus, string $clientFilename = null, string $clientMediaType = null)
|
45 |
{
|
46 |
$this->setError($errorStatus);
|
47 |
+
$this->size = $size;
|
48 |
+
$this->clientFilename = $clientFilename;
|
49 |
+
$this->clientMediaType = $clientMediaType;
|
50 |
if ($this->isOk()) {
|
51 |
$this->setStreamOrFile($streamOrFile);
|
52 |
}
|
54 |
/**
|
55 |
* Depending on the value set file or stream variable
|
56 |
*
|
57 |
+
* @param StreamInterface|string|resource $streamOrFile
|
58 |
*
|
59 |
* @throws InvalidArgumentException
|
60 |
*/
|
61 |
+
private function setStreamOrFile($streamOrFile) : void
|
62 |
{
|
63 |
if (\is_string($streamOrFile)) {
|
64 |
$this->file = $streamOrFile;
|
71 |
}
|
72 |
}
|
73 |
/**
|
|
|
|
|
74 |
* @throws InvalidArgumentException
|
75 |
*/
|
76 |
+
private function setError(int $error) : void
|
77 |
{
|
78 |
+
if (\false === \in_array($error, \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\UploadedFile::ERRORS, \true)) {
|
|
|
|
|
|
|
79 |
throw new \InvalidArgumentException('Invalid error status for UploadedFile');
|
80 |
}
|
81 |
$this->error = $error;
|
82 |
}
|
83 |
+
private function isStringNotEmpty($param) : bool
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
84 |
{
|
85 |
return \is_string($param) && \false === empty($param);
|
86 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
87 |
/**
|
88 |
* Return true if there is no upload error
|
|
|
|
|
89 |
*/
|
90 |
+
private function isOk() : bool
|
91 |
{
|
92 |
return $this->error === \UPLOAD_ERR_OK;
|
93 |
}
|
94 |
+
public function isMoved() : bool
|
|
|
|
|
|
|
95 |
{
|
96 |
return $this->moved;
|
97 |
}
|
98 |
/**
|
99 |
* @throws RuntimeException if is moved or not ok
|
100 |
*/
|
101 |
+
private function validateActive() : void
|
102 |
{
|
103 |
if (\false === $this->isOk()) {
|
104 |
throw new \RuntimeException('Cannot retrieve stream due to upload error');
|
107 |
throw new \RuntimeException('Cannot retrieve stream after it has already been moved');
|
108 |
}
|
109 |
}
|
110 |
+
public function getStream() : \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface
|
|
|
|
|
|
|
|
|
|
|
111 |
{
|
112 |
$this->validateActive();
|
113 |
if ($this->stream instanceof \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface) {
|
114 |
return $this->stream;
|
115 |
}
|
116 |
+
/** @var string $file */
|
117 |
+
$file = $this->file;
|
118 |
+
return new \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\LazyOpenStream($file, 'r+');
|
119 |
}
|
120 |
+
public function moveTo($targetPath) : void
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
121 |
{
|
122 |
$this->validateActive();
|
123 |
if (\false === $this->isStringNotEmpty($targetPath)) {
|
124 |
throw new \InvalidArgumentException('Invalid path provided for move operation; must be a non-empty string');
|
125 |
}
|
126 |
if ($this->file) {
|
127 |
+
$this->moved = \PHP_SAPI === 'cli' ? \rename($this->file, $targetPath) : \move_uploaded_file($this->file, $targetPath);
|
128 |
} else {
|
129 |
\PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Utils::copyToStream($this->getStream(), new \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\LazyOpenStream($targetPath, 'w'));
|
130 |
$this->moved = \true;
|
133 |
throw new \RuntimeException(\sprintf('Uploaded file could not be moved to %s', $targetPath));
|
134 |
}
|
135 |
}
|
136 |
+
public function getSize() : ?int
|
|
|
|
|
|
|
|
|
|
|
137 |
{
|
138 |
return $this->size;
|
139 |
}
|
140 |
+
public function getError() : int
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
141 |
{
|
142 |
return $this->error;
|
143 |
}
|
144 |
+
public function getClientFilename() : ?string
|
|
|
|
|
|
|
|
|
|
|
|
|
145 |
{
|
146 |
return $this->clientFilename;
|
147 |
}
|
148 |
+
public function getClientMediaType() : ?string
|
|
|
|
|
|
|
149 |
{
|
150 |
return $this->clientMediaType;
|
151 |
}
|
vendor_prefix/guzzlehttp/psr7/src/Uri.php
CHANGED
@@ -1,7 +1,9 @@
|
|
1 |
<?php
|
2 |
|
|
|
3 |
namespace PYS_PRO_GLOBAL\GuzzleHttp\Psr7;
|
4 |
|
|
|
5 |
use PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface;
|
6 |
/**
|
7 |
* PSR-7 URI implementation.
|
@@ -18,11 +20,21 @@ class Uri implements \PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface
|
|
18 |
* we apply this default host when no host is given yet to form a
|
19 |
* valid URI.
|
20 |
*/
|
21 |
-
const HTTP_DEFAULT_HOST = 'localhost';
|
22 |
-
private
|
23 |
-
|
24 |
-
|
25 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
/** @var string Uri scheme. */
|
27 |
private $scheme = '';
|
28 |
/** @var string Uri user info. */
|
@@ -37,16 +49,14 @@ class Uri implements \PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface
|
|
37 |
private $query = '';
|
38 |
/** @var string Uri fragment. */
|
39 |
private $fragment = '';
|
40 |
-
/**
|
41 |
-
|
42 |
-
|
43 |
-
public function __construct($uri = '')
|
44 |
{
|
45 |
-
|
46 |
-
if ($uri != '') {
|
47 |
$parts = self::parse($uri);
|
48 |
if ($parts === \false) {
|
49 |
-
throw new \
|
50 |
}
|
51 |
$this->applyParts($parts);
|
52 |
}
|
@@ -64,18 +74,18 @@ class Uri implements \PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface
|
|
64 |
* @see https://www.php.net/manual/en/function.parse-url.php#114817
|
65 |
* @see https://curl.haxx.se/libcurl/c/CURLOPT_URL.html#ENCODING
|
66 |
*
|
67 |
-
* @param string $url
|
68 |
-
*
|
69 |
* @return array|false
|
70 |
*/
|
71 |
-
private static function parse($url)
|
72 |
{
|
73 |
// If IPv6
|
74 |
$prefix = '';
|
75 |
if (\preg_match('%^(.*://\\[[0-9:a-f]+\\])(.*?)$%', $url, $matches)) {
|
|
|
76 |
$prefix = $matches[1];
|
77 |
$url = $matches[2];
|
78 |
}
|
|
|
79 |
$encodedUrl = \preg_replace_callback('%[^:/@?&=#]+%usD', static function ($matches) {
|
80 |
return \urlencode($matches[0]);
|
81 |
}, $url);
|
@@ -85,9 +95,12 @@ class Uri implements \PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface
|
|
85 |
}
|
86 |
return \array_map('urldecode', $result);
|
87 |
}
|
88 |
-
public function __toString()
|
89 |
{
|
90 |
-
|
|
|
|
|
|
|
91 |
}
|
92 |
/**
|
93 |
* Composes a URI reference string from its various components.
|
@@ -105,17 +118,9 @@ class Uri implements \PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface
|
|
105 |
* `file:///` is the more common syntax for the file scheme anyway (Chrome for example redirects to
|
106 |
* that format).
|
107 |
*
|
108 |
-
* @param string $scheme
|
109 |
-
* @param string $authority
|
110 |
-
* @param string $path
|
111 |
-
* @param string $query
|
112 |
-
* @param string $fragment
|
113 |
-
*
|
114 |
-
* @return string
|
115 |
-
*
|
116 |
* @link https://tools.ietf.org/html/rfc3986#section-5.3
|
117 |
*/
|
118 |
-
public static function composeComponents($scheme, $authority, $path, $query, $fragment)
|
119 |
{
|
120 |
$uri = '';
|
121 |
// weak type checks to also accept null until we can add scalar type hints
|
@@ -139,14 +144,10 @@ class Uri implements \PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface
|
|
139 |
*
|
140 |
* `Psr\Http\Message\UriInterface::getPort` may return null or the standard port. This method can be used
|
141 |
* independently of the implementation.
|
142 |
-
*
|
143 |
-
* @param UriInterface $uri
|
144 |
-
*
|
145 |
-
* @return bool
|
146 |
*/
|
147 |
-
public static function isDefaultPort(\PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface $uri)
|
148 |
{
|
149 |
-
return $uri->getPort() === null || isset(self
|
150 |
}
|
151 |
/**
|
152 |
* Whether the URI is absolute, i.e. it has a scheme.
|
@@ -158,16 +159,12 @@ class Uri implements \PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface
|
|
158 |
* - absolute-path references, e.g. '/path'
|
159 |
* - relative-path references, e.g. 'subpath'
|
160 |
*
|
161 |
-
* @param UriInterface $uri
|
162 |
-
*
|
163 |
-
* @return bool
|
164 |
-
*
|
165 |
* @see Uri::isNetworkPathReference
|
166 |
* @see Uri::isAbsolutePathReference
|
167 |
* @see Uri::isRelativePathReference
|
168 |
* @link https://tools.ietf.org/html/rfc3986#section-4
|
169 |
*/
|
170 |
-
public static function isAbsolute(\PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface $uri)
|
171 |
{
|
172 |
return $uri->getScheme() !== '';
|
173 |
}
|
@@ -176,13 +173,9 @@ class Uri implements \PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface
|
|
176 |
*
|
177 |
* A relative reference that begins with two slash characters is termed an network-path reference.
|
178 |
*
|
179 |
-
* @param UriInterface $uri
|
180 |
-
*
|
181 |
-
* @return bool
|
182 |
-
*
|
183 |
* @link https://tools.ietf.org/html/rfc3986#section-4.2
|
184 |
*/
|
185 |
-
public static function isNetworkPathReference(\PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface $uri)
|
186 |
{
|
187 |
return $uri->getScheme() === '' && $uri->getAuthority() !== '';
|
188 |
}
|
@@ -191,13 +184,9 @@ class Uri implements \PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface
|
|
191 |
*
|
192 |
* A relative reference that begins with a single slash character is termed an absolute-path reference.
|
193 |
*
|
194 |
-
* @param UriInterface $uri
|
195 |
-
*
|
196 |
-
* @return bool
|
197 |
-
*
|
198 |
* @link https://tools.ietf.org/html/rfc3986#section-4.2
|
199 |
*/
|
200 |
-
public static function isAbsolutePathReference(\PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface $uri)
|
201 |
{
|
202 |
return $uri->getScheme() === '' && $uri->getAuthority() === '' && isset($uri->getPath()[0]) && $uri->getPath()[0] === '/';
|
203 |
}
|
@@ -206,13 +195,9 @@ class Uri implements \PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface
|
|
206 |
*
|
207 |
* A relative reference that does not begin with a slash character is termed a relative-path reference.
|
208 |
*
|
209 |
-
* @param UriInterface $uri
|
210 |
-
*
|
211 |
-
* @return bool
|
212 |
-
*
|
213 |
* @link https://tools.ietf.org/html/rfc3986#section-4.2
|
214 |
*/
|
215 |
-
public static function isRelativePathReference(\PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface $uri)
|
216 |
{
|
217 |
return $uri->getScheme() === '' && $uri->getAuthority() === '' && (!isset($uri->getPath()[0]) || $uri->getPath()[0] !== '/');
|
218 |
}
|
@@ -226,11 +211,9 @@ class Uri implements \PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface
|
|
226 |
* @param UriInterface $uri The URI to check
|
227 |
* @param UriInterface|null $base An optional base URI to compare against
|
228 |
*
|
229 |
-
* @return bool
|
230 |
-
*
|
231 |
* @link https://tools.ietf.org/html/rfc3986#section-4.4
|
232 |
*/
|
233 |
-
public static function isSameDocumentReference(\PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface $uri, \PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface $base = null)
|
234 |
{
|
235 |
if ($base !== null) {
|
236 |
$uri = \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\UriResolver::resolve($base, $uri);
|
@@ -238,38 +221,6 @@ class Uri implements \PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface
|
|
238 |
}
|
239 |
return $uri->getScheme() === '' && $uri->getAuthority() === '' && $uri->getPath() === '' && $uri->getQuery() === '';
|
240 |
}
|
241 |
-
/**
|
242 |
-
* Removes dot segments from a path and returns the new path.
|
243 |
-
*
|
244 |
-
* @param string $path
|
245 |
-
*
|
246 |
-
* @return string
|
247 |
-
*
|
248 |
-
* @deprecated since version 1.4. Use UriResolver::removeDotSegments instead.
|
249 |
-
* @see UriResolver::removeDotSegments
|
250 |
-
*/
|
251 |
-
public static function removeDotSegments($path)
|
252 |
-
{
|
253 |
-
return \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\UriResolver::removeDotSegments($path);
|
254 |
-
}
|
255 |
-
/**
|
256 |
-
* Converts the relative URI into a new URI that is resolved against the base URI.
|
257 |
-
*
|
258 |
-
* @param UriInterface $base Base URI
|
259 |
-
* @param string|UriInterface $rel Relative URI
|
260 |
-
*
|
261 |
-
* @return UriInterface
|
262 |
-
*
|
263 |
-
* @deprecated since version 1.4. Use UriResolver::resolve instead.
|
264 |
-
* @see UriResolver::resolve
|
265 |
-
*/
|
266 |
-
public static function resolve(\PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface $base, $rel)
|
267 |
-
{
|
268 |
-
if (!$rel instanceof \PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface) {
|
269 |
-
$rel = new self($rel);
|
270 |
-
}
|
271 |
-
return \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\UriResolver::resolve($base, $rel);
|
272 |
-
}
|
273 |
/**
|
274 |
* Creates a new URI with a specific query string value removed.
|
275 |
*
|
@@ -278,10 +229,8 @@ class Uri implements \PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface
|
|
278 |
*
|
279 |
* @param UriInterface $uri URI to use as a base.
|
280 |
* @param string $key Query string key to remove.
|
281 |
-
*
|
282 |
-
* @return UriInterface
|
283 |
*/
|
284 |
-
public static function withoutQueryValue(\PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface $uri, $key)
|
285 |
{
|
286 |
$result = self::getFilteredQueryString($uri, [$key]);
|
287 |
return $uri->withQuery(\implode('&', $result));
|
@@ -298,10 +247,8 @@ class Uri implements \PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface
|
|
298 |
* @param UriInterface $uri URI to use as a base.
|
299 |
* @param string $key Key to set.
|
300 |
* @param string|null $value Value to set
|
301 |
-
*
|
302 |
-
* @return UriInterface
|
303 |
*/
|
304 |
-
public static function withQueryValue(\PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface $uri, $key, $value)
|
305 |
{
|
306 |
$result = self::getFilteredQueryString($uri, [$key]);
|
307 |
$result[] = self::generateQueryString($key, $value);
|
@@ -312,42 +259,36 @@ class Uri implements \PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface
|
|
312 |
*
|
313 |
* It has the same behavior as withQueryValue() but for an associative array of key => value.
|
314 |
*
|
315 |
-
* @param UriInterface
|
316 |
-
* @param array
|
317 |
-
*
|
318 |
-
* @return UriInterface
|
319 |
*/
|
320 |
-
public static function withQueryValues(\PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface $uri, array $keyValueArray)
|
321 |
{
|
322 |
$result = self::getFilteredQueryString($uri, \array_keys($keyValueArray));
|
323 |
foreach ($keyValueArray as $key => $value) {
|
324 |
-
$result[] = self::generateQueryString($key, $value);
|
325 |
}
|
326 |
return $uri->withQuery(\implode('&', $result));
|
327 |
}
|
328 |
/**
|
329 |
* Creates a URI from a hash of `parse_url` components.
|
330 |
*
|
331 |
-
* @param array $parts
|
332 |
-
*
|
333 |
-
* @return UriInterface
|
334 |
-
*
|
335 |
* @link http://php.net/manual/en/function.parse-url.php
|
336 |
*
|
337 |
-
* @throws
|
338 |
*/
|
339 |
-
public static function fromParts(array $parts)
|
340 |
{
|
341 |
$uri = new self();
|
342 |
$uri->applyParts($parts);
|
343 |
$uri->validateState();
|
344 |
return $uri;
|
345 |
}
|
346 |
-
public function getScheme()
|
347 |
{
|
348 |
return $this->scheme;
|
349 |
}
|
350 |
-
public function getAuthority()
|
351 |
{
|
352 |
$authority = $this->host;
|
353 |
if ($this->userInfo !== '') {
|
@@ -358,31 +299,31 @@ class Uri implements \PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface
|
|
358 |
}
|
359 |
return $authority;
|
360 |
}
|
361 |
-
public function getUserInfo()
|
362 |
{
|
363 |
return $this->userInfo;
|
364 |
}
|
365 |
-
public function getHost()
|
366 |
{
|
367 |
return $this->host;
|
368 |
}
|
369 |
-
public function getPort()
|
370 |
{
|
371 |
return $this->port;
|
372 |
}
|
373 |
-
public function getPath()
|
374 |
{
|
375 |
return $this->path;
|
376 |
}
|
377 |
-
public function getQuery()
|
378 |
{
|
379 |
return $this->query;
|
380 |
}
|
381 |
-
public function getFragment()
|
382 |
{
|
383 |
return $this->fragment;
|
384 |
}
|
385 |
-
public function withScheme($scheme)
|
386 |
{
|
387 |
$scheme = $this->filterScheme($scheme);
|
388 |
if ($this->scheme === $scheme) {
|
@@ -390,11 +331,12 @@ class Uri implements \PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface
|
|
390 |
}
|
391 |
$new = clone $this;
|
392 |
$new->scheme = $scheme;
|
|
|
393 |
$new->removeDefaultPort();
|
394 |
$new->validateState();
|
395 |
return $new;
|
396 |
}
|
397 |
-
public function withUserInfo($user, $password = null)
|
398 |
{
|
399 |
$info = $this->filterUserInfoComponent($user);
|
400 |
if ($password !== null) {
|
@@ -405,10 +347,11 @@ class Uri implements \PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface
|
|
405 |
}
|
406 |
$new = clone $this;
|
407 |
$new->userInfo = $info;
|
|
|
408 |
$new->validateState();
|
409 |
return $new;
|
410 |
}
|
411 |
-
public function withHost($host)
|
412 |
{
|
413 |
$host = $this->filterHost($host);
|
414 |
if ($this->host === $host) {
|
@@ -416,10 +359,11 @@ class Uri implements \PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface
|
|
416 |
}
|
417 |
$new = clone $this;
|
418 |
$new->host = $host;
|
|
|
419 |
$new->validateState();
|
420 |
return $new;
|
421 |
}
|
422 |
-
public function withPort($port)
|
423 |
{
|
424 |
$port = $this->filterPort($port);
|
425 |
if ($this->port === $port) {
|
@@ -427,11 +371,12 @@ class Uri implements \PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface
|
|
427 |
}
|
428 |
$new = clone $this;
|
429 |
$new->port = $port;
|
|
|
430 |
$new->removeDefaultPort();
|
431 |
$new->validateState();
|
432 |
return $new;
|
433 |
}
|
434 |
-
public function withPath($path)
|
435 |
{
|
436 |
$path = $this->filterPath($path);
|
437 |
if ($this->path === $path) {
|
@@ -439,10 +384,11 @@ class Uri implements \PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface
|
|
439 |
}
|
440 |
$new = clone $this;
|
441 |
$new->path = $path;
|
|
|
442 |
$new->validateState();
|
443 |
return $new;
|
444 |
}
|
445 |
-
public function withQuery($query)
|
446 |
{
|
447 |
$query = $this->filterQueryAndFragment($query);
|
448 |
if ($this->query === $query) {
|
@@ -450,9 +396,10 @@ class Uri implements \PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface
|
|
450 |
}
|
451 |
$new = clone $this;
|
452 |
$new->query = $query;
|
|
|
453 |
return $new;
|
454 |
}
|
455 |
-
public function withFragment($fragment)
|
456 |
{
|
457 |
$fragment = $this->filterQueryAndFragment($fragment);
|
458 |
if ($this->fragment === $fragment) {
|
@@ -460,6 +407,7 @@ class Uri implements \PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface
|
|
460 |
}
|
461 |
$new = clone $this;
|
462 |
$new->fragment = $fragment;
|
|
|
463 |
return $new;
|
464 |
}
|
465 |
/**
|
@@ -467,7 +415,7 @@ class Uri implements \PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface
|
|
467 |
*
|
468 |
* @param array $parts Array of parse_url parts to apply.
|
469 |
*/
|
470 |
-
private function applyParts(array $parts)
|
471 |
{
|
472 |
$this->scheme = isset($parts['scheme']) ? $this->filterScheme($parts['scheme']) : '';
|
473 |
$this->userInfo = isset($parts['user']) ? $this->filterUserInfoComponent($parts['user']) : '';
|
@@ -482,13 +430,11 @@ class Uri implements \PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface
|
|
482 |
$this->removeDefaultPort();
|
483 |
}
|
484 |
/**
|
485 |
-
* @param
|
486 |
-
*
|
487 |
-
* @return string
|
488 |
*
|
489 |
* @throws \InvalidArgumentException If the scheme is invalid.
|
490 |
*/
|
491 |
-
private function filterScheme($scheme)
|
492 |
{
|
493 |
if (!\is_string($scheme)) {
|
494 |
throw new \InvalidArgumentException('Scheme must be a string');
|
@@ -496,27 +442,23 @@ class Uri implements \PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface
|
|
496 |
return \strtr($scheme, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz');
|
497 |
}
|
498 |
/**
|
499 |
-
* @param
|
500 |
-
*
|
501 |
-
* @return string
|
502 |
*
|
503 |
* @throws \InvalidArgumentException If the user info is invalid.
|
504 |
*/
|
505 |
-
private function filterUserInfoComponent($component)
|
506 |
{
|
507 |
if (!\is_string($component)) {
|
508 |
throw new \InvalidArgumentException('User info must be a string');
|
509 |
}
|
510 |
-
return \preg_replace_callback('/(?:[^%' . self
|
511 |
}
|
512 |
/**
|
513 |
-
* @param
|
514 |
-
*
|
515 |
-
* @return string
|
516 |
*
|
517 |
* @throws \InvalidArgumentException If the host is invalid.
|
518 |
*/
|
519 |
-
private function filterHost($host)
|
520 |
{
|
521 |
if (!\is_string($host)) {
|
522 |
throw new \InvalidArgumentException('Host must be a string');
|
@@ -524,13 +466,11 @@ class Uri implements \PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface
|
|
524 |
return \strtr($host, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz');
|
525 |
}
|
526 |
/**
|
527 |
-
* @param
|
528 |
-
*
|
529 |
-
* @return int|null
|
530 |
*
|
531 |
* @throws \InvalidArgumentException If the port is invalid.
|
532 |
*/
|
533 |
-
private function filterPort($port)
|
534 |
{
|
535 |
if ($port === null) {
|
536 |
return null;
|
@@ -542,12 +482,11 @@ class Uri implements \PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface
|
|
542 |
return $port;
|
543 |
}
|
544 |
/**
|
545 |
-
* @param
|
546 |
-
* @param array $keys
|
547 |
*
|
548 |
-
* @return
|
549 |
*/
|
550 |
-
private static function getFilteredQueryString(\PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface $uri, array $keys)
|
551 |
{
|
552 |
$current = $uri->getQuery();
|
553 |
if ($current === '') {
|
@@ -558,24 +497,18 @@ class Uri implements \PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface
|
|
558 |
return !\in_array(\rawurldecode(\explode('=', $part)[0]), $decodedKeys, \true);
|
559 |
});
|
560 |
}
|
561 |
-
|
562 |
-
* @param string $key
|
563 |
-
* @param string|null $value
|
564 |
-
*
|
565 |
-
* @return string
|
566 |
-
*/
|
567 |
-
private static function generateQueryString($key, $value)
|
568 |
{
|
569 |
// Query string separators ("=", "&") within the key or value need to be encoded
|
570 |
// (while preventing double-encoding) before setting the query string. All other
|
571 |
// chars that need percent-encoding will be encoded by withQuery().
|
572 |
-
$queryString = \strtr($key, self
|
573 |
if ($value !== null) {
|
574 |
-
$queryString .= '=' . \strtr($value, self
|
575 |
}
|
576 |
return $queryString;
|
577 |
}
|
578 |
-
private function removeDefaultPort()
|
579 |
{
|
580 |
if ($this->port !== null && self::isDefaultPort($this)) {
|
581 |
$this->port = null;
|
@@ -584,55 +517,49 @@ class Uri implements \PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface
|
|
584 |
/**
|
585 |
* Filters the path of a URI
|
586 |
*
|
587 |
-
* @param
|
588 |
-
*
|
589 |
-
* @return string
|
590 |
*
|
591 |
* @throws \InvalidArgumentException If the path is invalid.
|
592 |
*/
|
593 |
-
private function filterPath($path)
|
594 |
{
|
595 |
if (!\is_string($path)) {
|
596 |
throw new \InvalidArgumentException('Path must be a string');
|
597 |
}
|
598 |
-
return \preg_replace_callback('/(?:[^' . self
|
599 |
}
|
600 |
/**
|
601 |
* Filters the query string or fragment of a URI.
|
602 |
*
|
603 |
-
* @param
|
604 |
-
*
|
605 |
-
* @return string
|
606 |
*
|
607 |
* @throws \InvalidArgumentException If the query or fragment is invalid.
|
608 |
*/
|
609 |
-
private function filterQueryAndFragment($str)
|
610 |
{
|
611 |
if (!\is_string($str)) {
|
612 |
throw new \InvalidArgumentException('Query and fragment must be a string');
|
613 |
}
|
614 |
-
return \preg_replace_callback('/(?:[^' . self
|
615 |
}
|
616 |
-
private function rawurlencodeMatchZero(array $match)
|
617 |
{
|
618 |
return \rawurlencode($match[0]);
|
619 |
}
|
620 |
-
private function validateState()
|
621 |
{
|
622 |
if ($this->host === '' && ($this->scheme === 'http' || $this->scheme === 'https')) {
|
623 |
$this->host = self::HTTP_DEFAULT_HOST;
|
624 |
}
|
625 |
if ($this->getAuthority() === '') {
|
626 |
if (0 === \strpos($this->path, '//')) {
|
627 |
-
throw new \
|
628 |
}
|
629 |
if ($this->scheme === '' && \false !== \strpos(\explode('/', $this->path, 2)[0], ':')) {
|
630 |
-
throw new \
|
631 |
}
|
632 |
} elseif (isset($this->path[0]) && $this->path[0] !== '/') {
|
633 |
-
|
634 |
-
$this->path = '/' . $this->path;
|
635 |
-
//throw new \InvalidArgumentException('The path of a URI with an authority must start with a slash "/" or be empty');
|
636 |
}
|
637 |
}
|
638 |
}
|
1 |
<?php
|
2 |
|
3 |
+
declare (strict_types=1);
|
4 |
namespace PYS_PRO_GLOBAL\GuzzleHttp\Psr7;
|
5 |
|
6 |
+
use PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Exception\MalformedUriException;
|
7 |
use PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface;
|
8 |
/**
|
9 |
* PSR-7 URI implementation.
|
20 |
* we apply this default host when no host is given yet to form a
|
21 |
* valid URI.
|
22 |
*/
|
23 |
+
private const HTTP_DEFAULT_HOST = 'localhost';
|
24 |
+
private const DEFAULT_PORTS = ['http' => 80, 'https' => 443, 'ftp' => 21, 'gopher' => 70, 'nntp' => 119, 'news' => 119, 'telnet' => 23, 'tn3270' => 23, 'imap' => 143, 'pop' => 110, 'ldap' => 389];
|
25 |
+
/**
|
26 |
+
* Unreserved characters for use in a regex.
|
27 |
+
*
|
28 |
+
* @link https://tools.ietf.org/html/rfc3986#section-2.3
|
29 |
+
*/
|
30 |
+
private const CHAR_UNRESERVED = 'a-zA-Z0-9_\\-\\.~';
|
31 |
+
/**
|
32 |
+
* Sub-delims for use in a regex.
|
33 |
+
*
|
34 |
+
* @link https://tools.ietf.org/html/rfc3986#section-2.2
|
35 |
+
*/
|
36 |
+
private const CHAR_SUB_DELIMS = '!\\$&\'\\(\\)\\*\\+,;=';
|
37 |
+
private const QUERY_SEPARATORS_REPLACEMENT = ['=' => '%3D', '&' => '%26'];
|
38 |
/** @var string Uri scheme. */
|
39 |
private $scheme = '';
|
40 |
/** @var string Uri user info. */
|
49 |
private $query = '';
|
50 |
/** @var string Uri fragment. */
|
51 |
private $fragment = '';
|
52 |
+
/** @var string|null String representation */
|
53 |
+
private $composedComponents;
|
54 |
+
public function __construct(string $uri = '')
|
|
|
55 |
{
|
56 |
+
if ($uri !== '') {
|
|
|
57 |
$parts = self::parse($uri);
|
58 |
if ($parts === \false) {
|
59 |
+
throw new \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Exception\MalformedUriException("Unable to parse URI: {$uri}");
|
60 |
}
|
61 |
$this->applyParts($parts);
|
62 |
}
|
74 |
* @see https://www.php.net/manual/en/function.parse-url.php#114817
|
75 |
* @see https://curl.haxx.se/libcurl/c/CURLOPT_URL.html#ENCODING
|
76 |
*
|
|
|
|
|
77 |
* @return array|false
|
78 |
*/
|
79 |
+
private static function parse(string $url)
|
80 |
{
|
81 |
// If IPv6
|
82 |
$prefix = '';
|
83 |
if (\preg_match('%^(.*://\\[[0-9:a-f]+\\])(.*?)$%', $url, $matches)) {
|
84 |
+
/** @var array{0:string, 1:string, 2:string} $matches */
|
85 |
$prefix = $matches[1];
|
86 |
$url = $matches[2];
|
87 |
}
|
88 |
+
/** @var string */
|
89 |
$encodedUrl = \preg_replace_callback('%[^:/@?&=#]+%usD', static function ($matches) {
|
90 |
return \urlencode($matches[0]);
|
91 |
}, $url);
|
95 |
}
|
96 |
return \array_map('urldecode', $result);
|
97 |
}
|
98 |
+
public function __toString() : string
|
99 |
{
|
100 |
+
if ($this->composedComponents === null) {
|
101 |
+
$this->composedComponents = self::composeComponents($this->scheme, $this->getAuthority(), $this->path, $this->query, $this->fragment);
|
102 |
+
}
|
103 |
+
return $this->composedComponents;
|
104 |
}
|
105 |
/**
|
106 |
* Composes a URI reference string from its various components.
|
118 |
* `file:///` is the more common syntax for the file scheme anyway (Chrome for example redirects to
|
119 |
* that format).
|
120 |
*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
121 |
* @link https://tools.ietf.org/html/rfc3986#section-5.3
|
122 |
*/
|
123 |
+
public static function composeComponents(?string $scheme, ?string $authority, string $path, ?string $query, ?string $fragment) : string
|
124 |
{
|
125 |
$uri = '';
|
126 |
// weak type checks to also accept null until we can add scalar type hints
|
144 |
*
|
145 |
* `Psr\Http\Message\UriInterface::getPort` may return null or the standard port. This method can be used
|
146 |
* independently of the implementation.
|
|
|
|
|
|
|
|
|
147 |
*/
|
148 |
+
public static function isDefaultPort(\PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface $uri) : bool
|
149 |
{
|
150 |
+
return $uri->getPort() === null || isset(self::DEFAULT_PORTS[$uri->getScheme()]) && $uri->getPort() === self::DEFAULT_PORTS[$uri->getScheme()];
|
151 |
}
|
152 |
/**
|
153 |
* Whether the URI is absolute, i.e. it has a scheme.
|
159 |
* - absolute-path references, e.g. '/path'
|
160 |
* - relative-path references, e.g. 'subpath'
|
161 |
*
|
|
|
|
|
|
|
|
|
162 |
* @see Uri::isNetworkPathReference
|
163 |
* @see Uri::isAbsolutePathReference
|
164 |
* @see Uri::isRelativePathReference
|
165 |
* @link https://tools.ietf.org/html/rfc3986#section-4
|
166 |
*/
|
167 |
+
public static function isAbsolute(\PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface $uri) : bool
|
168 |
{
|
169 |
return $uri->getScheme() !== '';
|
170 |
}
|
173 |
*
|
174 |
* A relative reference that begins with two slash characters is termed an network-path reference.
|
175 |
*
|
|
|
|
|
|
|
|
|
176 |
* @link https://tools.ietf.org/html/rfc3986#section-4.2
|
177 |
*/
|
178 |
+
public static function isNetworkPathReference(\PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface $uri) : bool
|
179 |
{
|
180 |
return $uri->getScheme() === '' && $uri->getAuthority() !== '';
|
181 |
}
|
184 |
*
|
185 |
* A relative reference that begins with a single slash character is termed an absolute-path reference.
|
186 |
*
|
|
|
|
|
|
|
|
|
187 |
* @link https://tools.ietf.org/html/rfc3986#section-4.2
|
188 |
*/
|
189 |
+
public static function isAbsolutePathReference(\PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface $uri) : bool
|
190 |
{
|
191 |
return $uri->getScheme() === '' && $uri->getAuthority() === '' && isset($uri->getPath()[0]) && $uri->getPath()[0] === '/';
|
192 |
}
|
195 |
*
|
196 |
* A relative reference that does not begin with a slash character is termed a relative-path reference.
|
197 |
*
|
|
|
|
|
|
|
|
|
198 |
* @link https://tools.ietf.org/html/rfc3986#section-4.2
|
199 |
*/
|
200 |
+
public static function isRelativePathReference(\PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface $uri) : bool
|
201 |
{
|
202 |
return $uri->getScheme() === '' && $uri->getAuthority() === '' && (!isset($uri->getPath()[0]) || $uri->getPath()[0] !== '/');
|
203 |
}
|
211 |
* @param UriInterface $uri The URI to check
|
212 |
* @param UriInterface|null $base An optional base URI to compare against
|
213 |
*
|
|
|
|
|
214 |
* @link https://tools.ietf.org/html/rfc3986#section-4.4
|
215 |
*/
|
216 |
+
public static function isSameDocumentReference(\PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface $uri, \PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface $base = null) : bool
|
217 |
{
|
218 |
if ($base !== null) {
|
219 |
$uri = \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\UriResolver::resolve($base, $uri);
|
221 |
}
|
222 |
return $uri->getScheme() === '' && $uri->getAuthority() === '' && $uri->getPath() === '' && $uri->getQuery() === '';
|
223 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
224 |
/**
|
225 |
* Creates a new URI with a specific query string value removed.
|
226 |
*
|
229 |
*
|
230 |
* @param UriInterface $uri URI to use as a base.
|
231 |
* @param string $key Query string key to remove.
|
|
|
|
|
232 |
*/
|
233 |
+
public static function withoutQueryValue(\PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface $uri, string $key) : \PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface
|
234 |
{
|
235 |
$result = self::getFilteredQueryString($uri, [$key]);
|
236 |
return $uri->withQuery(\implode('&', $result));
|
247 |
* @param UriInterface $uri URI to use as a base.
|
248 |
* @param string $key Key to set.
|
249 |
* @param string|null $value Value to set
|
|
|
|
|
250 |
*/
|
251 |
+
public static function withQueryValue(\PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface $uri, string $key, ?string $value) : \PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface
|
252 |
{
|
253 |
$result = self::getFilteredQueryString($uri, [$key]);
|
254 |
$result[] = self::generateQueryString($key, $value);
|
259 |
*
|
260 |
* It has the same behavior as withQueryValue() but for an associative array of key => value.
|
261 |
*
|
262 |
+
* @param UriInterface $uri URI to use as a base.
|
263 |
+
* @param array<string, string|null> $keyValueArray Associative array of key and values
|
|
|
|
|
264 |
*/
|
265 |
+
public static function withQueryValues(\PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface $uri, array $keyValueArray) : \PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface
|
266 |
{
|
267 |
$result = self::getFilteredQueryString($uri, \array_keys($keyValueArray));
|
268 |
foreach ($keyValueArray as $key => $value) {
|
269 |
+
$result[] = self::generateQueryString((string) $key, $value !== null ? (string) $value : null);
|
270 |
}
|
271 |
return $uri->withQuery(\implode('&', $result));
|
272 |
}
|
273 |
/**
|
274 |
* Creates a URI from a hash of `parse_url` components.
|
275 |
*
|
|
|
|
|
|
|
|
|
276 |
* @link http://php.net/manual/en/function.parse-url.php
|
277 |
*
|
278 |
+
* @throws MalformedUriException If the components do not form a valid URI.
|
279 |
*/
|
280 |
+
public static function fromParts(array $parts) : \PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface
|
281 |
{
|
282 |
$uri = new self();
|
283 |
$uri->applyParts($parts);
|
284 |
$uri->validateState();
|
285 |
return $uri;
|
286 |
}
|
287 |
+
public function getScheme() : string
|
288 |
{
|
289 |
return $this->scheme;
|
290 |
}
|
291 |
+
public function getAuthority() : string
|
292 |
{
|
293 |
$authority = $this->host;
|
294 |
if ($this->userInfo !== '') {
|
299 |
}
|
300 |
return $authority;
|
301 |
}
|
302 |
+
public function getUserInfo() : string
|
303 |
{
|
304 |
return $this->userInfo;
|
305 |
}
|
306 |
+
public function getHost() : string
|
307 |
{
|
308 |
return $this->host;
|
309 |
}
|
310 |
+
public function getPort() : ?int
|
311 |
{
|
312 |
return $this->port;
|
313 |
}
|
314 |
+
public function getPath() : string
|
315 |
{
|
316 |
return $this->path;
|
317 |
}
|
318 |
+
public function getQuery() : string
|
319 |
{
|
320 |
return $this->query;
|
321 |
}
|
322 |
+
public function getFragment() : string
|
323 |
{
|
324 |
return $this->fragment;
|
325 |
}
|
326 |
+
public function withScheme($scheme) : \PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface
|
327 |
{
|
328 |
$scheme = $this->filterScheme($scheme);
|
329 |
if ($this->scheme === $scheme) {
|
331 |
}
|
332 |
$new = clone $this;
|
333 |
$new->scheme = $scheme;
|
334 |
+
$new->composedComponents = null;
|
335 |
$new->removeDefaultPort();
|
336 |
$new->validateState();
|
337 |
return $new;
|
338 |
}
|
339 |
+
public function withUserInfo($user, $password = null) : \PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface
|
340 |
{
|
341 |
$info = $this->filterUserInfoComponent($user);
|
342 |
if ($password !== null) {
|
347 |
}
|
348 |
$new = clone $this;
|
349 |
$new->userInfo = $info;
|
350 |
+
$new->composedComponents = null;
|
351 |
$new->validateState();
|
352 |
return $new;
|
353 |
}
|
354 |
+
public function withHost($host) : \PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface
|
355 |
{
|
356 |
$host = $this->filterHost($host);
|
357 |
if ($this->host === $host) {
|
359 |
}
|
360 |
$new = clone $this;
|
361 |
$new->host = $host;
|
362 |
+
$new->composedComponents = null;
|
363 |
$new->validateState();
|
364 |
return $new;
|
365 |
}
|
366 |
+
public function withPort($port) : \PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface
|
367 |
{
|
368 |
$port = $this->filterPort($port);
|
369 |
if ($this->port === $port) {
|
371 |
}
|
372 |
$new = clone $this;
|
373 |
$new->port = $port;
|
374 |
+
$new->composedComponents = null;
|
375 |
$new->removeDefaultPort();
|
376 |
$new->validateState();
|
377 |
return $new;
|
378 |
}
|
379 |
+
public function withPath($path) : \PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface
|
380 |
{
|
381 |
$path = $this->filterPath($path);
|
382 |
if ($this->path === $path) {
|
384 |
}
|
385 |
$new = clone $this;
|
386 |
$new->path = $path;
|
387 |
+
$new->composedComponents = null;
|
388 |
$new->validateState();
|
389 |
return $new;
|
390 |
}
|
391 |
+
public function withQuery($query) : \PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface
|
392 |
{
|
393 |
$query = $this->filterQueryAndFragment($query);
|
394 |
if ($this->query === $query) {
|
396 |
}
|
397 |
$new = clone $this;
|
398 |
$new->query = $query;
|
399 |
+
$new->composedComponents = null;
|
400 |
return $new;
|
401 |
}
|
402 |
+
public function withFragment($fragment) : \PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface
|
403 |
{
|
404 |
$fragment = $this->filterQueryAndFragment($fragment);
|
405 |
if ($this->fragment === $fragment) {
|
407 |
}
|
408 |
$new = clone $this;
|
409 |
$new->fragment = $fragment;
|
410 |
+
$new->composedComponents = null;
|
411 |
return $new;
|
412 |
}
|
413 |
/**
|
415 |
*
|
416 |
* @param array $parts Array of parse_url parts to apply.
|
417 |
*/
|
418 |
+
private function applyParts(array $parts) : void
|
419 |
{
|
420 |
$this->scheme = isset($parts['scheme']) ? $this->filterScheme($parts['scheme']) : '';
|
421 |
$this->userInfo = isset($parts['user']) ? $this->filterUserInfoComponent($parts['user']) : '';
|
430 |
$this->removeDefaultPort();
|
431 |
}
|
432 |
/**
|
433 |
+
* @param mixed $scheme
|
|
|
|
|
434 |
*
|
435 |
* @throws \InvalidArgumentException If the scheme is invalid.
|
436 |
*/
|
437 |
+
private function filterScheme($scheme) : string
|
438 |
{
|
439 |
if (!\is_string($scheme)) {
|
440 |
throw new \InvalidArgumentException('Scheme must be a string');
|
442 |
return \strtr($scheme, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz');
|
443 |
}
|
444 |
/**
|
445 |
+
* @param mixed $component
|
|
|
|
|
446 |
*
|
447 |
* @throws \InvalidArgumentException If the user info is invalid.
|
448 |
*/
|
449 |
+
private function filterUserInfoComponent($component) : string
|
450 |
{
|
451 |
if (!\is_string($component)) {
|
452 |
throw new \InvalidArgumentException('User info must be a string');
|
453 |
}
|
454 |
+
return \preg_replace_callback('/(?:[^%' . self::CHAR_UNRESERVED . self::CHAR_SUB_DELIMS . ']+|%(?![A-Fa-f0-9]{2}))/', [$this, 'rawurlencodeMatchZero'], $component);
|
455 |
}
|
456 |
/**
|
457 |
+
* @param mixed $host
|
|
|
|
|
458 |
*
|
459 |
* @throws \InvalidArgumentException If the host is invalid.
|
460 |
*/
|
461 |
+
private function filterHost($host) : string
|
462 |
{
|
463 |
if (!\is_string($host)) {
|
464 |
throw new \InvalidArgumentException('Host must be a string');
|
466 |
return \strtr($host, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz');
|
467 |
}
|
468 |
/**
|
469 |
+
* @param mixed $port
|
|
|
|
|
470 |
*
|
471 |
* @throws \InvalidArgumentException If the port is invalid.
|
472 |
*/
|
473 |
+
private function filterPort($port) : ?int
|
474 |
{
|
475 |
if ($port === null) {
|
476 |
return null;
|
482 |
return $port;
|
483 |
}
|
484 |
/**
|
485 |
+
* @param string[] $keys
|
|
|
486 |
*
|
487 |
+
* @return string[]
|
488 |
*/
|
489 |
+
private static function getFilteredQueryString(\PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface $uri, array $keys) : array
|
490 |
{
|
491 |
$current = $uri->getQuery();
|
492 |
if ($current === '') {
|
497 |
return !\in_array(\rawurldecode(\explode('=', $part)[0]), $decodedKeys, \true);
|
498 |
});
|
499 |
}
|
500 |
+
private static function generateQueryString(string $key, ?string $value) : string
|
|
|
|
|
|
|
|
|
|
|
|
|
501 |
{
|
502 |
// Query string separators ("=", "&") within the key or value need to be encoded
|
503 |
// (while preventing double-encoding) before setting the query string. All other
|
504 |
// chars that need percent-encoding will be encoded by withQuery().
|
505 |
+
$queryString = \strtr($key, self::QUERY_SEPARATORS_REPLACEMENT);
|
506 |
if ($value !== null) {
|
507 |
+
$queryString .= '=' . \strtr($value, self::QUERY_SEPARATORS_REPLACEMENT);
|
508 |
}
|
509 |
return $queryString;
|
510 |
}
|
511 |
+
private function removeDefaultPort() : void
|
512 |
{
|
513 |
if ($this->port !== null && self::isDefaultPort($this)) {
|
514 |
$this->port = null;
|
517 |
/**
|
518 |
* Filters the path of a URI
|
519 |
*
|
520 |
+
* @param mixed $path
|
|
|
|
|
521 |
*
|
522 |
* @throws \InvalidArgumentException If the path is invalid.
|
523 |
*/
|
524 |
+
private function filterPath($path) : string
|
525 |
{
|
526 |
if (!\is_string($path)) {
|
527 |
throw new \InvalidArgumentException('Path must be a string');
|
528 |
}
|
529 |
+
return \preg_replace_callback('/(?:[^' . self::CHAR_UNRESERVED . self::CHAR_SUB_DELIMS . '%:@\\/]++|%(?![A-Fa-f0-9]{2}))/', [$this, 'rawurlencodeMatchZero'], $path);
|
530 |
}
|
531 |
/**
|
532 |
* Filters the query string or fragment of a URI.
|
533 |
*
|
534 |
+
* @param mixed $str
|
|
|
|
|
535 |
*
|
536 |
* @throws \InvalidArgumentException If the query or fragment is invalid.
|
537 |
*/
|
538 |
+
private function filterQueryAndFragment($str) : string
|
539 |
{
|
540 |
if (!\is_string($str)) {
|
541 |
throw new \InvalidArgumentException('Query and fragment must be a string');
|
542 |
}
|
543 |
+
return \preg_replace_callback('/(?:[^' . self::CHAR_UNRESERVED . self::CHAR_SUB_DELIMS . '%:@\\/\\?]++|%(?![A-Fa-f0-9]{2}))/', [$this, 'rawurlencodeMatchZero'], $str);
|
544 |
}
|
545 |
+
private function rawurlencodeMatchZero(array $match) : string
|
546 |
{
|
547 |
return \rawurlencode($match[0]);
|
548 |
}
|
549 |
+
private function validateState() : void
|
550 |
{
|
551 |
if ($this->host === '' && ($this->scheme === 'http' || $this->scheme === 'https')) {
|
552 |
$this->host = self::HTTP_DEFAULT_HOST;
|
553 |
}
|
554 |
if ($this->getAuthority() === '') {
|
555 |
if (0 === \strpos($this->path, '//')) {
|
556 |
+
throw new \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Exception\MalformedUriException('The path of a URI without an authority must not start with two slashes "//"');
|
557 |
}
|
558 |
if ($this->scheme === '' && \false !== \strpos(\explode('/', $this->path, 2)[0], ':')) {
|
559 |
+
throw new \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Exception\MalformedUriException('A relative URI must not have a path beginning with a segment containing a colon');
|
560 |
}
|
561 |
} elseif (isset($this->path[0]) && $this->path[0] !== '/') {
|
562 |
+
throw new \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Exception\MalformedUriException('The path of a URI with an authority must start with a slash "/" or be empty');
|
|
|
|
|
563 |
}
|
564 |
}
|
565 |
}
|
vendor_prefix/guzzlehttp/psr7/src/UriNormalizer.php
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
<?php
|
2 |
|
|
|
3 |
namespace PYS_PRO_GLOBAL\GuzzleHttp\Psr7;
|
4 |
|
5 |
use PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface;
|
@@ -14,17 +15,14 @@ final class UriNormalizer
|
|
14 |
{
|
15 |
/**
|
16 |
* Default normalizations which only include the ones that preserve semantics.
|
17 |
-
*
|
18 |
-
* self::CAPITALIZE_PERCENT_ENCODING | self::DECODE_UNRESERVED_CHARACTERS | self::CONVERT_EMPTY_PATH |
|
19 |
-
* self::REMOVE_DEFAULT_HOST | self::REMOVE_DEFAULT_PORT | self::REMOVE_DOT_SEGMENTS
|
20 |
*/
|
21 |
-
const PRESERVING_NORMALIZATIONS =
|
22 |
/**
|
23 |
* All letters within a percent-encoding triplet (e.g., "%3A") are case-insensitive, and should be capitalized.
|
24 |
*
|
25 |
* Example: http://example.org/a%c2%b1b → http://example.org/a%C2%B1b
|
26 |
*/
|
27 |
-
const CAPITALIZE_PERCENT_ENCODING = 1;
|
28 |
/**
|
29 |
* Decodes percent-encoded octets of unreserved characters.
|
30 |
*
|
@@ -34,13 +32,13 @@ final class UriNormalizer
|
|
34 |
*
|
35 |
* Example: http://example.org/%7Eusern%61me/ → http://example.org/~username/
|
36 |
*/
|
37 |
-
const DECODE_UNRESERVED_CHARACTERS = 2;
|
38 |
/**
|
39 |
* Converts the empty path to "/" for http and https URIs.
|
40 |
*
|
41 |
* Example: http://example.org → http://example.org/
|
42 |
*/
|
43 |
-
const CONVERT_EMPTY_PATH = 4;
|
44 |
/**
|
45 |
* Removes the default host of the given URI scheme from the URI.
|
46 |
*
|
@@ -52,13 +50,13 @@ final class UriNormalizer
|
|
52 |
*
|
53 |
* Example: file://localhost/myfile → file:///myfile
|
54 |
*/
|
55 |
-
const REMOVE_DEFAULT_HOST = 8;
|
56 |
/**
|
57 |
* Removes the default port of the given URI scheme from the URI.
|
58 |
*
|
59 |
* Example: http://example.org:80/ → http://example.org/
|
60 |
*/
|
61 |
-
const REMOVE_DEFAULT_PORT = 16;
|
62 |
/**
|
63 |
* Removes unnecessary dot-segments.
|
64 |
*
|
@@ -67,7 +65,7 @@ final class UriNormalizer
|
|
67 |
*
|
68 |
* Example: http://example.org/../a/b/../c/./d.html → http://example.org/a/c/d.html
|
69 |
*/
|
70 |
-
const REMOVE_DOT_SEGMENTS = 32;
|
71 |
/**
|
72 |
* Paths which include two or more adjacent slashes are converted to one.
|
73 |
*
|
@@ -77,7 +75,7 @@ final class UriNormalizer
|
|
77 |
*
|
78 |
* Example: http://example.org//foo///bar.html → http://example.org/foo/bar.html
|
79 |
*/
|
80 |
-
const REMOVE_DUPLICATE_SLASHES = 64;
|
81 |
/**
|
82 |
* Sort query parameters with their values in alphabetical order.
|
83 |
*
|
@@ -89,7 +87,7 @@ final class UriNormalizer
|
|
89 |
* Note: The sorting is neither locale nor Unicode aware (the URI query does not get decoded at all) as the
|
90 |
* purpose is to be able to compare URIs in a reproducible way, not to have the params sorted perfectly.
|
91 |
*/
|
92 |
-
const SORT_QUERY_PARAMETERS = 128;
|
93 |
/**
|
94 |
* Returns a normalized URI.
|
95 |
*
|
@@ -104,11 +102,9 @@ final class UriNormalizer
|
|
104 |
* @param UriInterface $uri The URI to normalize
|
105 |
* @param int $flags A bitmask of normalizations to apply, see constants
|
106 |
*
|
107 |
-
* @return UriInterface The normalized URI
|
108 |
-
*
|
109 |
* @link https://tools.ietf.org/html/rfc3986#section-6.2
|
110 |
*/
|
111 |
-
public static function normalize(\PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface $uri, $flags = self::PRESERVING_NORMALIZATIONS)
|
112 |
{
|
113 |
if ($flags & self::CAPITALIZE_PERCENT_ENCODING) {
|
114 |
$uri = self::capitalizePercentEncoding($uri);
|
@@ -150,15 +146,13 @@ final class UriNormalizer
|
|
150 |
* @param UriInterface $uri2 An URI to compare
|
151 |
* @param int $normalizations A bitmask of normalizations to apply, see constants
|
152 |
*
|
153 |
-
* @return bool
|
154 |
-
*
|
155 |
* @link https://tools.ietf.org/html/rfc3986#section-6.1
|
156 |
*/
|
157 |
-
public static function isEquivalent(\PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface $uri1, \PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface $uri2, $normalizations = self::PRESERVING_NORMALIZATIONS)
|
158 |
{
|
159 |
return (string) self::normalize($uri1, $normalizations) === (string) self::normalize($uri2, $normalizations);
|
160 |
}
|
161 |
-
private static function capitalizePercentEncoding(\PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface $uri)
|
162 |
{
|
163 |
$regex = '/(?:%[A-Fa-f0-9]{2})++/';
|
164 |
$callback = function (array $match) {
|
@@ -166,7 +160,7 @@ final class UriNormalizer
|
|
166 |
};
|
167 |
return $uri->withPath(\preg_replace_callback($regex, $callback, $uri->getPath()))->withQuery(\preg_replace_callback($regex, $callback, $uri->getQuery()));
|
168 |
}
|
169 |
-
private static function decodeUnreservedCharacters(\PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface $uri)
|
170 |
{
|
171 |
$regex = '/%(?:2D|2E|5F|7E|3[0-9]|[46][1-9A-F]|[57][0-9A])/i';
|
172 |
$callback = function (array $match) {
|
1 |
<?php
|
2 |
|
3 |
+
declare (strict_types=1);
|
4 |
namespace PYS_PRO_GLOBAL\GuzzleHttp\Psr7;
|
5 |
|
6 |
use PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface;
|
15 |
{
|
16 |
/**
|
17 |
* Default normalizations which only include the ones that preserve semantics.
|
|
|
|
|
|
|
18 |
*/
|
19 |
+
public const PRESERVING_NORMALIZATIONS = self::CAPITALIZE_PERCENT_ENCODING | self::DECODE_UNRESERVED_CHARACTERS | self::CONVERT_EMPTY_PATH | self::REMOVE_DEFAULT_HOST | self::REMOVE_DEFAULT_PORT | self::REMOVE_DOT_SEGMENTS;
|
20 |
/**
|
21 |
* All letters within a percent-encoding triplet (e.g., "%3A") are case-insensitive, and should be capitalized.
|
22 |
*
|
23 |
* Example: http://example.org/a%c2%b1b → http://example.org/a%C2%B1b
|
24 |
*/
|
25 |
+
public const CAPITALIZE_PERCENT_ENCODING = 1;
|
26 |
/**
|
27 |
* Decodes percent-encoded octets of unreserved characters.
|
28 |
*
|
32 |
*
|
33 |
* Example: http://example.org/%7Eusern%61me/ → http://example.org/~username/
|
34 |
*/
|
35 |
+
public const DECODE_UNRESERVED_CHARACTERS = 2;
|
36 |
/**
|
37 |
* Converts the empty path to "/" for http and https URIs.
|
38 |
*
|
39 |
* Example: http://example.org → http://example.org/
|
40 |
*/
|
41 |
+
public const CONVERT_EMPTY_PATH = 4;
|
42 |
/**
|
43 |
* Removes the default host of the given URI scheme from the URI.
|
44 |
*
|
50 |
*
|
51 |
* Example: file://localhost/myfile → file:///myfile
|
52 |
*/
|
53 |
+
public const REMOVE_DEFAULT_HOST = 8;
|
54 |
/**
|
55 |
* Removes the default port of the given URI scheme from the URI.
|
56 |
*
|
57 |
* Example: http://example.org:80/ → http://example.org/
|
58 |
*/
|
59 |
+
public const REMOVE_DEFAULT_PORT = 16;
|
60 |
/**
|
61 |
* Removes unnecessary dot-segments.
|
62 |
*
|
65 |
*
|
66 |
* Example: http://example.org/../a/b/../c/./d.html → http://example.org/a/c/d.html
|
67 |
*/
|
68 |
+
public const REMOVE_DOT_SEGMENTS = 32;
|
69 |
/**
|
70 |
* Paths which include two or more adjacent slashes are converted to one.
|
71 |
*
|
75 |
*
|
76 |
* Example: http://example.org//foo///bar.html → http://example.org/foo/bar.html
|
77 |
*/
|
78 |
+
public const REMOVE_DUPLICATE_SLASHES = 64;
|
79 |
/**
|
80 |
* Sort query parameters with their values in alphabetical order.
|
81 |
*
|
87 |
* Note: The sorting is neither locale nor Unicode aware (the URI query does not get decoded at all) as the
|
88 |
* purpose is to be able to compare URIs in a reproducible way, not to have the params sorted perfectly.
|
89 |
*/
|
90 |
+
public const SORT_QUERY_PARAMETERS = 128;
|
91 |
/**
|
92 |
* Returns a normalized URI.
|
93 |
*
|
102 |
* @param UriInterface $uri The URI to normalize
|
103 |
* @param int $flags A bitmask of normalizations to apply, see constants
|
104 |
*
|
|
|
|
|
105 |
* @link https://tools.ietf.org/html/rfc3986#section-6.2
|
106 |
*/
|
107 |
+
public static function normalize(\PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface $uri, int $flags = self::PRESERVING_NORMALIZATIONS) : \PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface
|
108 |
{
|
109 |
if ($flags & self::CAPITALIZE_PERCENT_ENCODING) {
|
110 |
$uri = self::capitalizePercentEncoding($uri);
|
146 |
* @param UriInterface $uri2 An URI to compare
|
147 |
* @param int $normalizations A bitmask of normalizations to apply, see constants
|
148 |
*
|
|
|
|
|
149 |
* @link https://tools.ietf.org/html/rfc3986#section-6.1
|
150 |
*/
|
151 |
+
public static function isEquivalent(\PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface $uri1, \PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface $uri2, int $normalizations = self::PRESERVING_NORMALIZATIONS) : bool
|
152 |
{
|
153 |
return (string) self::normalize($uri1, $normalizations) === (string) self::normalize($uri2, $normalizations);
|
154 |
}
|
155 |
+
private static function capitalizePercentEncoding(\PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface $uri) : \PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface
|
156 |
{
|
157 |
$regex = '/(?:%[A-Fa-f0-9]{2})++/';
|
158 |
$callback = function (array $match) {
|
160 |
};
|
161 |
return $uri->withPath(\preg_replace_callback($regex, $callback, $uri->getPath()))->withQuery(\preg_replace_callback($regex, $callback, $uri->getQuery()));
|
162 |
}
|
163 |
+
private static function decodeUnreservedCharacters(\PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface $uri) : \PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface
|
164 |
{
|
165 |
$regex = '/%(?:2D|2E|5F|7E|3[0-9]|[46][1-9A-F]|[57][0-9A])/i';
|
166 |
$callback = function (array $match) {
|
vendor_prefix/guzzlehttp/psr7/src/UriResolver.php
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
<?php
|
2 |
|
|
|
3 |
namespace PYS_PRO_GLOBAL\GuzzleHttp\Psr7;
|
4 |
|
5 |
use PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface;
|
@@ -15,13 +16,9 @@ final class UriResolver
|
|
15 |
/**
|
16 |
* Removes dot segments from a path and returns the new path.
|
17 |
*
|
18 |
-
* @param string $path
|
19 |
-
*
|
20 |
-
* @return string
|
21 |
-
*
|
22 |
* @link http://tools.ietf.org/html/rfc3986#section-5.2.4
|
23 |
*/
|
24 |
-
public static function removeDotSegments($path)
|
25 |
{
|
26 |
if ($path === '' || $path === '/') {
|
27 |
return $path;
|
@@ -49,14 +46,9 @@ final class UriResolver
|
|
49 |
/**
|
50 |
* Converts the relative URI into a new URI that is resolved against the base URI.
|
51 |
*
|
52 |
-
* @param UriInterface $base Base URI
|
53 |
-
* @param UriInterface $rel Relative URI
|
54 |
-
*
|
55 |
-
* @return UriInterface
|
56 |
-
*
|
57 |
* @link http://tools.ietf.org/html/rfc3986#section-5.2
|
58 |
*/
|
59 |
-
public static function resolve(\PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface $base, \PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface $rel)
|
60 |
{
|
61 |
if ((string) $rel === '') {
|
62 |
// we can simply return the same base URI instance for this same-document reference
|
@@ -115,13 +107,8 @@ final class UriResolver
|
|
115 |
* relative-path reference will be returned as-is.
|
116 |
*
|
117 |
* echo UriResolver::relativize($base, new Uri('/a/b/c')); // prints 'c' as well
|
118 |
-
*
|
119 |
-
* @param UriInterface $base Base URI
|
120 |
-
* @param UriInterface $target Target URI
|
121 |
-
*
|
122 |
-
* @return UriInterface The relative URI reference
|
123 |
*/
|
124 |
-
public static function relativize(\PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface $base, \PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface $target)
|
125 |
{
|
126 |
if ($target->getScheme() !== '' && ($base->getScheme() !== $target->getScheme() || $target->getAuthority() === '' && $base->getAuthority() !== '')) {
|
127 |
return $target;
|
@@ -150,12 +137,13 @@ final class UriResolver
|
|
150 |
// inherit the base query component when resolving.
|
151 |
if ($target->getQuery() === '') {
|
152 |
$segments = \explode('/', $target->getPath());
|
|
|
153 |
$lastSegment = \end($segments);
|
154 |
return $emptyPathUri->withPath($lastSegment === '' ? './' : $lastSegment);
|
155 |
}
|
156 |
return $emptyPathUri;
|
157 |
}
|
158 |
-
private static function getRelativePath(\PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface $base, \PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface $target)
|
159 |
{
|
160 |
$sourceSegments = \explode('/', $base->getPath());
|
161 |
$targetSegments = \explode('/', $target->getPath());
|
1 |
<?php
|
2 |
|
3 |
+
declare (strict_types=1);
|
4 |
namespace PYS_PRO_GLOBAL\GuzzleHttp\Psr7;
|
5 |
|
6 |
use PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface;
|
16 |
/**
|
17 |
* Removes dot segments from a path and returns the new path.
|
18 |
*
|
|
|
|
|
|
|
|
|
19 |
* @link http://tools.ietf.org/html/rfc3986#section-5.2.4
|
20 |
*/
|
21 |
+
public static function removeDotSegments(string $path) : string
|
22 |
{
|
23 |
if ($path === '' || $path === '/') {
|
24 |
return $path;
|
46 |
/**
|
47 |
* Converts the relative URI into a new URI that is resolved against the base URI.
|
48 |
*
|
|
|
|
|
|
|
|
|
|
|
49 |
* @link http://tools.ietf.org/html/rfc3986#section-5.2
|
50 |
*/
|
51 |
+
public static function resolve(\PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface $base, \PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface $rel) : \PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface
|
52 |
{
|
53 |
if ((string) $rel === '') {
|
54 |
// we can simply return the same base URI instance for this same-document reference
|
107 |
* relative-path reference will be returned as-is.
|
108 |
*
|
109 |
* echo UriResolver::relativize($base, new Uri('/a/b/c')); // prints 'c' as well
|
|
|
|
|
|
|
|
|
|
|
110 |
*/
|
111 |
+
public static function relativize(\PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface $base, \PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface $target) : \PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface
|
112 |
{
|
113 |
if ($target->getScheme() !== '' && ($base->getScheme() !== $target->getScheme() || $target->getAuthority() === '' && $base->getAuthority() !== '')) {
|
114 |
return $target;
|
137 |
// inherit the base query component when resolving.
|
138 |
if ($target->getQuery() === '') {
|
139 |
$segments = \explode('/', $target->getPath());
|
140 |
+
/** @var string $lastSegment */
|
141 |
$lastSegment = \end($segments);
|
142 |
return $emptyPathUri->withPath($lastSegment === '' ? './' : $lastSegment);
|
143 |
}
|
144 |
return $emptyPathUri;
|
145 |
}
|
146 |
+
private static function getRelativePath(\PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface $base, \PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface $target) : string
|
147 |
{
|
148 |
$sourceSegments = \explode('/', $base->getPath());
|
149 |
$targetSegments = \explode('/', $target->getPath());
|
vendor_prefix/guzzlehttp/psr7/src/Utils.php
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
<?php
|
2 |
|
|
|
3 |
namespace PYS_PRO_GLOBAL\GuzzleHttp\Psr7;
|
4 |
|
5 |
use PYS_PRO_GLOBAL\Psr\Http\Message\RequestInterface;
|
@@ -11,18 +12,16 @@ final class Utils
|
|
11 |
/**
|
12 |
* Remove the items given by the keys, case insensitively from the data.
|
13 |
*
|
14 |
-
* @param
|
15 |
-
*
|
16 |
-
* @return array
|
17 |
*/
|
18 |
-
public static function caselessRemove($keys, array $data)
|
19 |
{
|
20 |
$result = [];
|
21 |
foreach ($keys as &$key) {
|
22 |
$key = \strtolower($key);
|
23 |
}
|
24 |
foreach ($data as $k => $v) {
|
25 |
-
if (!\in_array(\strtolower($k), $keys)) {
|
26 |
$result[$k] = $v;
|
27 |
}
|
28 |
}
|
@@ -39,7 +38,7 @@ final class Utils
|
|
39 |
*
|
40 |
* @throws \RuntimeException on error.
|
41 |
*/
|
42 |
-
public static function copyToStream(\PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface $source, \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface $dest, $maxLen = -1)
|
43 |
{
|
44 |
$bufferSize = 8192;
|
45 |
if ($maxLen === -1) {
|
@@ -69,18 +68,15 @@ final class Utils
|
|
69 |
* @param int $maxLen Maximum number of bytes to read. Pass -1
|
70 |
* to read the entire stream.
|
71 |
*
|
72 |
-
* @return string
|
73 |
-
*
|
74 |
* @throws \RuntimeException on error.
|
75 |
*/
|
76 |
-
public static function copyToString(\PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface $stream, $maxLen = -1)
|
77 |
{
|
78 |
$buffer = '';
|
79 |
if ($maxLen === -1) {
|
80 |
while (!$stream->eof()) {
|
81 |
$buf = $stream->read(1048576);
|
82 |
-
|
83 |
-
if ($buf == null) {
|
84 |
break;
|
85 |
}
|
86 |
$buffer .= $buf;
|
@@ -90,8 +86,7 @@ final class Utils
|
|
90 |
$len = 0;
|
91 |
while (!$stream->eof() && $len < $maxLen) {
|
92 |
$buf = $stream->read($maxLen - $len);
|
93 |
-
|
94 |
-
if ($buf == null) {
|
95 |
break;
|
96 |
}
|
97 |
$buffer .= $buf;
|
@@ -109,11 +104,9 @@ final class Utils
|
|
109 |
* @param string $algo Hash algorithm (e.g. md5, crc32, etc)
|
110 |
* @param bool $rawOutput Whether or not to use raw output
|
111 |
*
|
112 |
-
* @return string Returns the hash of the stream
|
113 |
-
*
|
114 |
* @throws \RuntimeException on error.
|
115 |
*/
|
116 |
-
public static function hash(\PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface $stream, $algo, $rawOutput = \false)
|
117 |
{
|
118 |
$pos = $stream->tell();
|
119 |
if ($pos > 0) {
|
@@ -144,10 +137,8 @@ final class Utils
|
|
144 |
*
|
145 |
* @param RequestInterface $request Request to clone and modify.
|
146 |
* @param array $changes Changes to apply.
|
147 |
-
*
|
148 |
-
* @return RequestInterface
|
149 |
*/
|
150 |
-
public static function modifyRequest(\PYS_PRO_GLOBAL\Psr\Http\Message\RequestInterface $request, array $changes)
|
151 |
{
|
152 |
if (!$changes) {
|
153 |
return $request;
|
@@ -180,29 +171,26 @@ final class Utils
|
|
180 |
$uri = $uri->withQuery($changes['query']);
|
181 |
}
|
182 |
if ($request instanceof \PYS_PRO_GLOBAL\Psr\Http\Message\ServerRequestInterface) {
|
183 |
-
$new = (new \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\ServerRequest(
|
184 |
foreach ($request->getAttributes() as $key => $value) {
|
185 |
$new = $new->withAttribute($key, $value);
|
186 |
}
|
187 |
return $new;
|
188 |
}
|
189 |
-
return new \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Request(
|
190 |
}
|
191 |
/**
|
192 |
* Read a line from the stream up to the maximum allowed buffer length.
|
193 |
*
|
194 |
* @param StreamInterface $stream Stream to read from
|
195 |
* @param int|null $maxLength Maximum buffer length
|
196 |
-
*
|
197 |
-
* @return string
|
198 |
*/
|
199 |
-
public static function readLine(\PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface $stream, $maxLength = null)
|
200 |
{
|
201 |
$buffer = '';
|
202 |
$size = 0;
|
203 |
while (!$stream->eof()) {
|
204 |
-
|
205 |
-
if (null == ($byte = $stream->read(1))) {
|
206 |
return $buffer;
|
207 |
}
|
208 |
$buffer .= $byte;
|
@@ -243,18 +231,16 @@ final class Utils
|
|
243 |
* buffered and used in subsequent reads.
|
244 |
*
|
245 |
* @param resource|string|int|float|bool|StreamInterface|callable|\Iterator|null $resource Entity body data
|
246 |
-
* @param array
|
247 |
-
*
|
248 |
-
* @return StreamInterface
|
249 |
*
|
250 |
* @throws \InvalidArgumentException if the $resource arg is not valid.
|
251 |
*/
|
252 |
-
public static function streamFor($resource = '', array $options = [])
|
253 |
{
|
254 |
if (\is_scalar($resource)) {
|
255 |
$stream = self::tryFopen('php://temp', 'r+');
|
256 |
if ($resource !== '') {
|
257 |
-
\fwrite($stream, $resource);
|
258 |
\fseek($stream, 0);
|
259 |
}
|
260 |
return new \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Stream($stream, $options);
|
@@ -265,8 +251,8 @@ final class Utils
|
|
265 |
* The 'php://input' is a special stream with quirks and inconsistencies.
|
266 |
* We avoid using that stream by reading it into php://temp
|
267 |
*/
|
268 |
-
|
269 |
-
if (
|
270 |
$stream = self::tryFopen('php://temp', 'w+');
|
271 |
\fwrite($stream, \stream_get_contents($resource));
|
272 |
\fseek($stream, 0);
|
@@ -274,6 +260,7 @@ final class Utils
|
|
274 |
}
|
275 |
return new \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Stream($resource, $options);
|
276 |
case 'object':
|
|
|
277 |
if ($resource instanceof \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface) {
|
278 |
return $resource;
|
279 |
} elseif ($resource instanceof \Iterator) {
|
@@ -286,7 +273,7 @@ final class Utils
|
|
286 |
return $result;
|
287 |
}, $options);
|
288 |
} elseif (\method_exists($resource, '__toString')) {
|
289 |
-
return
|
290 |
}
|
291 |
break;
|
292 |
case 'NULL':
|
@@ -310,14 +297,15 @@ final class Utils
|
|
310 |
*
|
311 |
* @throws \RuntimeException if the file cannot be opened
|
312 |
*/
|
313 |
-
public static function tryFopen($filename, $mode)
|
314 |
{
|
315 |
$ex = null;
|
316 |
-
\set_error_handler(function () use($filename, $mode, &$ex) {
|
317 |
-
$ex = new \RuntimeException(\sprintf('Unable to open "%s" using mode "%s": %s', $filename, $mode,
|
318 |
return \true;
|
319 |
});
|
320 |
try {
|
|
|
321 |
$handle = \fopen($filename, $mode);
|
322 |
} catch (\Throwable $e) {
|
323 |
$ex = new \RuntimeException(\sprintf('Unable to open "%s" using mode "%s": %s', $filename, $mode, $e->getMessage()), 0, $e);
|
@@ -338,11 +326,9 @@ final class Utils
|
|
338 |
*
|
339 |
* @param string|UriInterface $uri
|
340 |
*
|
341 |
-
* @return UriInterface
|
342 |
-
*
|
343 |
* @throws \InvalidArgumentException
|
344 |
*/
|
345 |
-
public static function uriFor($uri)
|
346 |
{
|
347 |
if ($uri instanceof \PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface) {
|
348 |
return $uri;
|
1 |
<?php
|
2 |
|
3 |
+
declare (strict_types=1);
|
4 |
namespace PYS_PRO_GLOBAL\GuzzleHttp\Psr7;
|
5 |
|
6 |
use PYS_PRO_GLOBAL\Psr\Http\Message\RequestInterface;
|
12 |
/**
|
13 |
* Remove the items given by the keys, case insensitively from the data.
|
14 |
*
|
15 |
+
* @param string[] $keys
|
|
|
|
|
16 |
*/
|
17 |
+
public static function caselessRemove(array $keys, array $data) : array
|
18 |
{
|
19 |
$result = [];
|
20 |
foreach ($keys as &$key) {
|
21 |
$key = \strtolower($key);
|
22 |
}
|
23 |
foreach ($data as $k => $v) {
|
24 |
+
if (!\is_string($k) || !\in_array(\strtolower($k), $keys)) {
|
25 |
$result[$k] = $v;
|
26 |
}
|
27 |
}
|
38 |
*
|
39 |
* @throws \RuntimeException on error.
|
40 |
*/
|
41 |
+
public static function copyToStream(\PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface $source, \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface $dest, int $maxLen = -1) : void
|
42 |
{
|
43 |
$bufferSize = 8192;
|
44 |
if ($maxLen === -1) {
|
68 |
* @param int $maxLen Maximum number of bytes to read. Pass -1
|
69 |
* to read the entire stream.
|
70 |
*
|
|
|
|
|
71 |
* @throws \RuntimeException on error.
|
72 |
*/
|
73 |
+
public static function copyToString(\PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface $stream, int $maxLen = -1) : string
|
74 |
{
|
75 |
$buffer = '';
|
76 |
if ($maxLen === -1) {
|
77 |
while (!$stream->eof()) {
|
78 |
$buf = $stream->read(1048576);
|
79 |
+
if ($buf === '') {
|
|
|
80 |
break;
|
81 |
}
|
82 |
$buffer .= $buf;
|
86 |
$len = 0;
|
87 |
while (!$stream->eof() && $len < $maxLen) {
|
88 |
$buf = $stream->read($maxLen - $len);
|
89 |
+
if ($buf === '') {
|
|
|
90 |
break;
|
91 |
}
|
92 |
$buffer .= $buf;
|
104 |
* @param string $algo Hash algorithm (e.g. md5, crc32, etc)
|
105 |
* @param bool $rawOutput Whether or not to use raw output
|
106 |
*
|
|
|
|
|
107 |
* @throws \RuntimeException on error.
|
108 |
*/
|
109 |
+
public static function hash(\PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface $stream, string $algo, bool $rawOutput = \false) : string
|
110 |
{
|
111 |
$pos = $stream->tell();
|
112 |
if ($pos > 0) {
|
137 |
*
|
138 |
* @param RequestInterface $request Request to clone and modify.
|
139 |
* @param array $changes Changes to apply.
|
|
|
|
|
140 |
*/
|
141 |
+
public static function modifyRequest(\PYS_PRO_GLOBAL\Psr\Http\Message\RequestInterface $request, array $changes) : \PYS_PRO_GLOBAL\Psr\Http\Message\RequestInterface
|
142 |
{
|
143 |
if (!$changes) {
|
144 |
return $request;
|
171 |
$uri = $uri->withQuery($changes['query']);
|
172 |
}
|
173 |
if ($request instanceof \PYS_PRO_GLOBAL\Psr\Http\Message\ServerRequestInterface) {
|
174 |
+
$new = (new \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\ServerRequest($changes['method'] ?? $request->getMethod(), $uri, $headers, $changes['body'] ?? $request->getBody(), $changes['version'] ?? $request->getProtocolVersion(), $request->getServerParams()))->withParsedBody($request->getParsedBody())->withQueryParams($request->getQueryParams())->withCookieParams($request->getCookieParams())->withUploadedFiles($request->getUploadedFiles());
|
175 |
foreach ($request->getAttributes() as $key => $value) {
|
176 |
$new = $new->withAttribute($key, $value);
|
177 |
}
|
178 |
return $new;
|
179 |
}
|
180 |
+
return new \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Request($changes['method'] ?? $request->getMethod(), $uri, $headers, $changes['body'] ?? $request->getBody(), $changes['version'] ?? $request->getProtocolVersion());
|
181 |
}
|
182 |
/**
|
183 |
* Read a line from the stream up to the maximum allowed buffer length.
|
184 |
*
|
185 |
* @param StreamInterface $stream Stream to read from
|
186 |
* @param int|null $maxLength Maximum buffer length
|
|
|
|
|
187 |
*/
|
188 |
+
public static function readLine(\PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface $stream, ?int $maxLength = null) : string
|
189 |
{
|
190 |
$buffer = '';
|
191 |
$size = 0;
|
192 |
while (!$stream->eof()) {
|
193 |
+
if ('' === ($byte = $stream->read(1))) {
|
|
|
194 |
return $buffer;
|
195 |
}
|
196 |
$buffer .= $byte;
|
231 |
* buffered and used in subsequent reads.
|
232 |
*
|
233 |
* @param resource|string|int|float|bool|StreamInterface|callable|\Iterator|null $resource Entity body data
|
234 |
+
* @param array{size?: int, metadata?: array} $options Additional options
|
|
|
|
|
235 |
*
|
236 |
* @throws \InvalidArgumentException if the $resource arg is not valid.
|
237 |
*/
|
238 |
+
public static function streamFor($resource = '', array $options = []) : \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface
|
239 |
{
|
240 |
if (\is_scalar($resource)) {
|
241 |
$stream = self::tryFopen('php://temp', 'r+');
|
242 |
if ($resource !== '') {
|
243 |
+
\fwrite($stream, (string) $resource);
|
244 |
\fseek($stream, 0);
|
245 |
}
|
246 |
return new \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Stream($stream, $options);
|
251 |
* The 'php://input' is a special stream with quirks and inconsistencies.
|
252 |
* We avoid using that stream by reading it into php://temp
|
253 |
*/
|
254 |
+
/** @var resource $resource */
|
255 |
+
if ((\stream_get_meta_data($resource)['uri'] ?? '') === 'php://input') {
|
256 |
$stream = self::tryFopen('php://temp', 'w+');
|
257 |
\fwrite($stream, \stream_get_contents($resource));
|
258 |
\fseek($stream, 0);
|
260 |
}
|
261 |
return new \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Stream($resource, $options);
|
262 |
case 'object':
|
263 |
+
/** @var object $resource */
|
264 |
if ($resource instanceof \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface) {
|
265 |
return $resource;
|
266 |
} elseif ($resource instanceof \Iterator) {
|
273 |
return $result;
|
274 |
}, $options);
|
275 |
} elseif (\method_exists($resource, '__toString')) {
|
276 |
+
return self::streamFor((string) $resource, $options);
|
277 |
}
|
278 |
break;
|
279 |
case 'NULL':
|
297 |
*
|
298 |
* @throws \RuntimeException if the file cannot be opened
|
299 |
*/
|
300 |
+
public static function tryFopen(string $filename, string $mode)
|
301 |
{
|
302 |
$ex = null;
|
303 |
+
\set_error_handler(static function (int $errno, string $errstr) use($filename, $mode, &$ex) : bool {
|
304 |
+
$ex = new \RuntimeException(\sprintf('Unable to open "%s" using mode "%s": %s', $filename, $mode, $errstr));
|
305 |
return \true;
|
306 |
});
|
307 |
try {
|
308 |
+
/** @var resource $handle */
|
309 |
$handle = \fopen($filename, $mode);
|
310 |
} catch (\Throwable $e) {
|
311 |
$ex = new \RuntimeException(\sprintf('Unable to open "%s" using mode "%s": %s', $filename, $mode, $e->getMessage()), 0, $e);
|
326 |
*
|
327 |
* @param string|UriInterface $uri
|
328 |
*
|
|
|
|
|
329 |
* @throws \InvalidArgumentException
|
330 |
*/
|
331 |
+
public static function uriFor($uri) : \PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface
|
332 |
{
|
333 |
if ($uri instanceof \PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface) {
|
334 |
return $uri;
|
vendor_prefix/guzzlehttp/psr7/src/functions.php
DELETED
@@ -1,400 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
namespace PYS_PRO_GLOBAL\GuzzleHttp\Psr7;
|
4 |
-
|
5 |
-
use PYS_PRO_GLOBAL\Psr\Http\Message\MessageInterface;
|
6 |
-
use PYS_PRO_GLOBAL\Psr\Http\Message\RequestInterface;
|
7 |
-
use PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface;
|
8 |
-
use PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface;
|
9 |
-
/**
|
10 |
-
* Returns the string representation of an HTTP message.
|
11 |
-
*
|
12 |
-
* @param MessageInterface $message Message to convert to a string.
|
13 |
-
*
|
14 |
-
* @return string
|
15 |
-
*
|
16 |
-
* @deprecated str will be removed in guzzlehttp/psr7:2.0. Use Message::toString instead.
|
17 |
-
*/
|
18 |
-
function str(\PYS_PRO_GLOBAL\Psr\Http\Message\MessageInterface $message)
|
19 |
-
{
|
20 |
-
return \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Message::toString($message);
|
21 |
-
}
|
22 |
-
/**
|
23 |
-
* Returns a UriInterface for the given value.
|
24 |
-
*
|
25 |
-
* This function accepts a string or UriInterface and returns a
|
26 |
-
* UriInterface for the given value. If the value is already a
|
27 |
-
* UriInterface, it is returned as-is.
|
28 |
-
*
|
29 |
-
* @param string|UriInterface $uri
|
30 |
-
*
|
31 |
-
* @return UriInterface
|
32 |
-
*
|
33 |
-
* @throws \InvalidArgumentException
|
34 |
-
*
|
35 |
-
* @deprecated uri_for will be removed in guzzlehttp/psr7:2.0. Use Utils::uriFor instead.
|
36 |
-
*/
|
37 |
-
function uri_for($uri)
|
38 |
-
{
|
39 |
-
return \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Utils::uriFor($uri);
|
40 |
-
}
|
41 |
-
/**
|
42 |
-
* Create a new stream based on the input type.
|
43 |
-
*
|
44 |
-
* Options is an associative array that can contain the following keys:
|
45 |
-
* - metadata: Array of custom metadata.
|
46 |
-
* - size: Size of the stream.
|
47 |
-
*
|
48 |
-
* This method accepts the following `$resource` types:
|
49 |
-
* - `Psr\Http\Message\StreamInterface`: Returns the value as-is.
|
50 |
-
* - `string`: Creates a stream object that uses the given string as the contents.
|
51 |
-
* - `resource`: Creates a stream object that wraps the given PHP stream resource.
|
52 |
-
* - `Iterator`: If the provided value implements `Iterator`, then a read-only
|
53 |
-
* stream object will be created that wraps the given iterable. Each time the
|
54 |
-
* stream is read from, data from the iterator will fill a buffer and will be
|
55 |
-
* continuously called until the buffer is equal to the requested read size.
|
56 |
-
* Subsequent read calls will first read from the buffer and then call `next`
|
57 |
-
* on the underlying iterator until it is exhausted.
|
58 |
-
* - `object` with `__toString()`: If the object has the `__toString()` method,
|
59 |
-
* the object will be cast to a string and then a stream will be returned that
|
60 |
-
* uses the string value.
|
61 |
-
* - `NULL`: When `null` is passed, an empty stream object is returned.
|
62 |
-
* - `callable` When a callable is passed, a read-only stream object will be
|
63 |
-
* created that invokes the given callable. The callable is invoked with the
|
64 |
-
* number of suggested bytes to read. The callable can return any number of
|
65 |
-
* bytes, but MUST return `false` when there is no more data to return. The
|
66 |
-
* stream object that wraps the callable will invoke the callable until the
|
67 |
-
* number of requested bytes are available. Any additional bytes will be
|
68 |
-
* buffered and used in subsequent reads.
|
69 |
-
*
|
70 |
-
* @param resource|string|int|float|bool|StreamInterface|callable|\Iterator|null $resource Entity body data
|
71 |
-
* @param array $options Additional options
|
72 |
-
*
|
73 |
-
* @return StreamInterface
|
74 |
-
*
|
75 |
-
* @throws \InvalidArgumentException if the $resource arg is not valid.
|
76 |
-
*
|
77 |
-
* @deprecated stream_for will be removed in guzzlehttp/psr7:2.0. Use Utils::streamFor instead.
|
78 |
-
*/
|
79 |
-
function stream_for($resource = '', array $options = [])
|
80 |
-
{
|
81 |
-
return \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Utils::streamFor($resource, $options);
|
82 |
-
}
|
83 |
-
/**
|
84 |
-
* Parse an array of header values containing ";" separated data into an
|
85 |
-
* array of associative arrays representing the header key value pair data
|
86 |
-
* of the header. When a parameter does not contain a value, but just
|
87 |
-
* contains a key, this function will inject a key with a '' string value.
|
88 |
-
*
|
89 |
-
* @param string|array $header Header to parse into components.
|
90 |
-
*
|
91 |
-
* @return array Returns the parsed header values.
|
92 |
-
*
|
93 |
-
* @deprecated parse_header will be removed in guzzlehttp/psr7:2.0. Use Header::parse instead.
|
94 |
-
*/
|
95 |
-
function parse_header($header)
|
96 |
-
{
|
97 |
-
return \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Header::parse($header);
|
98 |
-
}
|
99 |
-
/**
|
100 |
-
* Converts an array of header values that may contain comma separated
|
101 |
-
* headers into an array of headers with no comma separated values.
|
102 |
-
*
|
103 |
-
* @param string|array $header Header to normalize.
|
104 |
-
*
|
105 |
-
* @return array Returns the normalized header field values.
|
106 |
-
*
|
107 |
-
* @deprecated normalize_header will be removed in guzzlehttp/psr7:2.0. Use Header::normalize instead.
|
108 |
-
*/
|
109 |
-
function normalize_header($header)
|
110 |
-
{
|
111 |
-
return \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Header::normalize($header);
|
112 |
-
}
|
113 |
-
/**
|
114 |
-
* Clone and modify a request with the given changes.
|
115 |
-
*
|
116 |
-
* This method is useful for reducing the number of clones needed to mutate a
|
117 |
-
* message.
|
118 |
-
*
|
119 |
-
* The changes can be one of:
|
120 |
-
* - method: (string) Changes the HTTP method.
|
121 |
-
* - set_headers: (array) Sets the given headers.
|
122 |
-
* - remove_headers: (array) Remove the given headers.
|
123 |
-
* - body: (mixed) Sets the given body.
|
124 |
-
* - uri: (UriInterface) Set the URI.
|
125 |
-
* - query: (string) Set the query string value of the URI.
|
126 |
-
* - version: (string) Set the protocol version.
|
127 |
-
*
|
128 |
-
* @param RequestInterface $request Request to clone and modify.
|
129 |
-
* @param array $changes Changes to apply.
|
130 |
-
*
|
131 |
-
* @return RequestInterface
|
132 |
-
*
|
133 |
-
* @deprecated modify_request will be removed in guzzlehttp/psr7:2.0. Use Utils::modifyRequest instead.
|
134 |
-
*/
|
135 |
-
function modify_request(\PYS_PRO_GLOBAL\Psr\Http\Message\RequestInterface $request, array $changes)
|
136 |
-
{
|
137 |
-
return \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Utils::modifyRequest($request, $changes);
|
138 |
-
}
|
139 |
-
/**
|
140 |
-
* Attempts to rewind a message body and throws an exception on failure.
|
141 |
-
*
|
142 |
-
* The body of the message will only be rewound if a call to `tell()` returns a
|
143 |
-
* value other than `0`.
|
144 |
-
*
|
145 |
-
* @param MessageInterface $message Message to rewind
|
146 |
-
*
|
147 |
-
* @throws \RuntimeException
|
148 |
-
*
|
149 |
-
* @deprecated rewind_body will be removed in guzzlehttp/psr7:2.0. Use Message::rewindBody instead.
|
150 |
-
*/
|
151 |
-
function rewind_body(\PYS_PRO_GLOBAL\Psr\Http\Message\MessageInterface $message)
|
152 |
-
{
|
153 |
-
\PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Message::rewindBody($message);
|
154 |
-
}
|
155 |
-
/**
|
156 |
-
* Safely opens a PHP stream resource using a filename.
|
157 |
-
*
|
158 |
-
* When fopen fails, PHP normally raises a warning. This function adds an
|
159 |
-
* error handler that checks for errors and throws an exception instead.
|
160 |
-
*
|
161 |
-
* @param string $filename File to open
|
162 |
-
* @param string $mode Mode used to open the file
|
163 |
-
*
|
164 |
-
* @return resource
|
165 |
-
*
|
166 |
-
* @throws \RuntimeException if the file cannot be opened
|
167 |
-
*
|
168 |
-
* @deprecated try_fopen will be removed in guzzlehttp/psr7:2.0. Use Utils::tryFopen instead.
|
169 |
-
*/
|
170 |
-
function try_fopen($filename, $mode)
|
171 |
-
{
|
172 |
-
return \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Utils::tryFopen($filename, $mode);
|
173 |
-
}
|
174 |
-
/**
|
175 |
-
* Copy the contents of a stream into a string until the given number of
|
176 |
-
* bytes have been read.
|
177 |
-
*
|
178 |
-
* @param StreamInterface $stream Stream to read
|
179 |
-
* @param int $maxLen Maximum number of bytes to read. Pass -1
|
180 |
-
* to read the entire stream.
|
181 |
-
*
|
182 |
-
* @return string
|
183 |
-
*
|
184 |
-
* @throws \RuntimeException on error.
|
185 |
-
*
|
186 |
-
* @deprecated copy_to_string will be removed in guzzlehttp/psr7:2.0. Use Utils::copyToString instead.
|
187 |
-
*/
|
188 |
-
function copy_to_string(\PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface $stream, $maxLen = -1)
|
189 |
-
{
|
190 |
-
return \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Utils::copyToString($stream, $maxLen);
|
191 |
-
}
|
192 |
-
/**
|
193 |
-
* Copy the contents of a stream into another stream until the given number
|
194 |
-
* of bytes have been read.
|
195 |
-
*
|
196 |
-
* @param StreamInterface $source Stream to read from
|
197 |
-
* @param StreamInterface $dest Stream to write to
|
198 |
-
* @param int $maxLen Maximum number of bytes to read. Pass -1
|
199 |
-
* to read the entire stream.
|
200 |
-
*
|
201 |
-
* @throws \RuntimeException on error.
|
202 |
-
*
|
203 |
-
* @deprecated copy_to_stream will be removed in guzzlehttp/psr7:2.0. Use Utils::copyToStream instead.
|
204 |
-
*/
|
205 |
-
function copy_to_stream(\PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface $source, \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface $dest, $maxLen = -1)
|
206 |
-
{
|
207 |
-
return \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Utils::copyToStream($source, $dest, $maxLen);
|
208 |
-
}
|
209 |
-
/**
|
210 |
-
* Calculate a hash of a stream.
|
211 |
-
*
|
212 |
-
* This method reads the entire stream to calculate a rolling hash, based on
|
213 |
-
* PHP's `hash_init` functions.
|
214 |
-
*
|
215 |
-
* @param StreamInterface $stream Stream to calculate the hash for
|
216 |
-
* @param string $algo Hash algorithm (e.g. md5, crc32, etc)
|
217 |
-
* @param bool $rawOutput Whether or not to use raw output
|
218 |
-
*
|
219 |
-
* @return string Returns the hash of the stream
|
220 |
-
*
|
221 |
-
* @throws \RuntimeException on error.
|
222 |
-
*
|
223 |
-
* @deprecated hash will be removed in guzzlehttp/psr7:2.0. Use Utils::hash instead.
|
224 |
-
*/
|
225 |
-
function hash(\PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface $stream, $algo, $rawOutput = \false)
|
226 |
-
{
|
227 |
-
return \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Utils::hash($stream, $algo, $rawOutput);
|
228 |
-
}
|
229 |
-
/**
|
230 |
-
* Read a line from the stream up to the maximum allowed buffer length.
|
231 |
-
*
|
232 |
-
* @param StreamInterface $stream Stream to read from
|
233 |
-
* @param int|null $maxLength Maximum buffer length
|
234 |
-
*
|
235 |
-
* @return string
|
236 |
-
*
|
237 |
-
* @deprecated readline will be removed in guzzlehttp/psr7:2.0. Use Utils::readLine instead.
|
238 |
-
*/
|
239 |
-
function readline(\PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface $stream, $maxLength = null)
|
240 |
-
{
|
241 |
-
return \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Utils::readLine($stream, $maxLength);
|
242 |
-
}
|
243 |
-
/**
|
244 |
-
* Parses a request message string into a request object.
|
245 |
-
*
|
246 |
-
* @param string $message Request message string.
|
247 |
-
*
|
248 |
-
* @return Request
|
249 |
-
*
|
250 |
-
* @deprecated parse_request will be removed in guzzlehttp/psr7:2.0. Use Message::parseRequest instead.
|
251 |
-
*/
|
252 |
-
function parse_request($message)
|
253 |
-
{
|
254 |
-
return \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Message::parseRequest($message);
|
255 |
-
}
|
256 |
-
/**
|
257 |
-
* Parses a response message string into a response object.
|
258 |
-
*
|
259 |
-
* @param string $message Response message string.
|
260 |
-
*
|
261 |
-
* @return Response
|
262 |
-
*
|
263 |
-
* @deprecated parse_response will be removed in guzzlehttp/psr7:2.0. Use Message::parseResponse instead.
|
264 |
-
*/
|
265 |
-
function parse_response($message)
|
266 |
-
{
|
267 |
-
return \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Message::parseResponse($message);
|
268 |
-
}
|
269 |
-
/**
|
270 |
-
* Parse a query string into an associative array.
|
271 |
-
*
|
272 |
-
* If multiple values are found for the same key, the value of that key value
|
273 |
-
* pair will become an array. This function does not parse nested PHP style
|
274 |
-
* arrays into an associative array (e.g., `foo[a]=1&foo[b]=2` will be parsed
|
275 |
-
* into `['foo[a]' => '1', 'foo[b]' => '2'])`.
|
276 |
-
*
|
277 |
-
* @param string $str Query string to parse
|
278 |
-
* @param int|bool $urlEncoding How the query string is encoded
|
279 |
-
*
|
280 |
-
* @return array
|
281 |
-
*
|
282 |
-
* @deprecated parse_query will be removed in guzzlehttp/psr7:2.0. Use Query::parse instead.
|
283 |
-
*/
|
284 |
-
function parse_query($str, $urlEncoding = \true)
|
285 |
-
{
|
286 |
-
return \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Query::parse($str, $urlEncoding);
|
287 |
-
}
|
288 |
-
/**
|
289 |
-
* Build a query string from an array of key value pairs.
|
290 |
-
*
|
291 |
-
* This function can use the return value of `parse_query()` to build a query
|
292 |
-
* string. This function does not modify the provided keys when an array is
|
293 |
-
* encountered (like `http_build_query()` would).
|
294 |
-
*
|
295 |
-
* @param array $params Query string parameters.
|
296 |
-
* @param int|false $encoding Set to false to not encode, PHP_QUERY_RFC3986
|
297 |
-
* to encode using RFC3986, or PHP_QUERY_RFC1738
|
298 |
-
* to encode using RFC1738.
|
299 |
-
*
|
300 |
-
* @return string
|
301 |
-
*
|
302 |
-
* @deprecated build_query will be removed in guzzlehttp/psr7:2.0. Use Query::build instead.
|
303 |
-
*/
|
304 |
-
function build_query(array $params, $encoding = \PHP_QUERY_RFC3986)
|
305 |
-
{
|
306 |
-
return \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Query::build($params, $encoding);
|
307 |
-
}
|
308 |
-
/**
|
309 |
-
* Determines the mimetype of a file by looking at its extension.
|
310 |
-
*
|
311 |
-
* @param string $filename
|
312 |
-
*
|
313 |
-
* @return string|null
|
314 |
-
*
|
315 |
-
* @deprecated mimetype_from_filename will be removed in guzzlehttp/psr7:2.0. Use MimeType::fromFilename instead.
|
316 |
-
*/
|
317 |
-
function mimetype_from_filename($filename)
|
318 |
-
{
|
319 |
-
return \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\MimeType::fromFilename($filename);
|
320 |
-
}
|
321 |
-
/**
|
322 |
-
* Maps a file extensions to a mimetype.
|
323 |
-
*
|
324 |
-
* @param $extension string The file extension.
|
325 |
-
*
|
326 |
-
* @return string|null
|
327 |
-
*
|
328 |
-
* @link http://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x/conf/mime.types
|
329 |
-
* @deprecated mimetype_from_extension will be removed in guzzlehttp/psr7:2.0. Use MimeType::fromExtension instead.
|
330 |
-
*/
|
331 |
-
function mimetype_from_extension($extension)
|
332 |
-
{
|
333 |
-
return \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\MimeType::fromExtension($extension);
|
334 |
-
}
|
335 |
-
/**
|
336 |
-
* Parses an HTTP message into an associative array.
|
337 |
-
*
|
338 |
-
* The array contains the "start-line" key containing the start line of
|
339 |
-
* the message, "headers" key containing an associative array of header
|
340 |
-
* array values, and a "body" key containing the body of the message.
|
341 |
-
*
|
342 |
-
* @param string $message HTTP request or response to parse.
|
343 |
-
*
|
344 |
-
* @return array
|
345 |
-
*
|
346 |
-
* @internal
|
347 |
-
*
|
348 |
-
* @deprecated _parse_message will be removed in guzzlehttp/psr7:2.0. Use Message::parseMessage instead.
|
349 |
-
*/
|
350 |
-
function _parse_message($message)
|
351 |
-
{
|
352 |
-
return \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Message::parseMessage($message);
|
353 |
-
}
|
354 |
-
/**
|
355 |
-
* Constructs a URI for an HTTP request message.
|
356 |
-
*
|
357 |
-
* @param string $path Path from the start-line
|
358 |
-
* @param array $headers Array of headers (each value an array).
|
359 |
-
*
|
360 |
-
* @return string
|
361 |
-
*
|
362 |
-
* @internal
|
363 |
-
*
|
364 |
-
* @deprecated _parse_request_uri will be removed in guzzlehttp/psr7:2.0. Use Message::parseRequestUri instead.
|
365 |
-
*/
|
366 |
-
function _parse_request_uri($path, array $headers)
|
367 |
-
{
|
368 |
-
return \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Message::parseRequestUri($path, $headers);
|
369 |
-
}
|
370 |
-
/**
|
371 |
-
* Get a short summary of the message body.
|
372 |
-
*
|
373 |
-
* Will return `null` if the response is not printable.
|
374 |
-
*
|
375 |
-
* @param MessageInterface $message The message to get the body summary
|
376 |
-
* @param int $truncateAt The maximum allowed size of the summary
|
377 |
-
*
|
378 |
-
* @return string|null
|
379 |
-
*
|
380 |
-
* @deprecated get_message_body_summary will be removed in guzzlehttp/psr7:2.0. Use Message::bodySummary instead.
|
381 |
-
*/
|
382 |
-
function get_message_body_summary(\PYS_PRO_GLOBAL\Psr\Http\Message\MessageInterface $message, $truncateAt = 120)
|
383 |
-
{
|
384 |
-
return \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Message::bodySummary($message, $truncateAt);
|
385 |
-
}
|
386 |
-
/**
|
387 |
-
* Remove the items given by the keys, case insensitively from the data.
|
388 |
-
*
|
389 |
-
* @param iterable<string> $keys
|
390 |
-
*
|
391 |
-
* @return array
|
392 |
-
*
|
393 |
-
* @internal
|
394 |
-
*
|
395 |
-
* @deprecated _caseless_remove will be removed in guzzlehttp/psr7:2.0. Use Utils::caselessRemove instead.
|
396 |
-
*/
|
397 |
-
function _caseless_remove($keys, array $data)
|
398 |
-
{
|
399 |
-
return \PYS_PRO_GLOBAL\GuzzleHttp\Psr7\Utils::caselessRemove($keys, $data);
|
400 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor_prefix/guzzlehttp/psr7/src/functions_include.php
DELETED
@@ -1,8 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
namespace PYS_PRO_GLOBAL;
|
4 |
-
|
5 |
-
// Don't redefine the functions if included multiple times.
|
6 |
-
if (!\function_exists('PYS_PRO_GLOBAL\\GuzzleHttp\\Psr7\\str')) {
|
7 |
-
require __DIR__ . '/functions.php';
|
8 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor_prefix/psr/http-factory/src/RequestFactoryInterface.php
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
namespace PYS_PRO_GLOBAL\Psr\Http\Message;
|
4 |
+
|
5 |
+
interface RequestFactoryInterface
|
6 |
+
{
|
7 |
+
/**
|
8 |
+
* Create a new request.
|
9 |
+
*
|
10 |
+
* @param string $method The HTTP method associated with the request.
|
11 |
+
* @param UriInterface|string $uri The URI associated with the request. If
|
12 |
+
* the value is a string, the factory MUST create a UriInterface
|
13 |
+
* instance based on it.
|
14 |
+
*
|
15 |
+
* @return RequestInterface
|
16 |
+
*/
|
17 |
+
public function createRequest(string $method, $uri) : \PYS_PRO_GLOBAL\Psr\Http\Message\RequestInterface;
|
18 |
+
}
|
vendor_prefix/psr/http-factory/src/ResponseFactoryInterface.php
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
namespace PYS_PRO_GLOBAL\Psr\Http\Message;
|
4 |
+
|
5 |
+
interface ResponseFactoryInterface
|
6 |
+
{
|
7 |
+
/**
|
8 |
+
* Create a new response.
|
9 |
+
*
|
10 |
+
* @param int $code HTTP status code; defaults to 200
|
11 |
+
* @param string $reasonPhrase Reason phrase to associate with status code
|
12 |
+
* in generated response; if none is provided implementations MAY use
|
13 |
+
* the defaults as suggested in the HTTP specification.
|
14 |
+
*
|
15 |
+
* @return ResponseInterface
|
16 |
+
*/
|
17 |
+
public function createResponse(int $code = 200, string $reasonPhrase = '') : \PYS_PRO_GLOBAL\Psr\Http\Message\ResponseInterface;
|
18 |
+
}
|
vendor_prefix/psr/http-factory/src/ServerRequestFactoryInterface.php
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
namespace PYS_PRO_GLOBAL\Psr\Http\Message;
|
4 |
+
|
5 |
+
interface ServerRequestFactoryInterface
|
6 |
+
{
|
7 |
+
/**
|
8 |
+
* Create a new server request.
|
9 |
+
*
|
10 |
+
* Note that server-params are taken precisely as given - no parsing/processing
|
11 |
+
* of the given values is performed, and, in particular, no attempt is made to
|
12 |
+
* determine the HTTP method or URI, which must be provided explicitly.
|
13 |
+
*
|
14 |
+
* @param string $method The HTTP method associated with the request.
|
15 |
+
* @param UriInterface|string $uri The URI associated with the request. If
|
16 |
+
* the value is a string, the factory MUST create a UriInterface
|
17 |
+
* instance based on it.
|
18 |
+
* @param array $serverParams Array of SAPI parameters with which to seed
|
19 |
+
* the generated request instance.
|
20 |
+
*
|
21 |
+
* @return ServerRequestInterface
|
22 |
+
*/
|
23 |
+
public function createServerRequest(string $method, $uri, array $serverParams = []) : \PYS_PRO_GLOBAL\Psr\Http\Message\ServerRequestInterface;
|
24 |
+
}
|
vendor_prefix/psr/http-factory/src/StreamFactoryInterface.php
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
namespace PYS_PRO_GLOBAL\Psr\Http\Message;
|
4 |
+
|
5 |
+
interface StreamFactoryInterface
|
6 |
+
{
|
7 |
+
/**
|
8 |
+
* Create a new stream from a string.
|
9 |
+
*
|
10 |
+
* The stream SHOULD be created with a temporary resource.
|
11 |
+
*
|
12 |
+
* @param string $content String content with which to populate the stream.
|
13 |
+
*
|
14 |
+
* @return StreamInterface
|
15 |
+
*/
|
16 |
+
public function createStream(string $content = '') : \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface;
|
17 |
+
/**
|
18 |
+
* Create a stream from an existing file.
|
19 |
+
*
|
20 |
+
* The file MUST be opened using the given mode, which may be any mode
|
21 |
+
* supported by the `fopen` function.
|
22 |
+
*
|
23 |
+
* The `$filename` MAY be any string supported by `fopen()`.
|
24 |
+
*
|
25 |
+
* @param string $filename Filename or stream URI to use as basis of stream.
|
26 |
+
* @param string $mode Mode with which to open the underlying filename/stream.
|
27 |
+
*
|
28 |
+
* @return StreamInterface
|
29 |
+
* @throws \RuntimeException If the file cannot be opened.
|
30 |
+
* @throws \InvalidArgumentException If the mode is invalid.
|
31 |
+
*/
|
32 |
+
public function createStreamFromFile(string $filename, string $mode = 'r') : \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface;
|
33 |
+
/**
|
34 |
+
* Create a new stream from an existing resource.
|
35 |
+
*
|
36 |
+
* The stream MUST be readable and may be writable.
|
37 |
+
*
|
38 |
+
* @param resource $resource PHP resource to use as basis of stream.
|
39 |
+
*
|
40 |
+
* @return StreamInterface
|
41 |
+
*/
|
42 |
+
public function createStreamFromResource($resource) : \PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface;
|
43 |
+
}
|
vendor_prefix/psr/http-factory/src/UploadedFileFactoryInterface.php
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
namespace PYS_PRO_GLOBAL\Psr\Http\Message;
|
4 |
+
|
5 |
+
interface UploadedFileFactoryInterface
|
6 |
+
{
|
7 |
+
/**
|
8 |
+
* Create a new uploaded file.
|
9 |
+
*
|
10 |
+
* If a size is not provided it will be determined by checking the size of
|
11 |
+
* the file.
|
12 |
+
*
|
13 |
+
* @see http://php.net/manual/features.file-upload.post-method.php
|
14 |
+
* @see http://php.net/manual/features.file-upload.errors.php
|
15 |
+
*
|
16 |
+
* @param StreamInterface $stream Underlying stream representing the
|
17 |
+
* uploaded file content.
|
18 |
+
* @param int $size in bytes
|
19 |
+
* @param int $error PHP file upload error
|
20 |
+
* @param string $clientFilename Filename as provided by the client, if any.
|
21 |
+
* @param string $clientMediaType Media type as provided by the client, if any.
|
22 |
+
*
|
23 |
+
* @return UploadedFileInterface
|
24 |
+
*
|
25 |
+
* @throws \InvalidArgumentException If the file resource is not readable.
|
26 |
+
*/
|
27 |
+
public function createUploadedFile(\PYS_PRO_GLOBAL\Psr\Http\Message\StreamInterface $stream, int $size = null, int $error = \UPLOAD_ERR_OK, string $clientFilename = null, string $clientMediaType = null) : \PYS_PRO_GLOBAL\Psr\Http\Message\UploadedFileInterface;
|
28 |
+
}
|
vendor_prefix/psr/http-factory/src/UriFactoryInterface.php
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
namespace PYS_PRO_GLOBAL\Psr\Http\Message;
|
4 |
+
|
5 |
+
interface UriFactoryInterface
|
6 |
+
{
|
7 |
+
/**
|
8 |
+
* Create a new URI.
|
9 |
+
*
|
10 |
+
* @param string $uri
|
11 |
+
*
|
12 |
+
* @return UriInterface
|
13 |
+
*
|
14 |
+
* @throws \InvalidArgumentException If the given URI cannot be parsed.
|
15 |
+
*/
|
16 |
+
public function createUri(string $uri = '') : \PYS_PRO_GLOBAL\Psr\Http\Message\UriInterface;
|
17 |
+
}
|