Server IP : 127.0.0.2 / Your IP : 3.14.249.46 Web Server : Apache/2.4.18 (Ubuntu) System : User : www-data ( ) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : disk_free_space,disk_total_space,diskfreespace,dl,exec,fpaththru,getmyuid,getmypid,highlight_file,ignore_user_abord,leak,listen,link,opcache_get_configuration,opcache_get_status,passthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,php_uname,phpinfo,posix_ctermid,posix_getcwd,posix_getegid,posix_geteuid,posix_getgid,posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid,posix,_getppid,posix_getpwnam,posix_getpwuid,posix_getrlimit,posix_getsid,posix_getuid,posix_isatty,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_times,posix_ttyname,posix_uname,pclose,popen,proc_open,proc_close,proc_get_status,proc_nice,proc_terminate,shell_exec,source,show_source,system,virtual MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/vendor/constantcontact/constantcontact/ |
Upload File : |
# Constant Contact PHP SDK [](http://travis-ci.org/constantcontact/php-sdk) [](https://packagist.org/packages/constantcontact/constantcontact) [](https://packagist.org/packages/constantcontact/constantcontact) ### This library utilizes [GuzzlePHP](http://guzzle.readthedocs.org/) ## Installing via Composer (recommended) [Composer](https://getcomposer.org/) is a dependency management tool for PHP that allows you to declare the dependencies your project needs and installs them into your project. In order to use the Constant Contact PHP SDK through composer, you must add "constantcontact/constantcontact" as a dependency in your project's composer.json file. ```javascript { "require": { "constantcontact/constantcontact": "2.1.*" } } ``` ### Manual Installation If you are unable to install using composer, we have provided a zip file that includes a version of the dependencies at the time of our release, as well as our library. Unzip the vendor file in the standalone directory, and require the autoload.php file to use our methods. ## Documentation The source documentation is hosted at http://constantcontact.github.io/php-sdk API Documentation is located at http://developer.constantcontact.com/docs/developer-guides/api-documentation-index.html ## Usage The ConstantContact class contains the underlying services that hold the methods that use the API. ```php use Ctct\ConstantContact; $cc = new ConstantContact('your api key'); $contacts = $cc->contactService->getContacts('your access token') ``` Many methods will take an array of parameters for use in the calls. Available params are documented in the PHPDoc of the method. ```php $params = array("limit" => 500); $contacts = $cc->contactService->getContacts('your access token', $params); ``` ## Minimum Requirements Use of this library requires PHP 5.4+, and PHP cURL extension (http://php.net/manual/en/book.curl.php) If you are being required to use an older version of PHP, it is highly recommended that you update to at least 5.4 - but you can use version 1.3.* via composer, or [manually](https://github.com/constantcontact/php-sdk/tree/v1-master).