Project

logcamp

0.0
No commit activity in last 3 years
No release in over 3 years
Aggregate app notifications in one place. Search events and share access
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.6
~> 5.4.0
>= 0
~> 3.4.0
~> 3.0.0

Runtime

~> 1.8.1
 Project Readme

Logcamp

Build Status

Simple ruby gem for communicating with external API. Heavily inspired by stripe gem.

Installation

Add this line to your application's Gemfile:

gem 'logcamp'

And then execute:

$ bundle

Or install it yourself as:

$ gem install logcamp

Usage

  1. Sign up and create an app.

In your project, initialize your app.

  1. Set token
Logcamp.token = ENV['LOGCAMP_TOKEN']
  1. Send event
Logcamp::Event.create(
  status: 'event status',
  message: 'notification message',
  alert: true,
  metadata: {
    key1: value1,
    key2: value2
  }
)

For Sinatra app you may need to add require 'bundler/setup'

Tests

rake test