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

gaurun-ruby

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gaurun-ruby

  • 0.2.4
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Build Status

Gaurun

.push

POST /push

client = Gaurun::Client.new
notification = Gaurun::Notification.new(message: 'this is test message')

notification.ios.token = ['device_token1', 'device_token2']
notification.ios.badge = 10
notification.ios.extend = { hoge: 'piyo' }

notification.android.token = ['registration_id1', 'registration_id2']
notification.android.extend = { foo: 'bar' }

res = client.push(notification)

p res.body

.parallel_push

client = Gaurun::Client.new
notifications = 10.times.map do
  notification = Gaurun::Notification.new(message: 'hoge')
  ...
  notification
end

res = client.parallel_push(notifications)

p res.map(&:body)

.stat_go

GET /stat/go

client = Gaurun::Client.new
res = client.stat_go

p res.body

.stat_app

GET /stat/app

client = Gaurun::Client.new
res = client.stat_app

p res.body

.config_pushers

PUT /config/pushers

client = Gaurun::Client.new
res = client.config_pushers(24)

p res.body

FAQs

Package last updated on 31 Dec 2017

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