UNPKG

facebook-nodejs-business-sdk

Version:
53 lines (49 loc) 1.24 kB
/** * Copyright (c) 2017-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the license found in the * LICENSE file in the root directory of this source tree. * @flow */ import {AbstractCrudObject} from './../abstract-crud-object'; import AbstractObject from './../abstract-object'; /** * Destination * @extends AbstractCrudObject * @see {@link https://developers.facebook.com/docs/marketing-api/} */ export default class Destination extends AbstractCrudObject { static get Fields () { return Object.freeze({ address: 'address', applinks: 'applinks', currency: 'currency', description: 'description', destination_id: 'destination_id', id: 'id', images: 'images', name: 'name', price: 'price', price_change: 'price_change', sanitized_images: 'sanitized_images', types: 'types', url: 'url' }); } getVideosMetadata (fields, params, fetchFirstPage = true): AbstractObject { return this.getEdge( AbstractObject, fields, params, fetchFirstPage, '/videos_metadata' ); } get (fields, params): Destination { return this.read( fields, params ); } }