При попытке просто войти в систему с помощью PHP API я получаю:
Код: Выделить всё
Fatal error: Uncaught TypeError: fclose(): Argument #1 ($stream) must be of type resource, string given in /Applications/MAMP/htdocs/keriotest/kerio-api-php/src/class/KerioApiSocket.php:145
Stack trace:
#0 /Applications/MAMP/htdocs/keriotest/kerio-api-php/src/class/KerioApiSocket.php(145): fclose('')
#1 /Applications/MAMP/htdocs/keriotest/kerio-api-php/src/class/KerioApiSocket.php(117): KerioApiSocket->close()
#2 /Applications/MAMP/htdocs/keriotest/kerio-api-php/src/class/KerioApi.php(512): KerioApiSocket->__destruct()
#3 /Applications/MAMP/htdocs/keriotest/kerio-api-php/src/class/KerioApi.php(477): KerioApi->send('POST', '{"jsonrpc":"2.0...')
#4 /Applications/MAMP/htdocs/keriotest/kerio-api-php/src/class/KerioApi.php(320): KerioApi->sendRequest('Session.logout')
#5 /Applications/MAMP/htdocs/keriotest/index.php(21): KerioApi->logout()
#6 {main}
thrown in /Applications/MAMP/htdocs/keriotest/kerio-api-php/src/class/KerioApiSocket.php on line 145
Кто-нибудь еще может подключиться к последней версии Kerio с помощью Curl/JSON или PHP?>
Подробнее здесь: https://stackoverflow.com/questions/798 ... amatically
Мобильная версия