Working with the Bluesky API in BoxLang
I’ve built multiple integrations with the Bluesky API, all making use of either the Node or Python SDK, but I thought I’d take a quick look at what it would take to build a BoxLang integration using the REST API. Turns out it’s pretty easy (with some caveats I’ll explain at the end) – here’s what I built.
Authentication
To authenticate, you’ll need your username and password for your account. I’m picking this up via environment variables and doing a bit of validations:
BS_HANDLE = server.system.environment?.BLUESKY_HANDLE ?: ''; BS_PASSWORD = server.system.environment?.BLUESKY_PASSWORD ?: ''; if(BS_HANDLE == "" || BS_PASSWORD == "")... more →
Posted in: JavaScript

