Browse files

Changed library name to Sendgrid_Newsletter. Will allow for namespaci…

…ng other SendGrid APIs
  • Loading branch information...
1 parent 4736b9c commit 7aada5940899dfd75b8bd6881ce4c46b02137b68 @gstjohn committed Apr 13, 2012
Showing with 8 additions and 8 deletions.
  1. +4 −4 README.md
  2. +1 −1 config/autoload.php
  3. +2 −2 libraries/{Sendgrid.php → Sendgrid_Newsletter.php}
  4. +1 −1 spark.info
View
8 README.md
@@ -1,6 +1,6 @@
-# CodeIgniter-SendGrid-API
+# CodeIgniter-SendGrid-Newsletter
-CodeIgniter-SendGrid-API is a CodeIgniter wrapper for the [SendGrid Newsletter API](http://docs.sendgrid.com/documentation/api/newsletter-api/).
+CodeIgniter-SendGrid-Newsletter is a CodeIgniter wrapper for the [SendGrid Newsletter API](http://docs.sendgrid.com/documentation/api/newsletter-Newsletter/).
## Requirements
@@ -66,9 +66,9 @@ CodeIgniter-SendGrid-API is a CodeIgniter wrapper for the [SendGrid Newsletter A
$this->load->spark('sendgrid/0.1.0');
// Initialize (not necessary if set in config)
- $this->sendgrid->initialize(array('api_user' => 'my_username',
+ $this->sendgrid_newsletter->initialize(array('api_user' => 'my_username',
'api_key' => 'secret_key',
'api_format' => 'json'));
// Get newsletters
- $newsletters = $this->sendgrid->list_newsletters();
+ $newsletters = $this->sendgrid_newsletter->list_newsletters();
View
2 config/autoload.php
@@ -1,4 +1,4 @@
<?php defined('BASEPATH') OR exit('No direct script access allowed');
# Load the template library when the spark is loaded
-$autoload['libraries'] = array('sendgrid');
+$autoload['libraries'] = array('sendgrid_newsletter');
View
4 libraries/Sendgrid.php → libraries/Sendgrid_Newsletter.php
@@ -10,7 +10,7 @@
* @author Bold
* @link http://hellobold.com
*/
-class Sendgrid
+class Sendgrid_Newsletter
{
protected $api_endpoint = 'https://sendgrid.com/api/';
@@ -36,7 +36,7 @@ public function __construct($params = array())
// initialize parameters
$this->initialize($params);
- log_message('debug', 'SendGrid Class Initialized');
+ log_message('debug', 'SendGrid Newsletter Class Initialized');
}
// --------------------------------------------------------------------
View
2 spark.info
@@ -1,4 +1,4 @@
-name: sendgrid
+name: sendgrid_newsletter
# This is the current version of this spark. All sparks should be in
# x.x.x format. Validation will fail otherwise.

0 comments on commit 7aada59

Please sign in to comment.