Using other programming languages
In this chapter, we just looked at code examples using JavaScript and Python. But again, virtually any modern programming language could have been used. The OpenAI API is a standards-based HTTP API, so all you need is a language that can make HTTP requests and work with JSON, which, again, is virtually all modern programming languages.
Also, for the examples in this chapter, we called the API directly using general HTTP libraries. We could have also used a library specifically built for the OpenAI API. Multiple libraries exist for both JavaScript, Python, and a number of other languages, including C#/.NET, Go, Java, and Unity, to name a few. You can find a list of community-maintained libraries at https://beta.openai.com/docs/developer-quickstart/community-libraries.
Libraries can simplify working with the OpenAI API. However, it's helpful to understand how to call the endpoints directly, and the API is quite simple to use. For those reasons...