HI, can you tell me what the connector key, user pointer and api key are below the specified code and how to get them for any website?
<pre> <?php $userGuid = "8f65f01f-c6bc-42a4-914d-879efd159abd"; $apiKey = "private"; // Issues a query request to import.io function query($connectorGuid, $input, $userGuid, $apiKey) { $url = "https://query.import.io/store/connector/" . $connectorGuid . "/_query?_user=" . urlencode($userGuid) . "&_apikey=" . urlencode($apiKey); $ch = curl_init($url); curl_setopt($ch, CURLOPT_HTTPHEADER, array( "Content-Type: application/json", "import-io-client: import.io PHP client", "import-io-client-version: 2.0.0" )); curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode(array("input" => $input))); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HEADER, 0); $result = curl_exec($ch); curl_close($ch); return json_decode($result); } // Query for tile Curs Banca Comerciala Feroviara $result = query("7d00ba0e-947c-403f-b33b-886a7ee2a300", array( "webpage/url" => "http://www.bfer.ro/ro/curs-valutar/", ), $userGuid, $apiKey, false); var_dump($result); ?>
source share