Date should not be a string

Removed quotes around the date. Added some comments for clarity.
This commit is contained in:
James Matheson
2015-12-11 14:21:49 -08:00
parent 0f9a4240a3
commit e98b01e251
+3 -2
View File
@@ -1,9 +1,10 @@
#!/bin/sh
# "date": "1413782506964"
# Date is epoch in nanosecods...ie linux echo $(($(date +%s%N)/1000000))
# $API_SECRET needs to be a hashed value of your secret key...ie linux echo -n "<API_SECRET>" | sha1sum
curl -H "Content-Type: application/json" -H "api-secret: $API_SECRET" -XPOST 'http://localhost:1337/api/v1/entries/' -d '{
"sgv": 100,
"type": "sgv",
"direction": "Flat",
"date": "1415950912800"
"date": 1449872210706
}'