0.0
No release in over a year
DEV.ME API Documentation [Currency Conversion and Exchange Rates API](https://dev.me/products/currency) - [IP2Location, IP Country, IP Information API](https://dev.me/products/ip) - [Email Validation, Mailbox Verification](https://dev.me/products/email) - [Phone Number Validation](https://dev.me/products/phone). You can learn more at [dev.me](https://dev.me). For this example you can use api key `demo-key` to test the APIs
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 3.6.0, ~> 3.6

Runtime

~> 1.0, >= 1.0.1
 Project Readme

DEV.ME SDK for Ruby

Build Status Gem Version Downloads

DEV.ME SDK for Ruby

Compatible with Ruby on Rails

Get Your Free API Key

Signup Here and Get Your Free API Key

Installation and usage instructions

Installation

Install the module through GEM:

gem install devme-sdk-ruby

Or GEMFILE:

gem "devme-sdk-ruby", "~> 1.0"

Examples

Currency API Conversion

require 'devme-sdk-ruby'
DevmeSdk.configure do |config|
  config.api_key['APIKeyHeader'] = 'demo-key'
end
@api_instance = DevmeSdk::CurrencyApi.new
result = @api_instance.v1_convert_currency(from = 'USD', to = 'EUR', opts = { amount: 10 })
# puts result
# {
#   convertedAmount: 8.819,
#   convertedText: '10 USD equal to 8.819 EUR',
#   exchangeRate: 0.8819,
#   from: 'USD',
#   originalAmount: 10,
#   rateTime: '2022-01-20T14:49:28.046Z',
#   to: 'EUR'
# }

IP API Geolocation, IP2Location, IP Data

require 'devme-sdk-ruby'
DevmeSdk.configure do |config|
  config.api_key['APIKeyHeader'] = 'demo-key'
end
@api_instance = DevmeSdk::IPApi.new
result = @api_instance.v1_get_ip_details(opts = { ip: '52.45.23.11' })

# {
#   asn: 14618,
#   aso: 'AMAZON-AES',
#   city: {
#   accuracyRadius: 1000,
#     latitude: 39.0469,
#     longitude: -77.4903,
#     metroCode: 511,
#     name: 'Ashburn',
#     timeZone: 'America/New_York',
#   },
#   countryCode: 'US',
#   ip: '52.45.23.11',
#   registeredCountryCode: 'US',
# }

Testing

bundle exec rake

Need Help?

If you need help please drop us a message, we would be glad to help @ Contact us

Contributing

Please feel free to open an issue or create a pull request and fix bugs or add features, All contributions are welcome. Thank you!

LICENSE MIT