Company Name Generator API - Ruby Gem
Company Name Generator is a simple tool for generating company names. It returns a list of company names based on the specified keyword.
Installation
Add this line to your application's Gemfile:
gem 'apiverve_companynamegenerator'
And then execute:
$ bundle install
Or install it yourself as:
$ gem install apiverve_companynamegenerator
Getting Started
Get your API key at APIVerve
Basic Usage
require 'apiverve_companynamegenerator'
# Initialize the client
client = APIVerve::Companynamegenerator::Client.new(api_key: "YOUR_API_KEY")
# Make a request
response = client.execute({
keyword: "systems",
count: 5
})
# Print the response
puts response
Error Handling
begin
response = client.execute({ keyword: "systems", count: 5 })
puts response["data"]
rescue APIVerve::Companynamegenerator::ValidationError => e
puts "Validation error: #{e.errors.join(', ')}"
rescue APIVerve::Companynamegenerator::APIError => e
puts "API error: #{e.}"
puts "Status code: #{e.status_code}"
end
Debug Mode
# Enable debug logging
client = APIVerve::Companynamegenerator::Client.new(
api_key: "YOUR_API_KEY",
debug: true
)
Example Response
{
"status": "ok",
"error": null,
"data": {
"keyword": "systems",
"count": "5",
"names": [
"SystemsVibe",
"SystemsGrid",
"SystemsDeck",
"TrueSystems",
"SystemsCape"
]
}
}
Documentation
For more information, visit the API Documentation.
Support
- Website: https://apiverve.com/marketplace/companynamegenerator?utm_source=ruby&utm_medium=readme
- Email: hello@apiverve.com
License
This gem is available under the MIT License.