Sha256: 26cc9d768ae2029e1993cce11ea788ad9dc4482b2bead54e1c78d9029910880b

Contents?: true

Size: 523 Bytes

Versions: 14

Compression:

Stored size: 523 Bytes

Contents

require 'pathname'
require 'yaml'

env_file = File.join(Pathname.new(__FILE__).parent.parent, 'config', 'application.yml')
YAML.load(File.open(env_file)).each do |key, value|
  ENV[key.to_s] = value.to_s
end if File.exists?(env_file)

require 'epom'

timestamp = Time.now.to_i * 1000
body_params = {
	:hash => Epom.create_hash(Epom.create_hash(ENV['password']), timestamp),
	:timestamp => timestamp, 
	:username => ENV['username'],
}
url_params = {}

response = Epom::Site.get_sites(url_params, body_params)

puts response

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
epom-0.8.5 test/test.rb
epom-0.8.4 test/test.rb
epom-0.8.1 test/test.rb
epom-0.8 test/test.rb
epom-0.7.2 test/test.rb
epom-0.7 test/test.rb
epom-0.6.2 test/test.rb
epom-0.6 test/test.rb
epom-0.5 test/test.rb
epom-0.4.1 test/test.rb
epom-0.4 test/test.rb
epom-0.3.3 test/test.rb
epom-0.3 test/test.rb
epom-0.1.0 test/test.rb