Skip to content

Instantly share code, notes, and snippets.

@peevees
Created September 23, 2019 12:18
Show Gist options
  • Save peevees/80cf06f50467016cd6f5802d980984db to your computer and use it in GitHub Desktop.
Save peevees/80cf06f50467016cd6f5802d980984db to your computer and use it in GitHub Desktop.
require "securerandom"
require "httparty"
SecureRandom.uuid
HTTParty.post("URL_TO_POST_TO", basic_auth: { username: "API_KEY", password: "API_SECRET" }, body: { "Id" => SecureRandom::uuid, "AllowedSignatureTypes" => ["Touch"], "EmailAddress" => "EMAIL_ADDRESS" }.to_json, :headers => { 'Content-Type' => 'application/json' } )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment