trefoil
trefoil
A crystal interface for the 4chan public REST API.
Installation
-
Add the dependency to your
shard.yml:dependencies: trefoil: github: swarley/trefoil -
Run
shards install
Usage
require "trefoil"
# Display all images in the first thread on /a/
client = Trefoil::Client.new
client.board("a").catalog.first.posts.each do |post|
image = post.image
puts image.url if image
end
Contributing
- Fork it (https://github.com/swarley/trefoil/fork)
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
Contributors
- Matt - creator and maintainer
Repository
trefoil
Owner
Statistic
- 0
- 0
- 3
- 0
- 1
- almost 7 years ago
- March 3, 2019
License
MIT License
Links
Synced at
Mon, 15 Dec 2025 12:06:47 GMT
Languages