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

Merge pull request #602 from Seanstoppable/hotfixtodoist

Hotfix todoist
This commit is contained in:
Chris Cummer 2019-09-04 21:57:18 -07:00 committed by GitHub
commit 237a05d056
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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