class Marver::API::Credentials

Public Class Methods

get() click to toggle source
# File lib/marver/api/credentials.rb, line 9
def get
  public_key  = Marver.configuration.public_key
  private_key = Marver.configuration.private_key
  timestamp = Time.now.to_i.to_s
  hash = Digest::MD5.hexdigest(timestamp + private_key + public_key)

  { ts: timestamp, apikey: public_key, hash: hash }
end