Skip to content

Commit

Permalink
Use Todoist's REST API v2 (#978)
Browse files Browse the repository at this point in the history
v1 was deprecated on December 5, 2022.
  • Loading branch information
goncalossilva committed Dec 15, 2022
1 parent 861ad05 commit e091fab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/detectors/todoist/todoist.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result
}

if verify {
req, err := http.NewRequestWithContext(ctx, "GET", "https://api.todoist.com/rest/v1/projects", nil)
req, err := http.NewRequestWithContext(ctx, "GET", "https://api.todoist.com/rest/v2/projects", nil)
if err != nil {
continue
}
Expand Down

0 comments on commit e091fab

Please sign in to comment.