Home>
What ’s happening

An error occurs in PHP isset and HTTP500 internal server error is output.

Receive the body of JSON POSTed body,
This code determines whether access_token exists in it.

if (! isset ($access_token)) An error has occurred in {.

$json_string = file_get_contents ('php: // input');
            $obj = json_decode ($json_string);
            $access_token = $obj->{'access_token'};
            if (! isset ($access_token)) {
, ---- something code
            }
php