Jemsu · @jemsu
103 followers · 705 posts · Server norden.social

TIL the @trakt API does not fully conform with RFC 8628, which expects the device token request to have the field "device_code", but the trakt.tv API expects a field named "code".
This is as far as I can tell the one and only reason I can't take the off-the-shelf OAuth implementation and probably will have to kajigger the token stuff manually, which I hate 🙃
(Or I just keep my old version which is "good enough" I guess)

#httr2 #httr #rstats

Last updated 1 year ago

Jemsu · @jemsu
85 followers · 251 posts · Server norden.social

I thought I'd give another go, but I still have no idea how to make an authenticated request to the trakt.tv API.
I still think it can't be *that* hard and I don't think the trakt API is *that* weird, but I have no idea whether it's just me not knowing what I'm doing or maybe making assumptions that don't hold for this particular API or... Idunno. I guess I'll just leave my old-but-working code in and call it good enough ¯\_(ツ)_/¯

#httr2 #httr

Last updated 2 years ago

Wirry Loberts · @stragu
941 followers · 8607 posts · Server mastodon.indie.host

I wasted so much time on trying to figure out using the for a Shiny app because of poor documentation in both and the API.
I mean, I did learn stuff in the process, and I knew close to nothing before starting, and I was over the moon once I got an access token back, but no one needs to spend so much time just trying things are random until it works.
Documentation is so important! Document everything!!
Looking forward to testing , it should really improve things.

#rstats #httr2 #httr #api #OCLC

Last updated 3 years ago