Groovy Programming HttpClient

As a follow-up to my post on creating a JWT in Groovy, I did manage to figure out how to make an HttpClient in Groovy as opposed to making raw connections. You can see this implemented in the GitHub repository I used for the previously linked post. It was honestly pretty easy to do, and there are tons of tutorials out there; the code is essentially the same regardless of whether you’re doing it in Java, Kotlin, or Groovy.
Read more →

Creating a JWT in the Groovy Programming Language

On Friday I found myself in a new situation. I was working with APIs for a new service my company has started using, but their setup was a bit more involved than what I’ve typically experienced. Accessing many services via their REST API requires you to follow a few steps to generate an application ID and an API key, you pass those with your request, and you’re done. The downside to this is that it can open up security vulnerabilities; if something happens to your API keys, for example, they can be used for nefarious purposes.
Read more →

Learning Groovy Programming

Background I recently needed to learn Groovy for my job. I’m working with a system where I’m doing a lot of API integration. It’s done mainly through a web frontend, though that frontend actually interfaces with various on-prem collectors that execute the code. While I can use basically any language I want, using anything other than Groovy means that I have to mess with copying files around on the collector devices.
Read more →