Intercom\IntercomNotes::getNote PHP Метод

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

Returns single Note.
См. также: https://developers.intercom.io/reference#view-a-note
public getNote ( string $id ) : mixed
$id string
Результат mixed
    public function getNote($id)
    {
        return $this->client->get("notes/" . $id, []);
    }

Usage Example

Пример #1
0
 public function testNotesGet()
 {
     $stub = $this->getMockBuilder('Intercom\\IntercomClient')->disableOriginalConstructor()->getMock();
     $stub->method('get')->will($this->returnArgument(0));
     $notes = new IntercomNotes($stub);
     $this->assertEquals('notes/foo', $notes->getNote("foo"));
 }