Skip to content

Commit

Permalink
add Rest Contact Custom Fields List endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Fairchild committed Apr 25, 2017
1 parent 059a345 commit b3bfc9d
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/Infusionsoft/Api/Rest/CustomFieldService.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php namespace Infusionsoft\Api\Rest;

use Infusionsoft\Api\Rest\Traits\CannotCreate;
use Infusionsoft\Api\Rest\Traits\CannotDelete;
use Infusionsoft\Api\Rest\Traits\CannotSave;
use Infusionsoft\Api\Rest\Traits\CannotSync;

class CustomFieldService extends RestModel {

use CannotDelete, CannotSync, CannotSave, CannotCreate;

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

}
7 changes: 7 additions & 0 deletions src/Infusionsoft/Infusionsoft.php
Original file line number Diff line number Diff line change
Expand Up @@ -693,6 +693,13 @@ public function appointments()
return $this->getRestApi('AppointmentService');
}

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

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

0 comments on commit b3bfc9d

Please sign in to comment.