lib/SourcesService.php
public function create(array $source, array $options = array())
  {
    $attributes = array_intersect_key($source, array_flip(self::$keysToPersist));

    list($code, $createdSource) = $this->httpClient->post("/sources", $attributes, $options);
    return $createdSource;
  }
public function create(array $source, array $options = array())
  {
    $attributes = array_intersect_key($source, array_flip(self::$keysToPersist));

    list($code, $createdSource) = $this->httpClient->post("/sources", $attributes, $options);
    return $createdSource;
  }
public function create ( array $ source , array $ options = array ( ) ) { $ attributes = array_intersect_key ( $ source , array_flip ( self :: $ keysToPersist ) ) ; list ( $ code , $ createdSource ) = $ this -> httpClient -> post ( "/sources" , $ attributes , $ options ) ; return $ createdSource ; }
Create a source

post '/sources'

Creates a new source
<figure class="notice">
Source's name **must** be unique
</figure>

@param array $source This array's attributes describe the object to be created.
@param array $options Additional request's options.

@return array The resulting object representing created resource.
Create a source