Skip to content

Commit 60ce184

Browse files
committed
Add instructions for posting directly to the route, remove erroneous composer.lock.
1 parent 731bca6 commit 60ce184

File tree

2 files changed

+7
-7731
lines changed

2 files changed

+7
-7731
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,14 @@ VALIDATE_SNS_MESSAGES=false
6262
```
6363

6464
##How do I send SNS messages to my app?
65+
The SNS message route responds to POST requests and expects content consistent with an SNS message from AWS.
66+
67+
The message content of an SNS message must be provided as a string value. If your payload is something other than a simple string (e.g. an array or some other sort of object), you will need to serialize your data before sending it using something like json_encode().
68+
69+
###POSTing directly to your app
70+
[Amazon has an example of a POST request available here.](https://docs.aws.amazon.com/sns/latest/dg/sns-http-https-endpoint-as-subscriber.html)
71+
You can add your serialized message in the message field. Note that manually POSTed messages cannot be validated (See above to disable message validation). We recommend only attempting this during testing, never in your production environment.
6572

66-
Instructions pending.
6773

6874
##How to subscribe your endpoint in AWS
6975
[Follow these instructions to subscribe your endpoint using HTTPS](https://docs.aws.amazon.com/sns/latest/dg/sns-http-https-endpoint-as-subscriber.html)

0 commit comments

Comments
 (0)