module Dianji::Balance

Public Instance Methods

info(timestamps) click to toggle source
# File lib/dianji/balance.rb, line 5
def info(timestamps)
  options = {
    account: Dianji.account,
    password: Digest::MD5.hexdigest([Dianji.password, timestamps].join),
    timestamps: timestamps
  }
  JSON.parse RestClient.post("#{Dianji.gateway}/msgHttp/json/balance", options)
end