Meeting Time Converter API - Ruby Gem

Meeting Time Converter transforms meeting times between any two timezones, calculating time differences and UTC offsets for global coordination.

Installation

Add this line to your application's Gemfile:

gem 'apiverve_meetingtimeconverter'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install apiverve_meetingtimeconverter

Getting Started

Get your API key at APIVerve

Basic Usage

require 'apiverve_meetingtimeconverter'

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

# Make a request
response = client.execute({
  time: "14:30",
  fromTimezone: "America/New_York",
  toTimezone: "Europe/London",
  date: "2024-03-15"
})

# Print the response
puts response

Error Handling

begin
  response = client.execute({ time: "14:30", fromTimezone: "America/New_York", toTimezone: "Europe/London", date: "2024-03-15" })
  puts response["data"]
rescue APIVerve::Meetingtimeconverter::ValidationError => e
  puts "Validation error: #{e.errors.join(', ')}"
rescue APIVerve::Meetingtimeconverter::APIError => e
  puts "API error: #{e.message}"
  puts "Status code: #{e.status_code}"
end

Debug Mode

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

Example Response

{
  "status": "ok",
  "error": null,
  "data": {
    "originalTime": "14:30",
    "convertedTime": "14:30:00",
    "fromTimezone": "America/New_York",
    "toTimezone": "Europe/London",
    "timeDifference": 5,
    "fromOffset": "-05:00",
    "toOffset": "+00:00"
  }
}

Documentation

For more information, visit the API Documentation.

Support

License

This gem is available under the MIT License.