Finance/ISIN/SG.php
authorleon <leon@roojs.com>
Thu, 21 Dec 2023 05:44:52 +0000 (13:44 +0800)
committerleon <leon@roojs.com>
Thu, 21 Dec 2023 05:44:52 +0000 (13:44 +0800)
Finance/ISIN.php

Finance/ISIN.php
Finance/ISIN/SG.php [new file with mode: 0644]

index 4c82e91..fdb76a6 100644 (file)
@@ -38,46 +38,4 @@ class Finance_ISIN
 
         return isset(self::$maps[$ar[1]][$stockCode]) ? self::$maps[$ar[1]][$stockCode] : false;
     }
-
-    function getSGISIN() 
-    {
-        return false;
-
-        $ch = curl_init();
-        // $f = tmpfile();
-        curl_setopt($ch, CURLOPT_URL, 'https://www.boerse-stuttgart.de/api/bsg-feature-navigation/Search/PostSearchInput');   
-        curl_setopt($ch, CURLOPT_POST, true);
-        curl_setopt($ch, CURLOPT_POSTFIELDS, 
-            http_build_query(
-                array(
-                    'searchSubmit' => 'sow',
-                    'language' => 'en', 
-                    'datasource' => '5849b3c3-7bd3-4570-9fed-df92b0788426'
-                )
-            )
-        );     
-        curl_setopt($ch, CURLOPT_HTTPHEADER,
-            array(
-                "Accept-Language: en",
-                "Accept: application/json, text/plain, */*",
-                "Content-Type: application/x-www-form-urlencoded"
-            )
-        );
-        curl_setopt($ch, CURLOPT_COOKIE,  "website#lang=en;");
-        curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
-        // curl_setopt($ch, CURLOPT_VERBOSE, true);
-        // curl_setopt($ch, CURLOPT_STDERR, $f);
-        curl_setopt($ch, CURLINFO_HEADER_OUT, true);
-        $str = curl_exec($ch);
-        // fseek($f,0);
-        // var_dump( fread($f, 32*1024) );
-        // fclose($f);
-        curl_close($ch);
-
-
-        var_dump(curl_getinfo($ch));
-        var_dump("GET SG ISIN\n");
-        var_dump($str);
-        die('test');
-    }
 }
diff --git a/Finance/ISIN/SG.php b/Finance/ISIN/SG.php
new file mode 100644 (file)
index 0000000..3909df3
--- /dev/null
@@ -0,0 +1,8 @@
+<?php
+class Finance_ISIN_SG extends Finance_ISIN
+{
+    function getMap()
+    {
+        return array();
+    }
+}
\ No newline at end of file