Skip to content
Browse files

fixed typo in demo.php

  • Loading branch information...
1 parent 66f30b2 commit 273a7f77d83869d7911bf99a3909cce5de67176c Edward F. Long, Jr committed Aug 25, 2011
Showing with 7 additions and 2 deletions.
  1. +7 −2 demo.php
View
9 demo.php
@@ -4,6 +4,7 @@
// NEVER SHARE OR DISTRIBUTE YOUR APPLICATIONS'S KEYS!
$consumerKey = "************************";
$consumerSecret = "*********************************";
+
$aweber = new AWeberAPI($consumerKey, $consumerSecret);
if (empty($_COOKIE['accessToken'])) {
@@ -25,8 +26,12 @@
header('Location: '.$_COOKIE['callbackUrl']);
exit();
}
-$aweber->adapter->debug = true;
+
+# set this to true to view the actual api request and response
+$aweber->adapter->debug = false;
+
$account = $aweber->getAccount($_COOKIE['accessToken'], $_COOKIE['accessTokenSecret']);
+
?>
<!DOCTYPE html>
<html lang="en">
@@ -51,7 +56,7 @@
?>
<tr>
<td class="stat"><em><?php echo $campaign->subject; ?></em></td>
- <td class="value"><?php echo date('F j, Y h:iA', strtotime($campaign->sent_date)); ?></td>
+ <td class="value"><?php echo date('F j, Y h:iA', strtotime($campaign->sent_at)); ?></td>
<td class="value"><ul>
<li><b>Opened:</b> <?php echo $campaign->total_opens; ?></li>
<li><b>Sent:</b> <?php echo $campaign->total_sent; ?></li>

0 comments on commit 273a7f7

Please sign in to comment.
Something went wrong with that request. Please try again.