Skip to content

Commit

Permalink
added send email method (#201)
Browse files Browse the repository at this point in the history
  • Loading branch information
nova4005 authored and mfairch committed Nov 20, 2018
1 parent ec59574 commit 52ac6b0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Infusionsoft/Api/Rest/EmailService.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

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

class EmailService extends RestModel
Expand All @@ -12,4 +11,10 @@ class EmailService extends RestModel
public $full_url = 'https://api.infusionsoft.com/crm/rest/v1/emails';

public $return_key = 'emails';

public function send($attributes = [])
{
$response = $this->client->restfulRequest('post', $this->getFullUrl('/queue'), $attributes);
return $response;
}
}

0 comments on commit 52ac6b0

Please sign in to comment.