承接 magicalella/yii2-salesmanago 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

magicalella/yii2-salesmanago

最新稳定版本:0.0.4

Composer 安装命令:

composer require magicalella/yii2-salesmanago

包简介

Salesmanago component for Yii 2 framework

README 文档

README

Salesmanago component for Yii 2 framework

SALESmanago Technical API Documentation

Installation

The preferred way to install this extension is through composer.

Run

composer require "magicalella/yii2-salesmanago" "*"

or add

"magicalella/yii2-salesmanago": "*"

to the require section of your composer.json file.

Usage

  1. Add component to your config file
'components' => [
    // ...
    'salesmanago' => [
        'class' => 'magicalella\salesmanago\Salesmanago',
        'clientId' => 'xxxxxx',
        'apiKey' => 'xxxxxx',
        'apiSecret' => 'xxxxxx',
        'endpoint' => 'xxxxxx',
        'owner' => 'xxxxxx',
    ],
]
  1. Add new contact to SALESmanago
$salesmanago = Yii::$app->salesmanago;
$result = $salesmanago->call('contact/upsert',[
    contact' => [
        'email' => 'example@example.com',
        'state' => 'CUSTOMER',
    ],
    'owner' => 'owner@owner.com',
    'tags' => [
        'TAG'
    ],
    'properties' => array('page' => 'newsletter'),
    'lang' => 'PL',
    'useApiDoubleOptIn' => true,
    'forceOptIn' => true,
    'forceOptOut' => false,
    'forcePhoneOptIn' => true,
    'forcePhoneOptOut' => false
    ]
);

Check SALESmanago Technical API Documentation for all available options.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-07-18