Retrieving JSON from a web URL

Posted by npeterson on Stack Overflow See other posts from Stack Overflow or by npeterson
Published on 2010-04-12T20:08:37Z Indexed on 2010/04/12 20:12 UTC
Read the original article Hit count: 366

Filed under:
|

This may be a terribly uninformed question, brace yourself. A company I'm working with has given an 'API' that I can use to access orders, however, there are only two real commands, getorders and getorderdetails. These commands are put in the format of http://www.server.com/path/to/the/orderapi/getorders/UniqueKey/

If I go to that web address, I'm prompted for a username and password, and once authenticating, get presented with a page of JSON formatted order details, contained in the body of the html page. I would like a service to check this information and create orders in our crm based on it, is there an obvious way to access it without the browser/client interaction?

© Stack Overflow or respective owner

Related posts about JSON

Related posts about web-services