mirror of
https://github.com/Xevion/todoist-late-reset.git
synced 2025-12-13 20:13:17 -06:00
remove get() body param, begin parsing sync response
This commit is contained in:
@@ -29,10 +29,10 @@ func main() {
|
||||
// }
|
||||
|
||||
client = api.NewSyncClient(os.Getenv("TODOIST_API_KEY"))
|
||||
client.sync(true)
|
||||
client.Synchronize(true)
|
||||
|
||||
for {
|
||||
_, changes, err := client.sync(false)
|
||||
changes, err := client.Synchronize(false)
|
||||
|
||||
if err != nil {
|
||||
fmt.Println("Error syncing:", err)
|
||||
|
||||
Reference in New Issue
Block a user