简体   繁体   English

Amazon SNS移动推送通知

[英]Amazon SNS mobile push notification

I have an error when creating an application over SNS using php SDK. 使用php SDK通过SNS创建应用程序时出现错误。

Code: 码:

$appName = "name";
$appPlataform = "APNS_SANDBOX";
$appAttributes = array(
    "PlatformCredential" => "...",
    "PlatformPrincipal" => "..."
);

$appArn = $sns->createPlatformApplication(array(
    "Name" => $appName,
    "Platform" => $appPlataform,
    "Attributes" => $appAttributes
        ));

Error: 错误:

Fatal error: Uncaught Aws\Sns\Exception\SnsException: AWS Error Code: MalformedInput, Status Code: 400, AWS Request ID: 3b169c54-6bfd-58e4-9480-d6c4931402f7, AWS Error Type: client, AWS Error Message: Top level element may not be treated as a list, User-Agent: aws-sdk-php2/2.4.3 Guzzle/3.7.2 curl/7.24.0 PHP/5.4.4 thrown in .../Aws/Common/Exception/NamespaceExceptionFactory.php on line 91

There is currently an issue related to this. 当前存在与此相关的问题。 See https://github.com/aws/aws-sdk-php/issues/136 . 参见https://github.com/aws/aws-sdk-php/issues/136

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM