Send SMS with AWS Javascript SDK : <p>I want to send an SMS with the AWS javascript sdk with a verification code.</p>

<pre><code>var AWS = require('aws-sdk');
AWS.config.region = 'us-east-1';
var sns = new AWS.SNS();

var params = {
  Message: 'this is a test message',
  MessageStructure: 'string',
  PhoneNumber: '+12346759845'
};

sns.publish(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});
</code></pre>

<p>I keep getting "Unexpected key \'PhoneNumber\' found in params".</p>

<p>I have followed the examples in the documentation and it seems what I have is valid as far as I can tell. Apparently, I do not need to create a topic to send individual text messages.</p>
