i have error when creating application on sns using php sdk.
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 treated 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 issue related this. see https://github.com/aws/aws-sdk-php/issues/136 .