Title / Description
Code #!/bin/bash timestamp=`date +%s` secret=test_secret client_id=test_client sign=`echo -n $client_id$timestamp$secret | sha256sum | awk '{print $1}'` server=localhost:3000 curl -iv \ -X POST \ -H "Content-Type: application/json; charset=utf-8" \ -d '{"request": {"requestId": "'$1'"}, "type": "VerifyRequest", "timestamp": "'$timestamp'", "sign": "' $sign'"}' \ваываываыва "http://$server/api/v1/$client_id/uprid.json"
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code