We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use of TogglV8::API#initialize() is convoluted. It supports three authentication alternatives:
toggl = TogglV8::API.new() # with API token in ~/.toggl toggl = TogglV8::API.new(api_token) toggl = TogglV8::API.new(username, password)
The source code is not clear on how it can be used.
def initialize(username=nil, password=API_TOKEN, opts={})
username
password
opts
new()
The text was updated successfully, but these errors were encountered:
kanet77
No branches or pull requests
Background
Use of TogglV8::API#initialize() is convoluted. It supports three authentication alternatives:
Problems
The source code is not clear on how it can be used.
username
with no correspondingpassword
is unexpected.opts
with the username/password authentication (or by explicitly passing "api_token" as the second parameter.Solution
new()
, not during.opts
(e.g. enable debugging) or remove it entirely and replace with explicit method callsThe text was updated successfully, but these errors were encountered: