[HTTP] Unauthorized in hatası alıyorum yetkisiz diyor.
Entegra apisi ile deniyorum acaba sebebi bu mudur? Farklı bir api kullanıcısı mı oluşturmam gerekiyor?
protected $apiKey,$secretKey,$login,$password,$sign;
function __construct($apiKey,$secretKey,$login,$password){
$this->apiKey = "*********";
$this->secretKey = "*********";
$this->login = "********";
$this->password = "********";
}
public function client($action,array $params,$soap_url){
$client = new SoapClient($soap_url, array('login' => $this->login, 'password' => $this->password , 'authentication' => SOAP_AUTHENTICATION_BASIC));
$response = json_decode(json_encode($client->__soapCall($action,$params)),true);
return $response;
}
Evet, gittigidiyor üstündeki kullanıcınıza api key rol vermeniz gerekiyor sanırım, detaylar için bu sayfaya göz atabilirsiniz : https://www.gittigidiyor.com/api