HidemYas adlı üyeden alıntı: mesajı görüntüle
JSON server kullan , istediğiniz sorgu tipine gore sorgu atın :

apiurl/?category=demo&perperson=100
Gibi sorgu isteğine göre altyapinizı değiştirin 😊
N11 sunucusuna istek atıyoruz. Bu ıstek SOAP olmak zorunda. PHP yazılımı üzerinden gönderiyoruz çünkü.
Haricinde cevap vermıyor N11 sunucuları.

protected static $_appKey, $_appSecret, $_parameters, $_sclient;

public function __construct() {
    self::$_appKey = env('N11_API_KEY');
    self::$_appSecret = env('N11_API_SECRET');
    self::$_parameters = ['auth' => ['appKey' => self::$_appKey, 'appSecret' => self::$_appSecret]];
    ini_set('default_socket_timeout', 5000);
    ini_set('max_execution_time', 5000);
}

/**
 * @throws \SoapFault
 */
public function setUrl($url) {

    $arrContextOptions=stream_context_create(array(
        "ssl" => array(
            "verify_peer" => false,
            "verify_peer_name" => false,
        )));
    self::$_sclient = new \SoapClient($url,array(
        'trace' =>true,
        'connection_timeout' => 5000,
        'cache_wsdl' => WSDL_CACHE_NONE,
        'keep_alive' => false,
        'stream_context' => $arrContextOptions
    ));
}