auth
Ruby
code posted
by
punchh
created at 17 Dec 12:25
Edit
|
Back
1 2 3 4 5 |
client_id = CLIENT_KEY_FOR_PUNCHH_DASHBOARD_GOES_HERE secret = Base64.decode64(client_id) path = "/api/auth/customers.json?client=client_id&user%5Bemail%5D=EMAIL_GOES_HERE&user%5Bpassword%5D=PASSWORD_GOES_HERE" digest = HMAC::SHA1.new(client_id).update(path).digest signature = Base64.encode64(digest).delete("=") |
365 Bytes in 2 ms with coderay