lib/nylas/http_client.rb in nylas-4.6.7 vs lib/nylas/http_client.rb in nylas-5.0.0
- old
+ new
@@ -29,10 +29,11 @@
"/threads/search" => 350,
"/delta" => 3650,
"/delta/longpoll" => 3650,
"/delta/streaming" => 3650
}.freeze
+ SUPPORTED_API_VERSION = "2.2"
include Logging
attr_accessor :api_server, :service_domain
attr_writer :default_headers
attr_reader :access_token
@@ -135,9 +136,10 @@
def default_headers
@default_headers ||= {
"X-Nylas-API-Wrapper" => "ruby",
"X-Nylas-Client-Id" => @app_id,
+ "Nylas-API-Version" => SUPPORTED_API_VERSION,
"User-Agent" => "Nylas Ruby SDK #{Nylas::VERSION} - #{RUBY_VERSION}",
"Content-types" => "application/json"
}
end