Making custom API requests via Postman's pre-request script feature
Today I came across an API I needed to work with which required me to place custom request headers to make authenticated requests. The content of the headers required some custom logic to generate. In this case it required me to create a string representation of the current UTC date and time in HTTP format (RFC2616 format) e.g 12 Feb 2011 20:59:04 GMT then use that to calculate the hexadecimal HMAC SHA1 hash of that string using ...