Use Todoist's REST API v2 (#978)

v1 was deprecated on December 5, 2022.
This commit is contained in:
Gonçalo Silva 2022-12-15 00:52:19 +00:00 committed by GitHub
parent 861ad057c7
commit e091fab94f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
}