Repository URL to install this package:
|
Version:
2.2.0 ▾
|
require_relative '../authenticator.rb'
class ApiKeyAuthenticator < Authenticator
def initialize(account_url, api_key)
@api_key = api_key
super account_url
end
def headers
{ "X-API-KEY": @api_key,
"X-NAMARA-CLIENT": 'ruby',
"X-NAMARA-CLIENT-VERSION": Namara::VERSION }
end
def token
fetch_token
end
end