/usr/bin/php /var/www/html/glpi/plugins/datainjection/testwebservice.php
--host=HOSTNAME
--url=glpi/plugins/webservices/xmlrpc.php
--username=glpi
--password=glpi
--uri=http://HOSTNAME/glpi/plugins/download/NOMDEFICHIER.csv
--models_id=3
--entities_id=0
PS : "models_id" is the id in the database of the model created in plugin DataInjection.
PPS : You need also to have every field in your CSV between double quotes : "field".
Enjoy
]]>The plugin is hosted here: https://forge.glpi-project.org/projects/webservices
You should request to be reporter or contributor for the plugin.
]]>I tested the version of the trunk, a small error returned:
In the consultation of the "webservices" methods of the client:
Fatal error: Cannot use [] for reading in D:\wamp64\www\glpi921\plugins\webservices\inc\methodinventaire.class.php on line 745
Patch :
Index: methodinventaire.class.php
===================================================================
--- methodinventaire.class.php (revision 453)
+++ methodinventaire.class.php (working copy)
@@ -742,7 +742,7 @@
return $resp;
}
- $resp = array()[];
+ $resp = [];
Thank you in advance
]]>