Skip to content

Instantly share code, notes, and snippets.

@JordanSchuetz
Created June 27, 2020 23:24
Show Gist options
  • Save JordanSchuetz/74687bedca6dbdc7914a144e3a362129 to your computer and use it in GitHub Desktop.
Save JordanSchuetz/74687bedca6dbdc7914a144e3a362129 to your computer and use it in GitHub Desktop.
import toBase64 from dw::core::Binaries
output application/java
var concat = "ACCOUNT-SID" ++ ":" ++ "AUTH TOKEN"
var base64 = toBase64(concat)
---
{
"Authorization" : "Basic " ++ base64
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment