Ruby
Installation
Add this line to your application's Gemfile:
And then execute:
Or install it yourself as:
Usage
You can find the API you want to interact with by using its URL. You can find the URL in the endpoint field of the API's page:
You can also just find the API by its id:
To call the API, pass in the data as a Hash:
Example
Error Handling
If an error occurs during an API call, an instance of PromptjoyRuby::Error is raised with a message indicating the nature of the error.
Last updated