Hi,
thanks for the great plugin.
I moved the API key generate by etherpad-lite from the main.php of the wiki I am working on, to etherpad-lite-client's Client.php.
Therefore, when creating a new instance in main.php, I am doing like this:
$instance = new EtherpadLite\Client($apiKey, $baseUrl);
This throws the following error though:
Uncaught exception 'InvalidArgumentException' with message '[] is not a valid API key
I expect it to work and being more of a discrete way to store the API key, but it's not. If I replace the above $instance with
$instance = new EtherpadLite\Client('api-key-xxxx', $baseUrl);
etherpad-lite-client works.
Any idea?
Hi,
thanks for the great plugin.
I moved the API key generate by etherpad-lite from the
main.phpof the wiki I am working on, to etherpad-lite-client'sClient.php.Therefore, when creating a new instance in
main.php, I am doing like this:This throws the following error though:
I expect it to work and being more of a discrete way to store the API key, but it's not. If I replace the above
$instancewithetherpad-lite-client works.
Any idea?