Skip to content

Commit

Permalink
added subscription service with list (#215)
Browse files Browse the repository at this point in the history
* added subscription service with list

* removed list method
  • Loading branch information
nova4005 authored and mfairch committed Apr 24, 2019
1 parent 93a30fe commit 9b49e46
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/Infusionsoft/Api/Rest/SubscriptionService.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php namespace Infusionsoft\Api\Rest;

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

class SubscriptionService extends RestModel
{
use CannotSync, CannotDelete;

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

public $return_key = 'subscriptions';
}
8 changes: 8 additions & 0 deletions src/Infusionsoft/Infusionsoft.php
Original file line number Diff line number Diff line change
Expand Up @@ -811,6 +811,14 @@ public function opportunities()
return $this->getRestApi('OpportunityService');
}

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

/**
* Returns the requested class name, optionally using a cached array so no
* object is instantiated more than once during a request.
Expand Down

0 comments on commit 9b49e46

Please sign in to comment.