Skip to content

Add a configuration value for API version #4

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions