Ejemplo n.º 1
0
 /**
  * @param array $options
  * @param array $notifyParams
  *
  * @return EncodingResponse
  */
 public function addMedia($options, $notifyParams = [])
 {
     $baseSettings = ['format' => $this->config->getNotify()->getFormat(), 'notify_format' => $this->config->getNotify()->getFormat(), 'notify' => $this->routeAssembler->buildRoute($this->config->getNotify()->getNotifyRoute(), $notifyParams)];
     $options = array_merge($baseSettings, $options);
     $options['source'] = $this->routeAssembler->buildUrl($options['source']);
     $command = $this->client->getCommand('AddMedia', $options);
     return $this->runCommand($command);
 }