Hello @JClouston , when I work with API's I use a tool for testing called Postman, now, there are lots of other tools out there but I definatelly recommend this one, there is a free tier with an app that you can install, and it is great for debugging/testing API's.
So I would go about it this way, get the app and do some testing over there. You can also export from Postman the code in any language you want once your API call is okay. More info about Postman here in this link.
If my answer was helpful please mark it as a solution.