[PHP] การส่งข้อมูล raw JSON body ด้วย Guzzle
 การส่งข้อมูล raw JSON body (แบบที่ใช้ใน Postman) ด้วย Guzzle   $url = 'https://www.example.com'; $client = new \GuzzleHttp\Client(); $data = [//ข้อมูลที่ต้องการส่ง     'foo' => 'bar',     'name' => 'test', ]; $response = $client->request("POST", $url, [     'json' => $data,     'headers' => [         'Content-Type' => 'application/json; charset=utf-8',         'Accept' => 'application/json',     ], ]);