Skip to content

Instantly share code, notes, and snippets.

@palcu
Created April 27, 2017 13:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save palcu/50ce23b761ce559c1bd1e7f90b5d9a4c to your computer and use it in GitHub Desktop.
Save palcu/50ce23b761ce559c1bd1e7f90b5d9a4c to your computer and use it in GitHub Desktop.
legislatie.just.ro PHP script
<?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