Recently, a company has provided me with a web-based API to access their services. Utilizing this API within a web browser hasn't posed any issues for me:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script type="text/javascript"
src="http://someaddress.com?&key=somekey"></script>
<script type="text/javascript">
var object = new SomeObject();
object.SomeFunction();
</script>
</head>
My main query now is regarding how I can obtain the return value of SomeFunction() from a windows application?