如何使用城市飞艇的Deep link using PHP

How to use Deep link of urban airship using PHP

我正在尝试使用深度 link 参数发送推送通知,但不幸的是它对我不起作用。我正在使用 PHP 和 curl,我的代码是:

$params = array("audience"=> "all", "notification" => array("alert" => "Push notification from PHP", "actions" => array("app_defined" => array("^+t" => "sec:147", "content" => "http://www.url.com"))), "device_types" => array("android"));
$x = executeCurl('/push/', 'POST', $params);
    print_r($x);

实际上我想将这些参数解析为我的 PHP 代码。

有人可以告诉我这些参数有什么问题吗?我想在我的 PHP 代码中使用图片的所有参数。

终于完成了,参数看起来像:

$params = array(
    "audience"=> "all", 
    "notification" => array(
        "alert" => "Test msg from PHP with deep linking",
        "actions" => array(
            "open" => array(
                "type" => "deep_link",
                "content" => "your-schema://deeplink/sec/147/det/1245-15454-dfkjd-45554",
            )
        )
    ), 
    "device_types" => array(
            "android", "ios")
);

$x = executeCurl('/push/', 'POST', $params);
print_r($x);