Compare commits
2 Commits
429ce0ba1f
...
f2df26e0d9
Author | SHA1 | Date |
---|---|---|
Arnaud Fornerot | f2df26e0d9 | |
afornerot | 2a4d246a00 |
|
@ -61,7 +61,7 @@ class TestRestCommand extends Command
|
|||
// only = liste des informations désirés = user, items, bookmarks, groups, alerts, calendars
|
||||
$apiurl = $url."/rest/user/".$login;
|
||||
$this->writeln($apiurl);
|
||||
$response = \Unirest\Request::post($apiurl,$headers,["key"=>$masterapikey,"only"=>"user,items,bookmarks","ssoitems"=>"ninegate,toto"]);
|
||||
$response = \Unirest\Request::post($apiurl,$headers,["key"=>$masterapikey,"only"=>"user,items,bookmarks"]);
|
||||
dump($response->body);
|
||||
|
||||
$this->writeln('');
|
||||
|
|
|
@ -42,7 +42,7 @@ class RestController extends Controller
|
|||
{
|
||||
$key=$request->get('key');
|
||||
$only=($request->get('only')?explode(",",$request->get('only')):"");
|
||||
$ssoitems=($request->get('ssoitems')?explode(",",$request->get('ssoitems')):"");
|
||||
$ssoitems=($request->get('ssoitems')?explode(",",$request->get('ssoitems')):[]);
|
||||
|
||||
// Vérification de la clé
|
||||
$realkey = $this->getParameter("apikeyninegate");
|
||||
|
|
Loading…
Reference in New Issue