Üye
XenForo'daki giriş loadere nasıl bağlanır? Nasıl yapabilirim, bilgisi olan var mıdır?
Moderatörün son düzenlenenleri:
{
"errors": [
{
"code": "incorrect_password",
"message": "Incorrect password. Please try again.",
"params": []
}
]
}
<?php
header("Content-Type: application/json");
$username = $_GET["username"];
$password = $_GET["password"];
$headers = array(
"Content-type: multipart/form-data",
"XF-Api-Key: ALDIĞIN TOKENİ BURAYA YAPIŞTIR"
);
$url = "https://adresinigir.com/api/auth?login=$username&password=$password";
$ch = curl_init();
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
$json = curl_exec($ch);
die($json);
?>