Using REST API without mod_rewrite

It is possible to use call LiveAgent API also without support of mod_rewrite in your Apache (or something similar).
You just need to change call URL a bit. Here is an example of ordinary API URL call with the support of mod_rewrite:
 
http://example.com/api/conversations/[conversationid]/messages?apikey=key123456
 
and this is how it looks like without mod_rewrite support:
 
URL_To_LiveAgent/api/index.php?handler=conversations/[conversationid]/messages&apikey=key123456
 
You must just address specific API handler file
http://example.com/api/index.php
 
and then attach handler string and API key to it:
handler=conversations/[conversationid]/messages?apikey=key123456
 
Another example:
- if you wanted to retrieve all the conversations of a department then you could do it this way:
URL_To_LiveAgent/api/index.php?handler=conversations&department=[departmentid]&apikey=key123456

Ready to try LiveAgent?

It's free for the first 14 days! No credit card required.

Get Started
We work well with others...
Magento Joomla Wordpress Mailchimp
Contact us

support@ladesk.com

+1-800-811-6590 (Toll Free in USA & Canada)

+421 2 33 456 826 (European Union & Worldwide)

Quality Unit, LLC 616 Corporate Way, Suite 2-3278 Valley Cottage, NY 10989

Stay in touch
Blog Google+
© 2004-2015 QualityUnit.com, All rights reserved