定制 dreamcampaigns/managesend-bundle 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

dreamcampaigns/managesend-bundle

Composer 安装命令:

composer require dreamcampaigns/managesend-bundle

包简介

DreamCampaigns API integration for your Symfony project

README 文档

README

Travis (.org) Packagist Packagist Version Packagist

This bundle integrates DreamCampaigns API into your Symfony application.

Prerequisites

This version of the bundle requires Symfony 5 for Symfony 2, 3 or 4 versions try v1.

Installation

managesend-bundle is available on Packagist as the dreamcampaigns/managesend-bundle package.

Symfony 2.7 and 3 (using Composer)

Require the bundle in your composer.json file:

{
    "require": {
        "dreamcampaigns/managesend-bundle": "*"
    }
}

Install the bundle:

$ composer require dreamcampaigns/managesend-bundle

Register the bundle:

// app/AppKernel.php

public function registerBundles()
{
    return array(
        new Managesend\ApiBundle\ManagesendApiBundle(),
        // ...
    );
}

Configuration in Symfony 2.7 and 3

Add DreamCampaigns Api keys

#app/config/config.yml

managesend_api:
    api_key: <Your API Token Key>
    api_secret: <Your API Token Secret>
    client_id: <Your Client id> #optional for some calls
    timeout: 60 #optional timeout value, default is 60 secs

Configuration in Symfony 4 and up

Add DreamCampaigns Api keys

You can add your Api keys to the managesend_api.yaml

# config/packages/managesend_api.yaml

managesend_api:
    api_key: <Your API Token Key>
    api_secret: <Your API Token Secret>
    client_id: <Your Client id> #optional for some calls
    timeout: 60 #optional timeout value, default is 60 secs

or use the .env

MANAGESEND_TOKEN_KEY=ACXXXXXX
MANAGESEND_TOKEN_SECRET=YXYXYX
MANAGESEND_CLIENT_ID=c5is8tltkk00018k9ype5lg741

Usage

The API is available with the managesend_api service. To access it, get it from controller container:

<?php
$managesend = $this->get('managesend_api');

Or use DependencyInjection

public function TestAction(\Managesend\RestClient $managesend)
{
   $result = $managesend->clients()->getClients();
}

Examples

Samples for accessing all resources can be found in the examples directory of dreamcampaigns/managesend-php

Documentation

For more details you can reffer to the DreamCampaigns API documentations

统计信息

  • 总下载量: 3
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-07-08

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固