我正在尝试通过推送 woosh 发送推送通知,如下所示:
有人帮我如何通过此代码在设备上发送推送通知
function pwCall(
'createMessage'
, 大批(
'application' => PW_APPLICATION,
'auth' => PW_AUTH,
"devices" => PW_DEVICETOKEN,
'notifications' => array(
'send_date' =>'now', //gmdate('d-m-Y H:i', strtotime('2014-04-07 20:35')),
'content' => 'my custom notification testing ',
'link' => 'http://pushwoosh.com/',
'content' => array("en" => "English","ru" =>"Русский","de"=>"Deutsch")
),
'page_id' => 16863,
'link' => 'http://google.com',
'data' => array( 'custom' => 'json data' ),
)
);
我收到错误,例如
数组([status_code] => 210 [status_message] => 无法解析日期 [response] =>)