druid628 / exacttarget-bundle
ExactTarget API 组件库
v1.1.0
2014-04-07 18:49 UTC
Requires
- php: >=5.3.5
- druid628/exacttarget: >=1.0.5
This package is not auto-updated.
Last update: 2024-09-24 00:57:34 UTC
README
Exact Target 库的 Symfony 扩展包
安装
Composer
将 exacttarget-bundle 添加到 composer.json 文件中
{
"require": {
"druid628/exacttarget-bundle": "1.0.1"
}
}
php composer.phar install
AppKernel
将 ExactTargetBundle 添加到 app/AppKernel.php 文件中。
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
// ...
new Druid628\ExactTarget\ExactTargetBundle\ExactTargetBundle(),
)
}
}
配置
在您的 app/config/config.yml 文件中添加以下条目,并使用您的正确信息
exact_target:
credentials:
username: 'yourUsername'
password: 'yourPassword'
server: 's4'
用法
在任何 ServiceContainer 可用的位置,您可以执行
$etClient = $container->get('exacttarget');
这将返回一个 \druid628\exactTarget\EtClient 实例 (更多信息)
变更日志
- v1.0.0 - 不要使用 - 初始提交包含命名空间问题
- v1.1.0 - 添加简单文档 (@druid628) 和修正命名空间问题 (@rk3rn3r)
贡献者
- Micah Breedlove - https://github.com/druid628 - @druid628
- René Kerner - https://github.com/rk3rn3r