[尝试从Sendy API提取活动订户数时,出现以下错误
POST
请求看起来像这样:
http://my-sandy-Installation/api/subscribers/active-subscriber-count.php
在标题中:Content-Type:application/x-www-form-urlencoded
在正文中:
api_key= mykey
list_id= mylistid
谁能帮忙吗?
$boolean = 'true';
$postdata = http_build_query(
array(
'email' => $email,
'api_key'=>'your api_key',
'list' => 'Your List id',
'boolean' => 'true'
)
);
$opts = array('http' => array('method' => 'POST', 'header' => 'Content-type: application/x-www-form-urlencoded', 'content' => $postdata));
$context = stream_context_create($opts);
$result = file_get_contents($your_installation_url.'/subscribe', false, $context);