php mautic短信
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了php mautic短信相关的知识,希望对你有一定的参考价值。
<?php
$smsApi = $api->newApi("smses", $auth, $apiUrl);
//Get an individual sms by ID.
$sms = $smsApi->get($id);
//LIST TEXT MESSAGES
$smses = $smsApi->getList($searchFilter, $start, $limit, $orderBy, $orderByDir, $publishedOnly, $minimal);
//Create a new sms.
$data = array(
'name' => 'Text message A',
'message' => 'This is my first sms created via API.',
'isPublished' => 1
);
$sms = $smsApi->create($data);
//Edit a new sms
$id = 1;
$data = array(
'name' => 'New sms name',
'isPublished' => 0
);
$createIfNotFound = true; // Create new a sms of ID 1 is not found?
$sms = $smsApi->edit($id, $data, $createIfNotFound);
//Delete a sms.
$sms = $smsApi->delete($id);
以上是关于php mautic短信的主要内容,如果未能解决你的问题,请参考以下文章
php mautic chanel营销信息
php mautic动态内容
php mautic类别
php Mautic运动
php mautic API - 联系
PHP:使用 OAuth1a 调用 Mautic API