1. Home
  2. Knowledge Base
  3. Developer Articles
  4. Ruby Gem (SDK)

Ruby Gem (SDK)

The Ruby Gem we provide and support makes it easy for you to interface with our API or integrate into your custom system if you’re using Ruby as your primary language.


Add gem 'bananastand' to your gemfile (and choose a version so it does not change in your environments).

That’s it!


Setup client

client = BananaStand::Client.new(public_key, secret_key) # Replace with your keys

Fetch events

events = client.events # Get the first page of events (default sorting is most recently updated first)

Delete an Event


Find event by ID


Get HTML Content for a Product

html = client.product_page_html(event.product_id);

Push view event for that product for customer 123

client.push_view_event(event.product_id, nil, 123);

Github Rep

If you want to contribute or fork work on the Banana Stand ruby gem, then you can do so at the github repo.


Was this article helpful?

Related Articles