Sha256: 59e8b2544392f60b7f2e1cd42ce99f388fb9790c50291d00cb11d80fef49300d
Contents?: true
Size: 709 Bytes
Versions: 5
Compression:
Stored size: 709 Bytes
Contents
#!/usr/bin/env ruby require 'nest_connect' require 'thor' module NestConnect class App < Thor desc 'authorize', 'Get an access token' method_option :auth_code, desc: 'Pincode to connect with Nest', required: true method_option :client_id, desc: 'Client ID', required: true method_option :client_secret, desc: 'Client Secret', required: true def authorize NestConnect::API::Authorize.new( auth_code: options[:auth_code], client_id: options[:client_id], client_secret: options[:client_secret] ).run end desc 'stream', 'Debug Nest API streaming' def stream NestConnect::API::Stream.new.run end end end NestConnect::App.start
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
nest_connect-0.1.7 | exe/nest_connect |
nest_connect-0.1.6 | exe/nest_connect |
nest_connect-0.1.5 | exe/nest_connect |
nest_connect-0.1.4 | exe/nest_connect |
nest_connect-0.1.3 | exe/nest_connect |