LoginSignup
0
0

More than 5 years have passed since last update.

【PHP】HTTP/HTTPS エンドポイントへの Amazon SNS メッセージの送信を受け取ってパースする

Last updated at Posted at 2017-01-17
test.php
// Fetch the raw POST body containing the message
$postBody = file_get_contents('php://input');

// JSON decode the body to an array of message data
$message = json_decode($postBody, true);
if ($message) {
    // Do something with the data
    echo $message;
}

POSTに使った便利なchrome拡張機能
DHC - Restlet Client

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0