Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
James Benson committed Oct 3, 2011
0 parents commit b72592d
Show file tree
Hide file tree
Showing 31 changed files with 4,274 additions and 0 deletions.
1 change: 1 addition & 0 deletions .htaccess
@@ -0,0 +1 @@
php_flag display_errors 1
68 changes: 68 additions & 0 deletions ChangeLog.txt
@@ -0,0 +1,68 @@
Version 1.8.1
------------
Fixed a bug in the set_api_key() method where it failed to set the API key properly

------------
The developers code now uses the PHP curl extension

Version 1.7.2
------------
* Fixed a bug with 1and1 servers that caused a warning mesage to appear.

Version 1.7.1
------------
* Bug fixes and a few small improvements.
* more inline docs

Version 1.7.0
------------
* The following methods have been removed and the http_send method used directly instead:
http_get
http_post
http_delete
http_put
* create_campaign() method now works, see /examples/create_campaign.php for a working example.
* get_export_file_columns() was only compatible with PHP 5 before, now works with PHP 4.
* Other improvements to the code, some new methods have been added.
* More API documentation.
* I'm now following a 3 digit version number string for all releases.

Version 1.6
------------
This release contains an important bug fix to the HTTP connection handling so it handles chunked encoding correctly.

Version 1.5
------------
New features Include:
* Delete Campaign
* Get Email Addresses
* get_all_lists() - returns all contact lists sorted by the SortOrder field
* Create Campaign (currently not working)
* Updated example scripts
* Plus other fixes and improvements

Version 1.4
------------
* Now supports new API features.
* Fix to the query campaigns method: was using wrong variable for the status.
* Fix to all methods, items that returned 1 item broke and failed to parse the data correctly.

Version 1.3
------------
* Code now supports the campaigns API - events coming soon.
* Usernames with spaces are now encoded to RFC 1738 standard.
* Fix to the convert_timestamp() method
* Improved documentation and more examples.

Version 1.2
------------
* Improved documentation now included.
* Fix to the update_contact() method and docs.
* Fix to the create_list() method.

Version 1.1
------------
* The code now supports all functions available within the activities API.
* Quite a bit of tweaking had to be done to the core code to make this work but none of the documented functions have been altered in any way that will affect existing installations.
* A couple of minor fixes and improvements have also been made in this release.
More documentation has been added along with examples for the new activity functions.
674 changes: 674 additions & 0 deletions LICENSE.txt

Large diffs are not rendered by default.

72 changes: 72 additions & 0 deletions README.txt
@@ -0,0 +1,72 @@
-------------------------------------------------------
Constant Contact PHP Code Library - integrationservic.es
-------------------------------------------------------

-------------------------------------------------------
REQUIREMENTS:
-------------------------------------------------------
PHP 4.3.0 or higher
XML extension installed and enabled
curl extension with SSL support

Constant Contact account username and password.

IMPORTANT:
This code has an API key hardcoded.
If you include this code within an application such as a plugin, module or some other form of component that bolts onto another system please create your own API key and set it within your application using the set_api_key() method.

If all you are doing is integrating this code into a website for a signup form or into a website backend to provide administration functions you do not need to create an additional API key.

If unsure please get in touch with myself or Constant Contact.


-------------------------------------------------------
LICENSE:
-------------------------------------------------------
Use of the code is subject to the license agreement.
The license can be found within LICENSE.txt

-------------------------------------------------------
INSTALLATION:
-------------------------------------------------------
Unzip the file.
Upload class.cc.php to your webserver.
In your script initiate the Constant Contact class like so:

require_once 'class.cc.php';
$cc = new cc('your_username', 'your_password');

-------------------------------------------------------
UPGRADING:
-------------------------------------------------------
To upgrade simply overwrite the class.cc.php file

-------------------------------------------------------
USAGE:
-------------------------------------------------------
Check the example PHP scripts within /examples/

/examples/index.php contains some useful info to get you started.

It is best not to edit the class.cc.php file directly or upgrading will be harder.
Instead create your own class and extend the cc class.
If your not familar with how to extend a class you can read up on it here:
http://php.net/language.oop5.basic.extends

-------------------------------------------------------
DOCUMENTATION:
-------------------------------------------------------
API Docs for the PHP code can be found within /docs/
We provide both HTML and PDF formats
The docs were generated from inline comments using PHPDoc (phpdoc.org)
Other documentation can be found within the /examples/ sub-folder.
You should also be familar with the Constant Contact API Docs:
http://developer.constantcontact.com/doc/reference

-------------------------------------------------------
FURTHER HELP:
-------------------------------------------------------
If you need help please see http://integrationservic.es/
I can't guarantee you a reply but if you've found a bug I'd be happy to investigate (please email your bug report to info@ the above domain).
Before you get in touch please make sure you have downloaded the latest code incase a newer version has been released.

0 comments on commit b72592d

Please sign in to comment.