Testiranje api-ja
This commit is contained in:
parent
771b80796f
commit
ecf7f5f742
@ -8,26 +8,30 @@
|
||||
|
||||
// Nastavimo url api-ja
|
||||
//$api_url = 'http://test.1ka.si/admin/survey/api/api.php';
|
||||
//$api_url = 'https://www.1ka.si/admin/survey/api/api.php';
|
||||
|
||||
// Nastavimo identifier in key userja
|
||||
$identifier = 'a1c3b90fdae3c45d';
|
||||
$private_key = 'e60032141a7aae518f9938636b963fc14d58d40025dc7b6b82f4e69b8a42599e';
|
||||
/*$identifier = 'a1c3b90fdae3c45d';
|
||||
$private_key = 'e60032141a7aae518f9938636b963fc14d58d40025dc7b6b82f4e69b8a42599e';*/
|
||||
|
||||
$api_url = 'http://localhost/admin/survey/api/api.php';
|
||||
$api_url = 'https://www.1ka.si/admin/survey/api/api.php';
|
||||
$identifier = '3ccc9cbc90493d09';
|
||||
$private_key = 'b8dbeceed3d0d7f80ca5d82ba352d9696c1804ff9b9d45272b8e99ea0a4987d6';
|
||||
|
||||
/*$api_url = 'http://localhost/admin/survey/api/api.php';
|
||||
$identifier = '0d712128f7fe5707';
|
||||
$private_key = 'd0ea50f1deabe2d9d9082c4c2a25c7db3648cab59f7a19939c808f602bdbc1be';
|
||||
$private_key = 'd0ea50f1deabe2d9d9082c4c2a25c7db3648cab59f7a19939c808f602bdbc1be';*/
|
||||
|
||||
|
||||
// Nastavimo parametre
|
||||
//$ank_id = '8086';
|
||||
$ank_id = '384751';
|
||||
//$action = 'getSurveyQuestions';
|
||||
$action = 'createSurvey';
|
||||
//$action = 'createSurvey';
|
||||
$action = 'getSurveyResponseData';
|
||||
|
||||
|
||||
// Izvedemo klic (GET ali POST)
|
||||
//$result = executeGET();
|
||||
$result = executePOST();
|
||||
//$result = executePOST();
|
||||
|
||||
|
||||
|
||||
@ -55,6 +59,7 @@ function executeGET(){
|
||||
// GET params
|
||||
$params = 'action='.$action; // Funkcija, ki jo želimo izvesti
|
||||
$params .= '&ank_id='.$ank_id; // ostali parametri potrebni za klic funkcije (id ankete, vprašanja...)
|
||||
$params .= '&usr_id=50666962'; // ostali parametri potrebni za klic funkcije (id ankete, vprašanja...)
|
||||
|
||||
// Pripravimo podatke za hashiranje
|
||||
$request_method = 'GET';
|
||||
|
Loading…
x
Reference in New Issue
Block a user