Skip to content

duffn/athenian

Repository files navigation

athenian

A Ruby library for interacting with the Athenian API.

Generation

This library is automatically generated by OpenAPI Generator.

The version number of this gem corresponds to a tag in the Athenian OpenAPI specification repository.

Installation

Install the gem and add to the application's Gemfile by executing:

bundle add athenian

If bundler is not being used to manage dependencies, install the gem by executing:

gem install athenian

Getting Started

require 'athenian'

Athenian.configure do |config|
  # Configure Bearer authorization from https://app.athenian.co/bearer
  config.access_token = 'YOUR_BEARER_TOKEN'
  # Configure a proc to get access tokens in lieu of the static access_token configuration
  config.access_token_getter = -> { 'YOUR TOKEN GETTER PROC' }
end

# Example
api_instance = Athenian::AlignApi.new
opts = {
  body: Athenian::GoalTemplateCreateRequest.new({account: 37, metric: Athenian::JIRAMetricID::OPEN, name: 'Untitled Template'})
}

begin
  #👤 Create a goal template.
  result = api_instance.create_goal_template(opts)
  p result
rescue Athenian::ApiError => e
  puts "Exception when calling AlignApi->create_goal_template: #{e}"
end

Documentation

Tests

Autogenerated tests are in the spec directory.

Be very wary of what the tests currently provide. Autogenerated tests from the OpenAPI generator generally have empty bodies.

Contributing

There's may not be not much to contribute here, but if you do find an issue with the code generation, dependencies, CI, or similar, please feel free to open a PR!

Code of Conduct

Everyone interacting with this project is expected to follow the code of conduct.

License

MIT

About

A Ruby library for interacting with the Athenian API.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages