我正在尝试做一个简单的登录表单来解析,但我找不到问题所在......这是我在这段代码之后得到的结果......
$username = $_POST['username'];
$password = $_POST['password'];
$url = 'https://api.parse.com/1/login.php?username='.$username.'&password='.$password;
$headers = array(
"Content-Type: application/json" ,
"X-Parse-Application-Id: {app_id_hidden}" ,
"X-Parse-REST-API-Key: {key_id_hidden}"
);
$handle = curl_init();
curl_setopt($handle, CURLOPT_URL, $url);
curl_setopt($handle, CURLOPT_HTTPHEADER, $headers);
curl_setopt($handle, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($handle, CURLOPT_RETURNTRANSFER, true);
$data = curl_exec($handle);
curl_close($handle);
$array = json_decode($data);
echo $array;
print_r($array);