https://github.com/teitei-tk/hackernews_api_client_rb
HackerNews API Client for Ruby
https://github.com/teitei-tk/hackernews_api_client_rb
hackernews hackernews-api ruby
Last synced: 3 months ago
JSON representation
HackerNews API Client for Ruby
- Host: GitHub
- URL: https://github.com/teitei-tk/hackernews_api_client_rb
- Owner: teitei-tk
- License: mit
- Created: 2023-02-16T10:04:07.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-02-25T11:03:43.000Z (over 2 years ago)
- Last Synced: 2025-03-04T20:38:58.008Z (4 months ago)
- Topics: hackernews, hackernews-api, ruby
- Language: Ruby
- Homepage:
- Size: 21.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# HackerNews API Client for Ruby
This API Client made by Ruby is a client that uses the Hacker News API.
## Installation
```sh
$ bundle add hackernews_api_client
```## Usage
see: [https://hackernews.api-docs.io/v0/overview/introduction](https://hackernews.api-docs.io/v0/overview/introduction)
```ruby
require "hackernews_api_client"client = HackernewsApiClient::Client.new
req = HackernewsApiClient::Requests::TopStories.new
res = client.top_stories(req: req)
puts res.as_json
```## Development
```sh
$ bundle install
$ bundle exec rbs collection install
```## License
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).