コード例 #1
0
ファイル: HootkiGrosh.php プロジェクト: alexantr/hootkigrosh
 /**
  * @param bool $is_test Использовать ли тестовый api
  */
 public function __construct($is_test = false)
 {
     if ($is_test) {
         $this->base_url = $this->test_api_url;
     } else {
         $this->base_url = $this->api_url;
     }
     if (!isset(self::$cookies_file)) {
         self::$cookies_file = 'hg-cookies-' . time() . '.txt';
     }
     $this->setCookiesDir(sys_get_temp_dir());
 }
コード例 #2
0
ファイル: HootkiGrosh.php プロジェクト: esasby/hgrosh
 /**
  * @param bool $is_test Использовать ли тестовый api
  */
 public function __construct($is_test = false)
 {
     if ($is_test) {
         $this->base_url = $this->test_api_url;
     } else {
         $this->base_url = $this->api_url;
     }
     if (!isset(self::$cookies_file)) {
         self::$cookies_file = 'cookies-' . time() . '.txt';
     }
     $this->setCookiesDir(dirname(__FILE__));
 }