Sha256: 18050f0afa28e346e81f9cedaa44b3b8b87c3d66df9b934f193abbd069502237
Contents?: true
Size: 868 Bytes
Versions: 3
Compression:
Stored size: 868 Bytes
Contents
require 'faraday' require 'faraday_middleware' require_relative 'adapter/streaming_net_http' module NestConnect class API private def api_endpoint 'https://developer-api.nest.com' end def connection Faraday.new(url: api_endpoint) do |faraday| faraday.response :json, :content_type => 'application/json' faraday.request :json faraday.use FaradayMiddleware::FollowRedirects faraday.use NestConnect::Adapter::StreamingNetHttp end end def configuration GlobalConfig.new end def access_token configuration.access_token end end end require_relative 'authorize' require_relative 'stream' require_relative 'devices/camera' require_relative 'devices/protect' require_relative 'devices/thermostat' require_relative 'devices/structure'
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
nest_connect-0.1.3 | lib/nest_connect/api/api.rb |
nest_connect-0.1.2 | lib/nest_connect/api/api.rb |
nest_connect-0.1.1 | lib/nest_connect/api/api.rb |