Skip to content

Instantly share code, notes, and snippets.

@schappim
Created January 20, 2021 03:31
Show Gist options
  • Save schappim/e8b09e1a0734ad2302734dac2cf70b9d to your computer and use it in GitHub Desktop.
Save schappim/e8b09e1a0734ad2302734dac2cf70b9d to your computer and use it in GitHub Desktop.
require 'rest-client'
require 'json'
result = RestClient.post 'https://api.replicastudios.com/auth',
"client_id=00000000-0000-0000-0000-000000000001&secret=mySecretPassword",
:content_type => 'application/x-www-form-urlencoded'
p JSON.parse(result)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment