0.0
No commit activity in last 3 years
No release in over 3 years
API wrapper to access the StackExchange API conveniently.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.10
~> 10.0

Runtime

~> 0.9.2
 Project Readme

stapeluberlauf

/ˈʃtaːpl̩ ˈyːbɐˌlaʊ̯f/ noun, german word for stack overflow

Build Status Gem Version Code Climate

This gem provides a light-weight API wrapper to access the StackExchange API a little more conveniently.

It consists mainly out of simple DSL, which allows to describe requests and abstracts the implementation of basic concepts like filters and paging.

It supports authenticated requests and is aware when a request requires authorization, so that it can fail preemptive if this is not provided without a round-trip to the API.

It does provide a simple model for the response wrapper. But this covers just a primitive mapping of the JSON attributes used for further communication negotiation. These include error indication, paging and rate limiting (quota).

It doesn't provide wrappers for the retrieved model classes yet. These have to be accessed through the envelope as raw hashes.

Usage

This example fetches the first 10 unanswered questions tagged as ruby.

stackoverflow = Stapeluberlauf.site('stackoverflow').use_filter('withbody')
questions = stackoverflow.questions(tagged: 'ruby').unanswered.execute

Installation

Add this line to your application's Gemfile:

gem 'stapeluberlauf'

And then execute:

$ bundle

Or install it yourself as:

$ gem install stapeluberlauf

Disclaimer

This is not an official gem by StackExchange / StackOverflow.