bash

C code posted
created at 24 Jul 10:38, updated at 26 Jul 16:48

Edit | Back
1
2
3
4
5
6
7
8
9
10
11
12
#!/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"
427 Bytes in 2 ms with coderay