Created
April 27, 2017 13:37
-
-
Save palcu/50ce23b761ce559c1bd1e7f90b5d9a4c to your computer and use it in GitHub Desktop.
legislatie.just.ro PHP script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// First request for the token | |
$client = new SoapClient("http://legislatie.just.ro/apiws/FreeWebService.svc?wsdl"); | |
$response = $client->GetToken(); | |
var_dump($response); | |
// Second request for getting the actual data | |
$params = array( | |
"tokenKey" => $response->GetTokenResult, | |
"SearchModel" => array( | |
"NumarPagina" => 0, | |
"RezultatePagina" => 0, | |
), | |
); | |
$response = $client->Search($params); | |
var_dump($response); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment