update api.sendRequest
Merge branch 'master' into gh-pages