Live Helper Chat support forum.. Forum is locked. New place for questions - Github Discussions

You are not logged in.

Announcement

#1 2016-03-16 14:58:38

joshua1983
Member
Registered: 2016-03-16
Posts: 2

Redirect api rest

Hi, I'm using a rest api lhrestapi.php with "restapi/isonlineuser/1" and it works, but quickly redirect to home page and lost json return. How I can avoid redirect?
Thanks

Offline

#2 2016-03-16 15:00:26

PeopleInside
Administrator
From: Italy
Registered: 2014-04-10
Posts: 4,046
Website

Re: Redirect api rest

Hi joshua1983,
thank you for your question in the Live Helper Chat Forum.

I can provide only basic free support.
I don't know never about API and use of API.

API is for integrate chat with your website?
I AM sorry to cannot help you with that.


lol PeopleInside - Live helper chat - free limited forum support!
wink For commercial support or GitHub [see FAQ here]
ops If you want to support this open source project, just donate [see support page]
glasses Something wrong with the forum? [contact a superhero]

Offline

#3 2016-03-16 15:07:29

joshua1983
Member
Registered: 2016-03-16
Posts: 2

Re: Redirect api rest

Hi thanks for answer, API is here: https://github.com/LiveHelperChat/liveh … estapi.php I think is like a example using curl php, but, when invoque /index.php/restapi/isonlineuser/3 by example, it show
{
    "isonline": false
}
and quickly redirect to login page, I dont'n know why. It should be there.

Offline

#4 2016-03-16 15:10:08

PeopleInside
Administrator
From: Italy
Registered: 2014-04-10
Posts: 4,046
Website

Re: Redirect api rest


lol PeopleInside - Live helper chat - free limited forum support!
wink For commercial support or GitHub [see FAQ here]
ops If you want to support this open source project, just donate [see support page]
glasses Something wrong with the forum? [contact a superhero]

Offline

Board footer