123456789101112131415161718192021222324252627282930313233343536 |
- <?php
- require_once __DIR__.'/../../inc/global.inc.php';
- if (php_sapi_name() != 'cli') {
- echo 'You can\'t call this service through a browser';
- die();
- }
- $client = new nusoap_client(api_get_path(WEB_CODE_PATH).'cron/user_import/service.php');
- $response = $client->call(
- 'import_users',
- [
- 'filepath' => api_get_path(SYS_UPLOAD_PATH)."users_import.csv",
- 'security_key' => api_get_configuration_value('security_key'),
- ]
- );
- echo $response;
|