module Pddapi
Constants
- PDDURI
Your code goes hereā¦
- VERSION
Public Instance Methods
action_params()
click to toggle source
# File lib/pddapi.rb, line 20 def action_params {} end
get_sign(hash, secret)
click to toggle source
# File lib/pddapi.rb, line 24 def get_sign(hash, secret) Digest::MD5.hexdigest(hash.sort.flatten.push(secret).unshift(secret).join('')) end
system_params(method, client_id)
click to toggle source
# File lib/pddapi.rb, line 11 def system_params(method, client_id) { type: method, client_id: client_id, timestamp: Time.now.to_i, data_type: 'JSON' } end