Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'hotfix/v0.1.1'

  • Loading branch information...
commit 95339f24f1dc449e5b6925cd2e22bd1f99ee072e 2 parents f9a8660 + 30f0997
Garrett St. John authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 libraries/Sendgrid_mail.php
8 libraries/Sendgrid_mail.php
View
@@ -156,17 +156,17 @@ private function _send($url, $data = array())
);
// initialize rest library
- $this->ci->restclient->initialize(array('server' => $this->api_endpoint));
- $this->ci->restclient->format($this->api_format);
+ $this->ci->rest->initialize(array('server' => $this->api_endpoint));
+ $this->ci->rest->format($this->api_format);
// merge credentials into data
$data = array_merge($creds, $data);
// post request
- $response = $this->ci->restclient->post($url, $data);
+ $response = $this->ci->rest->post($url, $data);
// check for 5xx response codes
- if (substr($this->ci->restclient->status(), 0, 1) == 5)
+ if (substr($this->ci->rest->status(), 0, 1) == 5)
{
$this->error_message = 'Access to SendGrid failed. Please try again later.';
return FALSE;
Please sign in to comment.
Something went wrong with that request. Please try again.