Intercom\IntercomCompanies::create PHP Method

create() public method

Creates a Company.
See also: https://developers.intercom.io/reference#create-or-update-company
public create ( array $options ) : mixed
$options array
return mixed
    public function create($options)
    {
        return $this->client->post("companies", $options);
    }

Usage Example

 public function testUserCreate()
 {
     $stub = $this->getMockBuilder('Intercom\\IntercomClient')->disableOriginalConstructor()->getMock();
     $stub->method('post')->willReturn('foo');
     $companies = new IntercomCompanies($stub);
     $this->assertEquals('foo', $companies->create([]));
 }