remove get() body param, begin parsing sync response

This commit is contained in:
2024-09-24 17:04:18 -05:00
parent 1d1df28ede
commit 8fdd128f1e
4 changed files with 120 additions and 20 deletions

View File

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