Intercom\IntercomNotes::getNote PHP Method

getNote() public method

Returns single Note.
See also: https://developers.intercom.io/reference#view-a-note
public getNote ( string $id ) : mixed
$id string
return mixed
    public function getNote($id)
    {
        return $this->client->get("notes/" . $id, []);
    }

Usage Example

 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"));
 }