added usage example of query string based API