kanet77 / togglv8

Ruby wrapper for Toggl API v8
https://rubygems.org/gems/togglv8
MIT License
83 stars 62 forks source link

Update API Url Domain to api.track.toggl.com #28

Open gilberthdez opened 3 years ago

gilberthdez commented 3 years ago

toggl.com or www.toggl.com will no longer be a supported entry point for the Toggl Track API check:

benlings commented 3 years ago

I've worked around this by doing TogglV8::TOGGL_API_URL = 'https://api.track.toggl.com/api'

ErebusBat commented 3 years ago

Today toggl started returning a warning that causes this gem to fail, even after patching the URL...

I have worked around this in a crude way (which is why I have not opened a PR) but it might help others: https://github.com/ErebusBat/togglv8/tree/fix-deprecation

If you are using bundler then you can change your gem line to: gem "togglv8", github: "ErebusBat/togglv8", branch: "fix-deprecation" and it should work.

wielinde commented 2 years ago

Thanks @ErebusBat for providing that fork. Apparently there is another place to update the URL, at least if you want to retrieve details from reports. I provided a PR against your repo. Find the changes here: https://github.com/wielinde/togglv8/commit/6d3f8936ade83935a7cfa433b2a8aa95be7b1291

ErebusBat commented 2 years ago

@wielinde thank you for catching the error... I just merged the PR on my branch so my instructions above contain the fix to retrieve the details to reports.