php mautic动态内容

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了php mautic动态内容相关的知识,希望对你有一定的参考价值。

<?php
//Get an individual dynamicContent by ID.
$dynamicContent = $dynamicContentApi->get($id);

//LIST DYNAMIC CONTENTS
$dynamicContents = $dynamicContentApi->getList($searchFilter, $start, $limit, $orderBy, $orderByDir, $publishedOnly, $minimal);

//Create a new dynamicContent.
$data = array(
    'name'        => 'Dynamic Content A',
    'isPublished' => 1
);

$dynamicContent = $dynamicContentApi->create($data);

//Edit a new dynamicContent
$id   = 1;
$data = array(
    'name'        => 'New dynamicContent name',
    'isPublished' => 0
);

// Create new a dynamicContent of ID 1 is not found?
$createIfNotFound = true;
$dynamicContent = $dynamicContentApi->edit($id, $data, $createIfNotFound);

//Delete a dynamicContent.
$dynamicContent = $dynamicContentApi->delete($id);

以上是关于php mautic动态内容的主要内容,如果未能解决你的问题,请参考以下文章

php mautic短信

php mautic chanel营销信息

php mautic类别

php Mautic运动

php mautic API - 联系

PHP:使用 OAuth1a 调用 Mautic API