Intercom\IntercomMessages::create PHP Метод

create() публичный Метод

Creates Message.
См. также: https://developers.intercom.io/reference#conversations
public create ( array $options ) : mixed
$options array
Результат mixed
    public function create($options)
    {
        return $this->client->post("messages", $options);
    }

Usage Example

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