Edit file File name : Event.php Content :<?php /** * Copyright (c) 2015-present, Facebook, Inc. All rights reserved. * * You are hereby granted a non-exclusive, worldwide, royalty-free license to * use, copy, modify, and distribute this software in source code or binary * form for use in connection with the web services and APIs provided by * Facebook. * * As with any software that integrates with the Facebook platform, your use * of this software is subject to the Facebook Developer Principles and * Policies [http://developers.facebook.com/policy/]. This copyright notice * shall be included in all copies or substantial portions of the software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * DEALINGS IN THE SOFTWARE. * */ namespace PYS_PRO_GLOBAL\FacebookAds\Object; use PYS_PRO_GLOBAL\FacebookAds\ApiRequest; use PYS_PRO_GLOBAL\FacebookAds\Cursor; use PYS_PRO_GLOBAL\FacebookAds\Http\RequestInterface; use PYS_PRO_GLOBAL\FacebookAds\TypeChecker; use PYS_PRO_GLOBAL\FacebookAds\Object\Fields\EventFields; use PYS_PRO_GLOBAL\FacebookAds\Object\Values\EventCategoryValues; use PYS_PRO_GLOBAL\FacebookAds\Object\Values\EventEventStateFilterValues; use PYS_PRO_GLOBAL\FacebookAds\Object\Values\EventOnlineEventFormatValues; use PYS_PRO_GLOBAL\FacebookAds\Object\Values\EventTimeFilterValues; use PYS_PRO_GLOBAL\FacebookAds\Object\Values\EventTypeValues; use PYS_PRO_GLOBAL\FacebookAds\Object\Values\LiveVideoProjectionValues; use PYS_PRO_GLOBAL\FacebookAds\Object\Values\LiveVideoSpatialAudioFormatValues; use PYS_PRO_GLOBAL\FacebookAds\Object\Values\LiveVideoStatusValues; use PYS_PRO_GLOBAL\FacebookAds\Object\Values\LiveVideoStereoscopicModeValues; use PYS_PRO_GLOBAL\FacebookAds\Object\Values\LiveVideoStreamTypeValues; /** * This class is auto-generated. * * For any issues or feature requests related to this class, please let us know * on github and we'll fix in our codegen framework. We'll not be able to accept * pull request for this class. * */ class Event extends AbstractCrudObject { /** * @return EventFields */ public static function getFieldsEnum() { return EventFields::getInstance(); } protected static function getReferencedEnums() { $ref_enums = array(); $ref_enums['Category'] = EventCategoryValues::getInstance()->getValues(); $ref_enums['OnlineEventFormat'] = EventOnlineEventFormatValues::getInstance()->getValues(); $ref_enums['Type'] = EventTypeValues::getInstance()->getValues(); $ref_enums['EventStateFilter'] = EventEventStateFilterValues::getInstance()->getValues(); $ref_enums['TimeFilter'] = EventTimeFilterValues::getInstance()->getValues(); return $ref_enums; } public function getComments(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( ); $enums = array( ); $request = new ApiRequest( $this->api, $this->data['id'], RequestInterface::METHOD_GET, '/comments', new NullNode(), 'EDGE', NullNode::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); $request->addFields($fields); return $pending ? $request : $request->execute(); } public function getFeed(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( ); $enums = array( ); $request = new ApiRequest( $this->api, $this->data['id'], RequestInterface::METHOD_GET, '/feed', new NullNode(), 'EDGE', NullNode::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); $request->addFields($fields); return $pending ? $request : $request->execute(); } public function getLiveVideos(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( ); $enums = array( ); $request = new ApiRequest( $this->api, $this->data['id'], RequestInterface::METHOD_GET, '/live_videos', new NullNode(), 'EDGE', NullNode::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); $request->addFields($fields); return $pending ? $request : $request->execute(); } public function createLiveVideo(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( 'content_tags' => 'list<string>', 'description' => 'string', 'enable_backup_ingest' => 'bool', 'encoding_settings' => 'string', 'event_params' => 'Object', 'fisheye_video_cropped' => 'bool', 'front_z_rotation' => 'float', 'is_audio_only' => 'bool', 'is_spherical' => 'bool', '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', ); $enums = array( 'projection_enum' => LiveVideoProjectionValues::getInstance()->getValues(), 'spatial_audio_format_enum' => LiveVideoSpatialAudioFormatValues::getInstance()->getValues(), 'status_enum' => LiveVideoStatusValues::getInstance()->getValues(), 'stereoscopic_mode_enum' => LiveVideoStereoscopicModeValues::getInstance()->getValues(), 'stream_type_enum' => LiveVideoStreamTypeValues::getInstance()->getValues(), ); $request = new ApiRequest( $this->api, $this->data['id'], RequestInterface::METHOD_POST, '/live_videos', new LiveVideo(), 'EDGE', LiveVideo::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); $request->addFields($fields); return $pending ? $request : $request->execute(); } public function getPhotos(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( ); $enums = array( ); $request = new ApiRequest( $this->api, $this->data['id'], RequestInterface::METHOD_GET, '/photos', new NullNode(), 'EDGE', NullNode::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); $request->addFields($fields); return $pending ? $request : $request->execute(); } public function getPicture(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( ); $enums = array( ); $request = new ApiRequest( $this->api, $this->data['id'], RequestInterface::METHOD_GET, '/picture', new NullNode(), 'EDGE', NullNode::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); $request->addFields($fields); return $pending ? $request : $request->execute(); } public function getPosts(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( ); $enums = array( ); $request = new ApiRequest( $this->api, $this->data['id'], RequestInterface::METHOD_GET, '/posts', new NullNode(), 'EDGE', NullNode::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); $request->addFields($fields); return $pending ? $request : $request->execute(); } public function getRoles(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( ); $enums = array( ); $request = new ApiRequest( $this->api, $this->data['id'], RequestInterface::METHOD_GET, '/roles', new Profile(), 'EDGE', Profile::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); $request->addFields($fields); return $pending ? $request : $request->execute(); } public function getTicketTiers(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( ); $enums = array( ); $request = new ApiRequest( $this->api, $this->data['id'], RequestInterface::METHOD_GET, '/ticket_tiers', new AbstractCrudObject(), 'EDGE', array(), new TypeChecker($param_types, $enums) ); $request->addParams($params); $request->addFields($fields); return $pending ? $request : $request->execute(); } public function getVideos(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( ); $enums = array( ); $request = new ApiRequest( $this->api, $this->data['id'], RequestInterface::METHOD_GET, '/videos', new NullNode(), 'EDGE', NullNode::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); $request->addFields($fields); return $pending ? $request : $request->execute(); } public function getSelf(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( ); $enums = array( ); $request = new ApiRequest( $this->api, $this->data['id'], RequestInterface::METHOD_GET, '/', new Event(), 'NODE', Event::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); $request->addFields($fields); return $pending ? $request : $request->execute(); } } Save