sherpa api's | sherpaweb code | sherpaweb 0.0.7
<script src="sherpa.js"></script> <script> .() .then(function(result) { console.log('Success!', result); }, function(error) { if(error.code === '...') { } else { console.log('Error: '+error.message); } }); </script>
<script> function sherpaCallback(response) { if(response.error) { // handle error, as response.error.code or response.error.message } else { // success result in response.result } } </script> <script src="?body=&callback=sherpaCallback"></script>
POST:
curl -H 'Content-Type: application/json' --data-binary '{"params":}' ''
GET:
curl '?body='