Skip to content

Commit

Permalink
Date should not be a string
Browse files Browse the repository at this point in the history
Removed quotes around the date. Added some comments for clarity.
  • Loading branch information
James Matheson committed Dec 11, 2015
1 parent 0f9a424 commit e98b01e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bin/post-sgv.sh
Original file line number Diff line number Diff line change
@@ -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
}'

0 comments on commit e98b01e

Please sign in to comment.