Sha256: a188a15b613d32139a1598234ccb1a75090ad7b4cec539f5474a19ea41b89676
Contents?: true
Size: 901 Bytes
Versions: 8
Compression:
Stored size: 901 Bytes
Contents
module RDStation class Client def initialize(access_token:, refresh_token: nil) warn_deprecation unless refresh_token @authorization = Authorization.new( access_token: access_token, refresh_token: refresh_token ) end def contacts @contacts ||= RDStation::Contacts.new(authorization: @authorization) end def events @events ||= RDStation::Events.new(authorization: @authorization) end def fields @fields ||= RDStation::Fields.new(authorization: @authorization) end def webhooks @webhooks ||= RDStation::Webhooks.new(authorization: @authorization) end private def warn_deprecation warn "DEPRECATION WARNING: Specifying refresh_token in RDStation::Client.new(access_token: 'at', refresh_token: 'rt') is optional right now, but will be mandatory in future versions. " end end end
Version data entries
8 entries across 8 versions & 1 rubygems