import { HttpStatusCode } from '@shared/models' ; import { AbstractCommand , OverrideCommandOptions } from '../shared' ; export class ServicesCommand extends AbstractCommand { getOEmbed ( options ) { const path = '/services/oembed' ; const query = { url : options . oembedUrl , format : options . format , maxheight : options . maxHeight , maxwidth : options . maxWidth } ; return this . getRequest ( { ... options , path , query , implicitToken : false , defaultExpectedStatus : HttpStatusCode . OK_200 } ) ; } }