function
CreateCampaign2(){
$loginEmail
=
"spread@reasonables.com"
;
$password
=
'API KEY'
;
$category
=
array
(
'luohaihao&romeqaz'
,
'General-VIPME-4'
);
$interval
= -1;
$schedule
= time();
$campaignStatus
=
'Waiting'
;
$campaignName
=
"The Name will display in spread platform (php)"
;
$creative
=
array
(
'subject'
=>
'Learn Spread API'
,
'creativeContent'
=>
'Make your own applications with SpreadWS'
,
'displayName'
=>
'ReasonableTech'
,
'fromAddress'
=>
'autoedm@reasonable.com'
,
'target'
=>
'D'
,
'isCampaignDefault'
=>True,
'replyTo'
=>
'hoyho@foxmail.com'
);
$campaignCreatives
=
array
(
$creative
);
$campaignArgs
=
array
(
'loginEmail'
=>
$loginEmail
,
'password'
=>
$password
,
'campaignName'
=>
$campaignName
,
'campaignCreatives'
=>
$campaignCreatives
,
'category'
=>
$category
,
'interval'
=>
$interval
,
'schedule'
=>
$schedule
,
'signature'
=>
"spread remark"
,
'campaignStatus'
=>
$campaignStatus
);
$cpnId
=
$Client
-> createCampaign2(
$campaignArgs
);
echo
serialize(
$cpnId
);
}