Article Ideas Generator API - Ruby Gem
Article Ideas is a simple tool for generating article ideas. It returns a list of article ideas.
Installation
Add this line to your application's Gemfile:
gem 'apiverve_articleideas'
And then execute:
$ bundle install
Or install it yourself as:
$ gem install apiverve_articleideas
Getting Started
Get your API key at APIVerve
Basic Usage
require 'apiverve_articleideas'
# Initialize the client
client = APIVerve::Articleideas::Client.new(api_key: "YOUR_API_KEY")
# Make a request
response = client.execute({ topic: "software and technology" })
# Print the response
puts response
Error Handling
begin
response = client.execute({ topic: "software and technology" })
puts response["data"]
rescue APIVerve::Articleideas::ValidationError => e
puts "Validation error: #{e.errors.join(', ')}"
rescue APIVerve::Articleideas::APIError => e
puts "API error: #{e.}"
puts "Status code: #{e.status_code}"
end
Debug Mode
# Enable debug logging
client = APIVerve::Articleideas::Client.new(
api_key: "YOUR_API_KEY",
debug: true
)
Example Response
{
"status": "ok",
"error": null,
"data": {
"topic": "software and technology",
"topicIdeas": 3,
"topics": [
"The Future of AI: How Artificial Intelligence Will Transform Software and Technology",
"Cybersecurity in the Modern Age: Protecting Your Data in a Connected World",
"Cloud Computing Explained: A Beginner's Guide to Understanding the Cloud"
]
}
}
Documentation
For more information, visit the API Documentation.
Support
- Website: https://apiverve.com/marketplace/articleideas?utm_source=ruby&utm_medium=readme
- Email: hello@apiverve.com
License
This gem is available under the MIT License.