Ejemplo n.º 1
0
 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'});
 }
Ejemplo n.º 2
0
 public static function create($options = array())
 {
     return Coconut::submit(Coconut::config($options), $options['api_key']);
 }