Hi I am using Laravel 4 setup to make use of AWS SNS to send a push message to my iOS device, the publish command to my device works well from AWS console.
I then tried from PHP:
$sns = AWS::get('sns');
$sns->publish(array(
'Message' => 'Hello from PHP',
'TargetArn' => "arn:aws:sns:us-west-2:360542326270:endpoint/APNS_SANDBOX/Testtest/20a75cd1-da25-3331-8126-4db497cbdd5e"
));
I am getting
Guzzle \ Service \ Exception \ ValidationException Validation errors: [TopicArn] is a required string: The topic you want to publish to.
but the docs specifically say I can use publish to either send to a topic ARN or use direct addressing to send to a single device directly.
it seems the AWS PHP SDK forces me to use TopicArn anyway.
what am I doing wrong?