public function testSubmitConfigWithAPIKey() { $config = Coconut::config(array('source' => 'https://s3-eu-west-1.amazonaws.com/files.coconut.co/test.mp4')); $job = Coconut::submit($config, 'k-4d204a7fd1fc67fc00e87d3c326d9b75'); $this->assertEquals('error', $job->{'status'}); $this->assertEquals('authentication_failed', $job->{'error_code'}); }
public static function create($options = array()) { return Coconut::submit(Coconut::config($options), $options['api_key']); }