I am not very good with working with API's "From scratch" so to speak. My issue here is probably more to do with my ignorance of RESTful API's than the Todoist API specifically, but I'm struggling with Todoist because all of their documentation is geared around python and I'm not sure why my feeble attempts are failing. Once I get connected/authenticated I think I'll be fine.
I've tried a couple of configurations using httr::GET()
. I would appreciate a little push here as I get started.
Things I've tried, where key
is my api token:
library(httr)
r<-GET("https://beta.todoist.com/API/v8/", add_headers(hdr))
for hdr
, I've used a variety of things:
- hdr<-paste0("Authorization: Bearer", key)
- just my key
I also tried with projects
at the end of the url