amazon web services - AWS-PHP-SDK / SNS direct addressing returns error -


Hi, I'm using the Larval 4 setup to use the ADS SNS to send push messages to my iOS device, the published command is

My device Works well with AWS console from

Then I tried with PHP:

  $ sns = AWS :: get ('sns'); $ Sns- & gt; Publish (array ('message' = & gt; 'Hello from PHP', 'TargetArn' => "arn: aws: sns: us-west-2: 360542326270: End point / APNS_SANDBOX / testtest / 20a75cd1-Da25 -3331-8126-4db497cbdd5e "));   

I'm getting

  ghazle \ service \ exception \ validation exception validation errors: [topic arn] is a required string: the subject on which you publish   

But docs specifically say that I can either send ARN to a topic or publish directly to a single device using the address Can i

It seems that the AWS PPD SDK forces me to use theme ARRAN.

What am I doing?

I removed clear gazal line from the composer. So the update ran, it was removed 3.6 mileage and installed 3.9. It was then removed from ADS-PHP-SDK 2.3.4 and Dev-Master was installed

I tried and did the work.

Do not make sure what the problem was, but different package versions do not work together ...

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -