title: Amazon SNS mobile push notification
body: <p>I have an error when creating an application over SNS using php SDK.</p>
  
  <p>Code:</p>
  
  <pre><code>$appName = "name";
  $appPlataform = "APNS_SANDBOX";
  $appAttributes = array(
      "PlatformCredential" =&gt; "...",
      "PlatformPrincipal" =&gt; "..."
  );
  
  $appArn = $sns-&gt;createPlatformApplication(array(
      "Name" =&gt; $appName,
      "Platform" =&gt; $appPlataform,
      "Attributes" =&gt; $appAttributes
          ));
  </code></pre>
  
  <p>Error:</p>
  
  <pre><code>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
  </code></pre>