1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

Hotfix todoist

While waiting for upstream todoist to work, patch locally
Use 'replace' to use locally vendored version, with modifications
This commit is contained in:
Sean Smith 2019-09-04 20:56:55 -04:00
parent 34d6d03b43
commit b184c8ae9f
3 changed files with 11 additions and 1 deletions

2
go.mod
View File

@ -70,3 +70,5 @@ require (
k8s.io/client-go v12.0.0+incompatible k8s.io/client-go v12.0.0+incompatible
rsc.io/binaryregexp v0.2.0 // indirect rsc.io/binaryregexp v0.2.0 // indirect
) )
replace github.com/darkSasori/todoist => ./vendor/github.com/darkSasori/todoist

8
vendor/github.com/darkSasori/todoist/go.mod generated vendored Normal file
View File

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

View File

@ -12,7 +12,7 @@ import (
// Token save the personal token from todoist // Token save the personal token from todoist
var Token string 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) { func makeRequest(method, endpoint string, data interface{}) (*http.Response, error) {
url := todoistURL + endpoint url := todoistURL + endpoint