Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pushkin-logger

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pushkin-logger

  • 0.1.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Pushkin

Pushkin is a simple http client for sending various user/system events to Pushkin API endpoint. It's used primarily for logging events in ticketing services.

Installation

Add this line to your application's Gemfile:

gem 'pushkin-logger'

And then execute:

$ bundle install

Basic Usage

client = Pushkin::Client.new(
  ENV['PUSHKIN_API_URL'],
  ENV['PUSHKIN_API_TOKEN']
)

data = {
  log_level: 'info', # optional ['info', 'warn', 'error'], default: 'system'
  action: 'my.action',
  properties: { foo: 'bar' }
}

client.push(data)

Advanced

Predefined actions to track orders and tickets sold:

order.intent
coupon.create
coupon.activate
ticket.order
ticket.create
ticket.preregister
ticket.upload
ticket.download
payment.received

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake test to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

Contributing

Bug reports and pull requests are welcome on GitLab at https://gitlab.vesputi.com/mobilitybox/pushkin-gem.

FAQs

Package last updated on 13 Jul 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc