Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixes documentation text for few methods

Better documentation for few methods
  • Loading branch information...
commit a3750ffa2a45f3b11adfb380dc40354a498e03eb 1 parent 9768769
@alonbendavid authored
Showing with 16 additions and 4 deletions.
  1. +6 −0 .gitignore
  2. +5 −2 sample-newsletter.php
  3. +5 −2 sendgrid/newsletter.php
View
6 .gitignore
@@ -0,0 +1,6 @@
+
+sendgrid/core/.DS_Store
+
+sendgrid/.DS_Store
+
+.DS_Store
View
7 sample-newsletter.php
@@ -89,14 +89,14 @@
/**
- * Create a new Recipient List...
+ * Edit (Rename) an Existing Recipient List...
* @param string $list - This is the name of the Recipient List to be renamed..
* @param string $newlist - Specify the new name for the Recipient List.
*/
//$sendgrid->newsletter_lists_edit($list , $newlist);
/**
- * Create a new Recipient List...
+ * Get an Existing Recipient List...
* @param string $list - Check for this particular list. (To list all Recipient Lists on your account exclude this parameter);
*/
//$sendgrid->newsletter_lists_get($list = '');
@@ -114,7 +114,10 @@
* EX: $data = array(
* 'email' => 'test1@test.com',
* 'name' => 'John Doe',
+ * 'Address' => '1234 Cool St',
+ * 'Zip Code' => '90210',
* );
+ * must use email and name fields (other fileds are optional)
*/
//$sendgrid->newsletter_lists_email_add($list , $data);
View
7 sendgrid/newsletter.php
@@ -142,7 +142,7 @@ public function newsletter_lists_add($list , $name = '') {
}
/**
- * Create a new Recipient List...
+ * Edit an Existing Recipient List...
* @param string $list - This is the name of the Recipient List to be renamed..
* @param string $newlist - Specify the new name for the Recipient List.
*/
@@ -158,7 +158,7 @@ public function newsletter_lists_edit($list , $newlist) {
}
/**
- * Create a new Recipient List...
+ * Get an Existing Recipient List...
* @param string $list - Check for this particular list. (To list all Recipient Lists on your account exclude this parameter)
*/
public function newsletter_lists_get($list = '') {
@@ -192,7 +192,10 @@ public function newsletter_lists_delete($list) {
* EX: $data = array(
* 'email' => 'test1@test.com',
* 'name' => 'John Doe',
+ * 'Address' => '1234 Cool St',
+ * 'Zip Code' => '90210',
* );
+ * must use email and name fields (other fileds are optional)
*/
public function newsletter_lists_email_add($list , $data) {
$url = "newsletter/lists/email/add";
Please sign in to comment.
Something went wrong with that request. Please try again.