diff --git a/go.mod b/go.mod index 739197bd..dfb4f065 100644 --- a/go.mod +++ b/go.mod @@ -70,3 +70,5 @@ require ( k8s.io/client-go v12.0.0+incompatible rsc.io/binaryregexp v0.2.0 // indirect ) + +replace github.com/darkSasori/todoist => ./vendor/github.com/darkSasori/todoist diff --git a/vendor/github.com/darkSasori/todoist/go.mod b/vendor/github.com/darkSasori/todoist/go.mod new file mode 100644 index 00000000..8b42dbd0 --- /dev/null +++ b/vendor/github.com/darkSasori/todoist/go.mod @@ -0,0 +1,8 @@ +module github.com/darkSasori/todoist + +go 1.12 + +require ( + github.com/darkSasori/todoist v0.0.0-20180625015933-ab3a9f0b9d55 + gopkg.in/jarcoal/httpmock.v1 v1.0.0-20180615191036-16f9a43967d6 +) diff --git a/vendor/github.com/darkSasori/todoist/todoist.go b/vendor/github.com/darkSasori/todoist/todoist.go index d487426c..12908472 100644 --- a/vendor/github.com/darkSasori/todoist/todoist.go +++ b/vendor/github.com/darkSasori/todoist/todoist.go @@ -12,7 +12,7 @@ import ( // Token save the personal token from todoist var Token string -var todoistURL = "https://beta.todoist.com/API/v8/" +var todoistURL = "https://api.todoist.com/rest/v1/" func makeRequest(method, endpoint string, data interface{}) (*http.Response, error) { url := todoistURL + endpoint