toggl / toggl_api_docs

Documentation for the Toggl API
1.39k stars 235 forks source link

Detail Report Error - Old api is deprecated #332

Closed celliott113 closed 2 years ago

celliott113 commented 5 years ago

Greetings!

When attempting to utilize the call for detailed reports, I receive the error message "Old api is deprecated".

According to the doc listed here: https://github.com/toggl/toggl_api_docs/blob/master/reports/detailed.md

It states to utilize v2 of the API but all other docs refer to v8. I did try utilizing v8 instead but receive a 404 error.

Syntax and output below:

Syntax: curl -v -u :api_token -X GET https://www.toggl.com/api/v2/details?workspace_id=2349903&since=2019-01-01&until=2019-01-13&email=

Note: Unnecessary use of -X or --request, GET is already inferred.

Everything appears to be working just fine when calling items from v8 API. So I am not quite sure what's causing the v2 to not work unless there's a new version not documented yet.

Any assistance would be greatly appreciated!🤘

chrisaligent commented 5 years ago

@celliott113 Wrong API namespace :wink:

You're querying: /api/v2/details

You want: /reports/api/v2/details

Should work once you update the URL :slightly_smiling_face:

Just to clarify, these are two separate API's (as per the first paragraph here) The main Toggl API is at v8, but the Reports API is at v2.

joeriharleman commented 2 years ago

Hello @celliott113!

Thank you for submitting your issue. Unfortunately this repository is largely unmaintained, which means issues remain unseen and do not get dealt with in a respectable manner. We're sorry for not getting back to you sooner.

This issue has been around for a long time so we will close it for now, but please let our excellent 24/5 support staff know you if you have any unresolved issues with our platform, documentation or APIs. They're also really good at noting down feature requests for our development teams. Please find them on our support page by clicking the little icon in the bottom right corner of the screen.

Kind regards, Joeri from Toggl