Skip to content

Commit

Permalink
Add Rest Notes Endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Fairchild committed Aug 7, 2018
1 parent 6ff6951 commit b5493aa
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/Infusionsoft/Api/Rest/NoteService.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php namespace Infusionsoft\Api\Rest;

use Infusionsoft\Api\Rest\Traits\CannotModel;
use Infusionsoft\Api\Rest\Traits\CannotSync;

class NoteService extends RestModel
{
use CannotSync, CannotModel;

public $full_url = 'https://api.infusionsoft.com/crm/rest/v1/notes';

public $return_key = 'notes';

public $updateVerb = 'patch';
}
8 changes: 8 additions & 0 deletions src/Infusionsoft/Infusionsoft.php
Original file line number Diff line number Diff line change
Expand Up @@ -725,6 +725,14 @@ public function tasks()
return $this->getRestApi('TaskService');
}

/**
* @return \Infusionsoft\Api\Rest\NoteService
*/
public function notes()
{
return $this->getRestApi('NoteService');
}

/**
* @return \Infusionsoft\Api\Rest\AppointmentService
*/
Expand Down

0 comments on commit b5493aa

Please sign in to comment.