curtislacy/mastercoin-tools — pull request #4 by faizkhan00 (2014-02-01 19:28:46+00:00)
Title: Offers endpoint

adds robust query API for addresses

I do intend on adding a transaction API so we can get more in depth info about bids. I hope to do this on Monday and during the week.

Includes demos and configs to get this running:

1) run ./start_apps.sh in /apps
2) run nginx with included conf
3) browse to localhost/demo/OffersAPIDemo.html

Query API:
Method: POST
Params: (BTC/MSC address, currencyType, offerType)
[ currency = TMSC/MSC & offer = ACCEPT/SELL ]

ex. (see /www/demo/ for more)
```
$.post('/api/offers/', postData , function(data,status,headers,config) {
div.text(JSON.stringify(data));
console.log(data);
});
```

@maddenpj test