rest_countries

Crystal wrapper for Rest Countries API

rest_countries

A Crystal wrapper for the Rest Countries API.

Installation

  1. Add the dependency to your shard.yml:

    dependencies:
      rest_countries:
        github: HCLarsen/rest_countries
    
  2. Run shards install

Usage

require "rest_countries"
canada = RestCountries.getCountryByCode("CAN")
canada.capital  #=> "Ottawa"

Contributing

  1. Fork it (https://github.com/HCLarsen/rest_countries/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

Repository

rest_countries

Owner
Statistic
  • 0
  • 0
  • 0
  • 0
  • 2
  • over 3 years ago
  • March 28, 2020
License

MIT License

Links
Synced at

Thu, 21 Nov 2024 13:44:33 GMT

Languages