Skip to content

Add a configuration value for API version #4

@jaredmoody

Description

@jaredmoody

According to the documentation, the way to specify the specific API version you want is with an accept header like: "application/vnd.connectwise.com+json; version=3.0.0"

Currently I'm doing this to set it:

ConnectWise::ApiClient.default.default_headers['Accept'] = "application/vnd.connectwise.com+json; version=3.0.0"

but it would be nice if I could just pass the version in the configuration block like so:

ConnectWise.configure do |config|
  config.api_version = '3.0.0'
end

What do you think about adding that? I'd be happy to submit a PR if you like the idea.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions