IPCortex API version 1.9.1
Hello,
I’m having trouble logging in to the API. I’m running a Ruby on Rails application.
I can use the Javascript libraries to log in just fine:
IPCortex.PBX.Auth.setHost('https://my.ip.address'); IPCortex.PBX.Auth.login(function () { console.log('logged in!'); }, { 'username': 'username', 'password': 'password' });
But I cannot get my application to log in. When I send a POST request to
https://my.ip.address/rest/auth
with the following arguments:
{ auth: { type: 'auth', username: 'admin', password: 'password' } }
I keep getting “failure - not logged in”.
I’m not sure where this is coming from.
Thanks,
Anthony