Jump to content

https://doc.vodia.com/vodia_php_rest_api


koolandrew
 Share

Recommended Posts

The 5 bytes returned are probably "false". Which means that the request to establish a session failed...

If you want to use curl there is an easier way to authenticate the request, just use the -u admin:password option for curl (e.g. curl -u username:password GET -D - http://192.168.1.194:8080/rest/system/log). Then there is no need to set up a session.

Link to comment
Share on other sites

If you want to perform a third party login, there is a special API for that that will also set the necessary headers for the cross origin problem (CORS). This works different from the login for the browser. There is an article on https://doc.vodia.com/third_party on this topic. There is also an example at the bottom of https://doc.vodia.com/click2dial where you can see how the soft phone gets the credentials for a user.

Link to comment
Share on other sites

Please understand, if this is any trouble don't worry about it. I am sure this isn't a oft used feature, as no one else has mentioned it on the forums. That is why i used the topic header, and there was nothing in the forums on the third party login, but a fair bit of activity with the php api. 

I realize that browser security it becoming more and more challenging, so this probably did work at the latest browser updates may have killed it. In any event, if you can resolve it or not, the Vodia pbx is a fantastic product. Keep it up!

Link to comment
Share on other sites

  • 9 months later...

Dont worry about it, i dont want to waste your time. I will figure out another way to work around this feature. You do alot of great work, and i forgot that no one else seems to be using this, so there are much more important things to spend your time on.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...