Created
August 8, 2017 14:33
-
-
Save johnddias/0a66539ef95ae69fe4aba42495f36120 to your computer and use it in GitHub Desktop.
Postman "Pre-Request" script for setting epoch environment var
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var epoch = (new Date).getTime(); | |
postman.setEnvironmentVariable("epoch", epoch); | |
var epochPrev24 = epoch - (24*60*60*1000) | |
postman.setEnvironmentVariable("epochPrev24", epochPrev24) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I dont know how to use it in request body