Sha256: 3b7b4a2c6bcada3f0e9b7a102324ef4a8b2290071fbdb0e0bbe175b2da261aea

Contents?: true

Size: 325 Bytes

Versions: 10

Compression:

Stored size: 325 Bytes

Contents

$:.unshift File.expand_path '../lib', File.dirname(__FILE__)

require 'irkit'

unless irkit = IRKit::Device.find.first
  STDERR.puts 'device not found'
  exit 1
end

token = irkit.get_token
puts "token:\t#{token}"
res = irkit.get_key_and_deviceid(token)

puts "clientkey:\t#{res.clientkey}"
puts "deviceid:\t#{res.deviceid}"

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
irkit-0.1.0 samples/get_clientkey_and_deviceid.rb
irkit-0.0.9 samples/get_clientkey_and_deviceid.rb
irkit-0.0.8 samples/get_clientkey_and_deviceid.rb
irkit-0.0.7 samples/get_clientkey_and_deviceid.rb
irkit-0.0.6 samples/get_clientkey_and_deviceid.rb
irkit-0.0.5 samples/get_clientkey_and_deviceid.rb
irkit-0.0.4 samples/get_clientkey_and_deviceid.rb
irkit-0.0.3 samples/get_clientkey_and_deviceid.rb
irkit-0.0.2 samples/get_clientkey_and_deviceid.rb
irkit-0.0.1 samples/get_clientkey_and_deviceid.rb