Emoji Decorator API - Ruby Gem

Emoji Decorator is a simple tool for decorating text with emojis. It returns the text decorated with emojis.

Installation

Add this line to your application's Gemfile:

gem 'apiverve_emojidecorator'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install apiverve_emojidecorator

Getting Started

Get your API key at APIVerve

Basic Usage

require 'apiverve_emojidecorator'

# Initialize the client
client = APIVerve::Emojidecorator::Client.new(api_key: "YOUR_API_KEY")

# Make a request
response = client.execute({ text: "I am so excited to go to the lake and swim" })

# Print the response
puts response

Error Handling

begin
  response = client.execute({ text: "I am so excited to go to the lake and swim" })
  puts response["data"]
rescue APIVerve::Emojidecorator::ValidationError => e
  puts "Validation error: #{e.errors.join(', ')}"
rescue APIVerve::Emojidecorator::APIError => e
  puts "API error: #{e.message}"
  puts "Status code: #{e.status_code}"
end

Debug Mode

# Enable debug logging
client = APIVerve::Emojidecorator::Client.new(
  api_key: "YOUR_API_KEY",
  debug: true
)

Example Response

{
  "status": "ok",
  "error": null,
  "data": {
    "decorated": "I am so excited πŸ₯‚ to go πŸ˜„πŸ™ŒπŸ½ to the lake πŸ€˜πŸ»πŸ‡ΊπŸ‡Έ and swim 🏊"
  }
}

Documentation

For more information, visit the API Documentation.

Support

License

This gem is available under the MIT License.