Help with getting all player badges

I have been looking for a way to get all the badges a player has and send a list of them to the client. I found 2 other Dev Forum posts on how to do it, but I do not understand how to use the information they give me. they all mentioned this website:
Swagger UI
but I am very new to scripting and have no clue how I am suppose to use it or HTTPs service. I have tried the code that they gave but it gave me a blank table.