Quantcast
Channel: THWACK: Popular Discussions - Web Help Desk
Viewing all articles
Browse latest Browse all 5301

Could anyone provide an example of using REST in HTML

$
0
0

I am trying to learn REST and would like to start with a simple html form that makes a GET request for some request types.  I can't seem to find an example that shows the syntax for the full HTML code that embeds the API key and then makes the call.

 

I have tried examples in the Documentation just using curl such as

curl "http://localhost/helpdesk/WebObjects/Helpdesk.woa/ra/Tickets?list=group&page=1&limit=3&apiKey=myapikeyhere"

But it returns with the message "Authentication Required"

 

If I change it to use

curl "http://localhost/helpdesk/WebObjects/Helpdesk.woa/ra/Tickets?list=group&page=1&limit=3?username=myusername&password=mypassword"

It seems to work but I get a massive page of errors starting with {"stackTrace":"java.lang.NullPointerException \r\n\tat

 

Thanks,

Joe


Viewing all articles
Browse latest Browse all 5301

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>