Intercom\IntercomUsers::create PHP Method

create() public method

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

Usage Example

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